This documentation is for Dovecot v1.x, see wiki2 for v2.x documentation.

Mailbox Saving

Both saving and copying messages begins by calling mailbox_save_alloc(). After that you can set message's metadate fields:

When copying, most of the metadata fields are automatically copied from the source message. The only exception is message's flags and keywords. If you want to preserve them, the easiest way is to call mailbox_save_copy_flags().

Some metadata fields are mainly useful when you're replicating or restoring an existing mailbox and want to preserve metadata:

Once you're done with setting the metadata fields, you can either copy an existing mail with mailbox_copy() or provide message body with:

None: Design/Storage/Mailbox/Save (last edited 2009-12-17 01:58:54 by TimoSirainen)