diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-12-14 21:27:50 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-12-14 21:27:50 +0000 |
commit | b877a3f40400be9035d96b855b94c73a6f92c779 (patch) | |
tree | ca53d5783774ad4cbfdfcc4ca9f7692526071ad6 /imap.c | |
parent | f191f75af5ce76ce9ed72224bc3585ba9a39a73e (diff) | |
download | fetchmail-b877a3f40400be9035d96b855b94c73a6f92c779.tar.gz fetchmail-b877a3f40400be9035d96b855b94c73a6f92c779.tar.bz2 fetchmail-b877a3f40400be9035d96b855b94c73a6f92c779.zip |
Cleanup of numeric option handling.
svn path=/trunk/; revision=1568
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -652,7 +652,7 @@ static int imap_delete(int sock, struct query *ctl, int number) * won't result in lots of messages being fetched again during * the next session. */ - if (ctl->expunge > 0 && (++deletions % ctl->expunge) == 0) + if (NUM_NONZERO(ctl->expunge) && (++deletions % ctl->expunge) == 0) { if ((ok = gen_transact(sock, "EXPUNGE"))) return(ok); @@ -671,7 +671,7 @@ static int imap_logout(int sock, struct query *ctl) /* send logout command */ { /* if expunges after deletion have been suppressed, ship one now */ - if (ctl->expunge == 0 && deletions) + if (NUM_SPECIFIED(ctl->expunge) && NUM_ZERO(ctl->expunge) && deletions) { int ok; |