isync

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

commit 1a536a3415cf101194e48f1c31d6b32c6e5f6c96
parent 40fc6a6ac87e8f74daf040f52f73a76e683e049c
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Mon, 30 Jan 2006 13:49:46 +0000

M_EXPIRED -> M_EXPIRE

Diffstat:
Msrc/isync.h | 2+-
Msrc/sync.c | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/isync.h b/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; diff --git a/src/sync.c b/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] );