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

Mailbox Saving

Both saving and copying messages begins by calling mailbox_save_alloc(). After that you can set message's metadata 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 2014-03-12 13:35:42 by TeemuHuovila)