Browse Source

M_EXPIRED -> M_EXPIRE

wip/maildir-uid-dupes-test
Oswald Buddenhagen 19 years ago
parent
commit
1a536a3415
  1. 2
      src/isync.h
  2. 4
      src/sync.c

2
src/isync.h

@ -118,7 +118,7 @@ typedef struct group_conf {
#define M_RECENT (1<<0) /* unsyncable flag; maildir_* depend on this being 1<<0 */
#define M_DEAD (1<<1) /* expunged */
#define M_FLAGS (1<<2) /* flags fetched */
#define M_EXPIRED (1<<5) /* kicked out by MaxMessages */
#define M_EXPIRE (1<<3) /* kicked out by MaxMessages */
typedef struct message {
struct message *next;

4
src/sync.c

@ -772,7 +772,7 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan )
if ((tmsg->flags & F_FLAGGED) || !tmsg->srec || tmsg->srec->uid[M] <= 0) /* add M_DESYNCED? */
todel--;
else if (!(tmsg->status & M_RECENT)) {
tmsg->status |= M_EXPIRED;
tmsg->status |= M_EXPIRE;
delt++;
todel--;
}
@ -782,7 +782,7 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan )
for (srec = recs; srec; srec = srec->next) {
if (srec->status & (S_DEAD|S_EXPIRED))
continue;
if (srec->msg[S] && (srec->msg[S]->status & M_EXPIRED)) {
if (srec->msg[S] && (srec->msg[S]->status & M_EXPIRE)) {
debug( " expiring pair(%d,%d)\n", srec->uid[M], srec->uid[S] );
/* log first, so deletion can't be misinterpreted! */
Fprintf( jfp, "~ %d %d 1\n", srec->uid[M], srec->uid[S] );

Loading…
Cancel
Save