diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-06-25 21:08:04 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-06-25 21:08:04 +0000 |
commit | 52c4509bc72fd0627e3104e11e8750fbb1fc5b48 (patch) | |
tree | 5e95ba3d744f8dcd9d581a67057d0cbd882f25b0 /driver.c | |
parent | 2e21bad416b831a5702ff230b30e1a71f4223119 (diff) | |
download | fetchmail-52c4509bc72fd0627e3104e11e8750fbb1fc5b48.tar.gz fetchmail-52c4509bc72fd0627e3104e11e8750fbb1fc5b48.tar.bz2 fetchmail-52c4509bc72fd0627e3104e11e8750fbb1fc5b48.zip |
Ready to ship another release.
svn path=/trunk/; revision=3385
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -606,7 +606,7 @@ static int fetch_messages(int mailserver_socket, struct query *ctl, struct idlist *sdp; for (sdp = ctl->newsaved; sdp; sdp = sdp->next) - if ((sdp->val.status.num == num) && (msgcodes[num-1] > 0)) + if ((sdp->val.status.num == num) && (msgcodes[num-1] >= 0)) { sdp->val.status.mark = UID_SEEN; save_str(&ctl->oldsaved, sdp->id,UID_SEEN); @@ -621,7 +621,7 @@ static int fetch_messages(int mailserver_socket, struct query *ctl, } else if (ctl->server.base_protocol->delete && !suppress_delete - && ((msgcodes[num-1] > 0) ? !ctl->keep : ctl->flush)) + && ((msgcodes[num-1] >= 0) ? !ctl->keep : ctl->flush)) { (*deletions)++; if (outlevel > O_SILENT) @@ -1174,7 +1174,7 @@ is restored.")); xalloca(msgsizes, int *, sizeof(int) * count); xalloca(msgcodes, int *, sizeof(int) * count); for (i = 0; i < count; i++) - msgcodes[num - 1] = MSGLEN_UNKNOWN; + msgcodes[i] = MSGLEN_UNKNOWN; /* * We need the size of each message before it's |