10 | | * Import emails to Trac's database from an IMAP account |
11 | | * A new `mailarchive` resource realm |
12 | | * `mailarchive:` wiki links (plus `mail:`, `email:`, and `emailarchive:` synonyms) |
13 | | * `[[MailQuery(searchterm)]]` macro |
14 | | * New `trac-admin mailarchive fetch` command |
15 | | * New Trac permission `MAIL_ARCHIVE_VIEW` |
16 | | * Trac Search integration |
| 10 | * Import emails to Trac's database from an IMAP account. |
| 11 | * A new `mailarchive` resource realm. |
| 12 | * `mailarchive:` wiki links, plus `mail:`, `email:`, and `emailarchive:` synonyms. |
| 13 | * The macro `[[MailQuery(searchterm)]]` in your wiki page allows you to search archived mails. |
| 14 | * New `trac-admin mailarchive fetch` command. |
| 15 | * New Trac permission `MAIL_ARCHIVE_VIEW`. |
| 16 | * Trac Search integration. |
| 17 | |
| 18 | For example, you can schedule a task to call the following command every 15 minutes: |
| 19 | {{{#!sh |
| 20 | $ trac-admin path/to/trac/environment mailarchive fetch imap.example.com trac-archive@example.com password123 |
| 21 | }}} |
| 22 | |
| 23 | Make sure that the emails to be archived are marked as unread or very recent, ie from today, as only such emails will be considered for archiving. |
56 | | Actually archiving the emails from that IMAP account into Trac's database must be done separately using a new `trac-admin mailarchive fetch <host> <username> <password>` 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 `<host>`, `<username>` and `<password>` with your email host, username and password. |
57 | | |
58 | | == Example |
59 | | |
60 | | 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` |
61 | | |
62 | | Make sure that the emails to be archived are marked as unread or very recent, ie from today, as only such emails will be considered for archiving. |
| 68 | Actually archiving the emails from that IMAP account into Trac's database must be done separately using a new `trac-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. |