aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-12-14 21:27:50 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-12-14 21:27:50 +0000
commitb877a3f40400be9035d96b855b94c73a6f92c779 (patch)
treeca53d5783774ad4cbfdfcc4ca9f7692526071ad6 /imap.c
parentf191f75af5ce76ce9ed72224bc3585ba9a39a73e (diff)
downloadfetchmail-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/imap.c b/imap.c
index da0ed018..5fc84bc7 100644
--- a/imap.c
+++ b/imap.c
@@ -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;