isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit dd1b19a99a98baea16795b35029a6f36263f5232
parent 54d8140f6e0154c4af0c8c68e04e43b6d7e9c696
Author: Michael Elkins <me@mutt.org>
Date:   Wed, 19 Jun 2002 02:31:07 +0000

Don't bother uploaded messages marked deleted when we are going to expunge.

Diffstat:
Msync.c | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/sync.c b/sync.c @@ -110,6 +110,15 @@ sync_mailbox (mailbox_t * mbox, imap_t * imap, int flags, { struct stat sb; + if ((cur->flags & D_DELETED) && (flags & SYNC_EXPUNGE)) + { + /* + * This message is marked as deleted and we are + * expunging. Don't upload to the server. + */ + continue; + } + if ((flags & SYNC_QUIET) == 0) { if (!upload) @@ -152,6 +161,10 @@ sync_mailbox (mailbox_t * mbox, imap_t * imap, int flags, close (fd); } + /* + * message used to exist on server but no longer does (we know + * this beacause it has a UID associated with it). + */ else if (flags & SYNC_DELETE) { cur->flags |= D_DELETED;