diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2007-12-26 23:24:32 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2007-12-26 23:24:32 +0000 |
commit | 1db90e6d2b3774dfedb84f7de1e515a767336cee (patch) | |
tree | ae9726367c5d35a5c13a28056e784cc17d4d423b /imap.c | |
parent | d583c6119a4be8ccf08cb82b47542d00b2ab47a3 (diff) | |
download | fetchmail-1db90e6d2b3774dfedb84f7de1e515a767336cee.tar.gz fetchmail-1db90e6d2b3774dfedb84f7de1e515a767336cee.tar.bz2 fetchmail-1db90e6d2b3774dfedb84f7de1e515a767336cee.zip |
Fix Berlios Bug #11797, imap_mark_seen doesn't consider expunged messages
(and marks the wrong messages seen after expunges, leading to data loss in
'keep flush' configurations). Report and patch by Alexander Cherepanov. Thanks\!
svn path=/branches/BRANCH_6-3/; revision=5147
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1240,6 +1240,10 @@ static int imap_mark_seen(int sock, struct query *ctl, int number) /* mark the given message as seen */ { (void)ctl; + + /* expunges change the message numbers */ + number -= expunged; + return(gen_transact(sock, imap_version == IMAP4 ? "STORE %d +FLAGS.SILENT (\\Seen)" |