Mercurial > dovecot > original-hg > dovecot-1.2
changeset 315:f07ad72a1c7e HEAD
custom flags weren't saved properly.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 24 Sep 2002 20:47:34 +0300 |
parents | d2a305fa0ec2 |
children | 0c1ff60e55e6 |
files | src/lib-storage/index/mbox/mbox-save.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 */