Given archive mode, define a metadata schema for email messages stored as one file per message in RFC2822 format, then write tooling (perhaps as a separate egg) to do the following:
* Import an mbox file of messages
* Import a message via SMTP (called from a .forward)
* Provide an IMAP interface to a read-only virtual folder tree, indexed by people mentioned in the message, subject line, message-id, and date.
If possible, decode the MIME hierarchy of a message and store each bit as a separate file, thereby making attachments easily extractable and deduplicated and so on.
If you slide a copy of all your incoming and outgoing email into that, you'll have an epic email archive!
|