* imap4d/bye.c: call mailbox_save_attributes() when exiting.
it will save the attribute flags. * imap4d/close.c: Typo. * imap4d/logout: Remove the mailbox_close() and mailbox_destroy() it is being call imap4d_bye (). * imap4d/select.c (imapr3d_select0): call mailbox_save_attributes() if a mailbox was already selected. Feedback from Sergey for the need of saving the attribute flags without expunging. Note, this is a hack, the code is taken from mbox_expunge(mbx_mbox.c) and there is lot of duplication. But since we are moving toward a new mailbox API, the code will be rewritten more cleanly in the new API. * include/mailutils/mailbox.h: Add proto mailbox_save_attributes() * mailbox/include/mailbox0.h: New field in struct _mailbox _save_attributes (mailbox_t); * mailbox/mailbox.c: New function mailbox_save_attributes (). * mailbox/mbx_mbox.c: New function mbox_save_attributes (), implement saving the attribute flags in header field "Status:"
Showing
10 changed files
with
49 additions
and
20 deletions
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment