commit 9e186ae88ba72f249ac3f5916f2ba90be936da35
Author: Oswald Buddenhagen <[email protected]>
Date:   Sat Nov 9 11:25:40 2013 +0100

    use post-sync "seen" flag to determine expirability
    
    otherwise it wouldn't be idempotent.

 src/sync.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/sync.c b/src/sync.c
index ef43267..bc2f1a4 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -1380,7 +1380,7 @@ box_loaded( int sts, void *aux )
                                        if (nflags & F_FLAGGED) {
                                                /* Flagged messages are always 
kept. */
                                                todel--;
-                                       } else if ((tmsg->flags & F_SEEN) &&
+                                       } else if ((nflags & F_SEEN) &&
                                                 (todel > 0 ||
                                                  ((srec->status & 
(S_EXPIRE|S_EXPIRED)) == (S_EXPIRE|S_EXPIRED)) ||
                                                  ((srec->status & 
(S_EXPIRE|S_EXPIRED)) && (tmsg->flags & F_DELETED)))) {

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to