From 20593c1e04732f607e94f3b45777fc1797187f4a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 26 Jun 1999 03:50:27 +0000 Subject: [PATCH] Simplify the expunge logic. svn path=/trunk/; revision=2512 --- imap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imap.c b/imap.c index 564f6354..f017e5d9 100644 --- a/imap.c +++ b/imap.c @@ -1155,8 +1155,8 @@ static int imap_delete(int sock, struct query *ctl, int number) static int imap_logout(int sock, struct query *ctl) /* send logout command */ { - /* if expunges after deletion have been suppressed, ship one now */ - if (NUM_SPECIFIED(expunge_period) && NUM_ZERO(expunge_period) && deletions) + /* if any un-expunged deletions remain, ship an expunge now */ + if (deletions) internal_expunge(sock); return(gen_transact(sock, "LOGOUT")); -- 2.43.2