From 5cf8f79757af93a10dbb7affb2fbbeddc8c6161d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 5 Nov 1997 14:28:22 +0000 Subject: Minor bug fixes im IMAP handling. svn path=/trunk/; revision=1534 --- NEWS | 7 +++++-- imap.c | 6 ++++++ rfc822.c | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 81662d2b..e735ad9a 100644 --- a/NEWS +++ b/NEWS @@ -14,9 +14,12 @@ ------------------------------------------------------------------------------ fetchmail-4.3.3 () * Robert Hardy 's patch to use IMAP EXAMINE in check mode. -* Accommodate the PMDF IMAP server's pickiness about set syntax. +* Alexander Kourakos's patch for cleaner handling of group addresses. +* Fixed expansion of MDA %-escapes (thanks Wez Furlong ). +* Deal with the possibility that IMAP NOOP issued on rescan might not get an + EXISTS response (thanks to Jonathan T. Agnew ). -There are 263 people on fetchmail-friends and 68 on fetchmail-announce. +There are 272 people on fetchmail-friends and 73 on fetchmail-announce. fetchmail-4.3.2 (Wed Oct 22 20:30:14 EDT 1997) * More slow-UIDL patches from Wolfgang Wander. diff --git a/imap.c b/imap.c index 4729186e..da0ed018 100644 --- a/imap.c +++ b/imap.c @@ -425,11 +425,17 @@ static int imap_getrange(int sock, if (!ok) expunge_uids(ctl); #endif /* IMAP_UID */ + count = -1; if (ok || gen_transact(sock, "NOOP")) { error(0, 0, "re-poll failed"); return(ok); } + else if (count == -1) /* no EXISTS response to NOOP */ + { + count = recent = 0; + unseen = -1; + } } else { diff --git a/rfc822.c b/rfc822.c index 3bbad5c4..0081cff2 100644 --- a/rfc822.c +++ b/rfc822.c @@ -88,7 +88,7 @@ const char *host; /* server hostname */ else if ((*from == ',' || HEADER_END(from) || from[1] == '(') && has_bare_name_part && !has_host_part - && last_nws != ';') + && last_nws != ';' && last_nws != ')') { int hostlen; -- cgit v1.2.3