From b877a3f40400be9035d96b855b94c73a6f92c779 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 14 Dec 1997 21:27:50 +0000 Subject: Cleanup of numeric option handling. svn path=/trunk/; revision=1568 --- imap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'imap.c') 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; -- cgit v1.2.3