# HG changeset patch # User Timo Sirainen # Date 1032889654 -10800 # Node ID f07ad72a1c7ea5508e9c3d4f272da62279adedab # Parent d2a305fa0ec2d6233e8bd18dc794bbf5667fe773 custom flags weren't saved properly. diff -r d2a305fa0ec2 -r f07ad72a1c7e src/lib-storage/index/mbox/mbox-save.c --- a/src/lib-storage/index/mbox/mbox-save.c Tue Sep 24 20:38:37 2002 +0300 +++ b/src/lib-storage/index/mbox/mbox-save.c Tue Sep 24 20:47:34 2002 +0300 @@ -148,16 +148,20 @@ time_t internal_date, IOBuffer *data, uoff_t data_size) { IndexMailbox *ibox = (IndexMailbox *) box; - off_t pos; + MailFlags real_flags; const char *mbox_path; int fd, failed; + off_t pos; if (box->readonly) { mail_storage_set_error(box->storage, "Mailbox is read-only"); return FALSE; } - if (!index_mailbox_fix_custom_flags(ibox, &flags, custom_flags)) + /* we don't need the real flags, easier to keep using our own. + they need to be checked/added though. */ + real_flags = flags; + if (!index_mailbox_fix_custom_flags(ibox, &real_flags, custom_flags)) return FALSE; /* append the data into mbox file */