[Pkg-wmaker-commits] [wmbiff] 03/07: because having both from and subject headers is no longer a way to tell when the end has happened, must clean up the completed command tag explicitly
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:04:41 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to tag wmbiff_0_4_19
in repository wmbiff.
commit 04d95a48b7be0824f0714fa5c4275fecaea5bf3d
Author: bluehal <bluehal>
Date: Sat Nov 8 23:45:20 2003 +0000
because having both from and subject headers is no longer a way to tell when the end has happened, must clean up the completed command tag explicitly
---
wmbiff/Imap4Client.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/wmbiff/Imap4Client.c b/wmbiff/Imap4Client.c
index e1ae9c1..1f86f46 100644
--- a/wmbiff/Imap4Client.c
+++ b/wmbiff/Imap4Client.c
@@ -403,6 +403,7 @@ void imap_cacheHeaders( /*@notnull@ */ Pop3 pc)
do {
struct msglst *m = malloc(sizeof(struct msglst));
char hdrbuf[128];
+ int fetch_command_done = FALSE;
tlscomm_printf(scs, "a04 FETCH %s (FLAGS "
"BODY[HEADER.FIELDS (FROM SUBJECT)])\r\n",
msgid);
@@ -427,6 +428,7 @@ void imap_cacheHeaders( /*@notnull@ */ Pop3 pc)
if (m->subj[0] == '\0') {
strcpy(m->subj, "(no subject)");
}
+ fetch_command_done = TRUE;
}
} else {
IMAP_DM(pc, DEBUG_ERROR,
@@ -444,6 +446,9 @@ void imap_cacheHeaders( /*@notnull@ */ Pop3 pc)
} else {
IMAP_DM(pc, DEBUG_ERROR, "error fetching: %s", hdrbuf);
}
+ if (!fetch_command_done) {
+ tlscomm_expect(scs, "a04 OK FETCH", hdrbuf, 127);
+ }
} while ((msgid = strtok(NULL, " \r\n")) != NULL
&& isdigit(msgid[0]));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git
More information about the Pkg-wmaker-commits
mailing list