[[PageOutline(2-5,Contents,pullout)]] = Email archive for storing emails in Trac == Description This plugin adds a new main menu item ''Mail Archive'' that can be used to browse and view archived emails and email attachments. === Features * Import emails to Trac's database from an IMAP account * A new `mailarchive` resource realm * `mailarchive:` wiki links (plus `mail:`, `email:`, and `emailarchive:` synonyms) * `[[MailQuery(searchterm)]]` macro * New `trac-admin mailarchive fetch` command * New Trac permission `MAIL_ARCHIVE_VIEW` * Trac Search integration === Known Problems * A reset of uids on the IMAP server could lead to problems (e.g. duplicate / unarchived emails). #11535 == !Bugs/Feature Requests Existing bugs and feature requests for MailArchivePlugin are [report:9?COMPONENT=MailArchivePlugin here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=MailArchivePlugin&owner=lucid new ticket]. == Download Download the zipped source from [export:mailarchiveplugin here]. == Source You can check out MailArchivePlugin from [http://trac-hacks.org/svn/mailarchiveplugin here] using Subversion, or [source:mailarchiveplugin browse the source] with Trac. == Installation Installation of the plugin requires the usual step, e.g. `easy_install http://trac-hacks.org/svn/mailarchiveplugin/trunk` and enable it in Trac's plugin admin page or by adding `mailarchive.* = enabled` to the `[components]` section in trac.ini. A database upgrade will be required as usual (`trac-admin path-to-your-trac-environment upgrade`). Assign the new `MAIL_ARCHIVE_VIEW` permission to the appropriate Trac groups / users (e.g. in Trac's permission admin page). Additionally you need an email IMAP 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 that IMAP account into Trac's database must be done separately using a new `trac-admin mailarchive fetch ` command. You should configure (e.g. using a cron job in Unix, or using a scheduled task in Windows) it to be periodically called. Replace ``, `` and `` with your email host, username and password. Example: Schedule a task to call the following command every 15 minutes: `trac-admin path-to-your-trac-environment mailarchive fetch imap.example.com trac-archive@example.com password123` Make sure that the emails to be archived are marked as unseen / unread (or very recent, i.e. from today) as only such mails will be considered for archiving. == Recent Changes [[ChangeLog(mailarchiveplugin, 3)]] == !Author/Contributors '''Author:''' [wiki:lucid] [[BR]] '''Maintainer:''' [[Maintainer]] [[BR]] '''Contributors:'''