Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/lib-storage/index/maildir/maildir-sync.c @ 2320:8a6666a9ac98 HEAD
Handle recent flags in index file correctly. Fixes recent flag losing when
copying or saving mails with flags.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 12 Jul 2004 11:07:03 +0300 |
parents | ced88553af0b |
children | aae574ed7f4c |
comparison
equal
deleted
inserted
replaced
2319:7c7e372da1f3 | 2320:8a6666a9ac98 |
---|---|
718 | 718 |
719 seq--; | 719 seq--; |
720 continue; | 720 continue; |
721 } | 721 } |
722 | 722 |
723 if ((rec->flags & MAIL_RECENT) != 0) { | |
724 index_mailbox_set_recent(ibox, seq); | |
725 if (ibox->keep_recent) { | |
726 flags |= MAIL_RECENT; | |
727 } else { | |
728 mail_index_update_flags(trans, seq, | |
729 MODIFY_REMOVE, | |
730 MAIL_RECENT, keywords); | |
731 } | |
732 } | |
733 | |
723 if ((uflags & MAILDIR_UIDLIST_REC_FLAG_NONSYNCED) != 0) { | 734 if ((uflags & MAILDIR_UIDLIST_REC_FLAG_NONSYNCED) != 0) { |
724 /* partial syncing */ | 735 /* partial syncing */ |
725 continue; | 736 continue; |
726 } | 737 } |
727 | 738 |