This plugin allows you to browse and view archived emails and email attachments. It adds a new itemMail Archive to the main menu:
When clicking on an item in the mail archive, the contents can be viewed:
Key features:
mailarchive:
wiki links, ormail:
,email:
, andemailarchive:
synonyms.[[MailQuery(searchterm)]]
macro.MAIL_ARCHIVE_VIEW
.trac-admin mailarchive fetch
.For example, you can schedule a task to call the following command every 15 minutes:
$ trac-admin path/to/trac/environment mailarchive fetch imap.example.com trac-archive@example.com password123
Make sure that the emails to be archived are marked as unread or from today, as only such emails will be archived.
Existing bugs and feature requests forMailArchivePlugin arehere.
If you have any issues, create anew ticket.
defect | 3 / 6 | ||
---|---|---|---|
enhancement | 3 / 4 | ||
task | 0 / 1 |
Download the zipped source fromhere.
You can check outMailArchivePlugin fromhere using Subversion, orbrowse the source with Trac.
Installation of the plugin requires the usual step:
easy_install https://trac-hacks.org/svn/mailarchiveplugin/trunk
easy_install https://trac-hacks.org/svn/mailarchiveplugin/tags/mailarchive-1.1
.easy_install https://trac-hacks.org/svn/mailarchiveplugin/tags/mailarchive-1.0
.Then enable the plugin in Trac's plugin admin page or in yourtrac.ini
file:
[components]mailarchive.*=enabled
A database upgrade will be required as usual:
$ trac-admin path/to/trac/environment upgrade
Assign the newMAIL_ARCHIVE_VIEW
permission to the appropriate Trac groups / users, eg in Trac's permission admin page.
Additionally you need an emailIMAP account that only contains all the emails you want to archive. If you don't already have this, you could create a new separate email account (e.g.trac-archive@example.com
) and copy all emails you want to appear in Trac's mail archive to that account.
Actually archiving the emails from thatIMAP account into Trac's database must be done separately using a newtrac-admin mailarchive fetch <host> <username> <password>
command. You should configure it to be periodically called, for example by using a cron job in Unix or using a scheduled task in Windows. Replace<host>
,<username>
and<password>
with your email host, username and password.
Download all attachments as:.zip