On 22-06-2009 at 20:06, Timo Sirainen wrote:

 >So the somewhat easy to implement possibilities require the X-Mailbox:
>header to exists always for non-virtual mailboxes too. You can either >implement code that actually saves it to the maildir files, or you can
 >write a plugin that overrides mail_get_stream() and adds the header,
 >similar to how zlib plugin works.

Nice! The zlib plugin seems a good start.

I guess I'll have to override just storage->v.mailbox_open and then mail->v.get_stream. Within get_stream() it seems that the mailbox name to put in my X-Mailbox: header is available as _mail->box->name. Am I right?

Thank you again!

    - alessandro.

Reply via email to