[Pkg-wmaker-commits] [wmbiff] 16/17: handle messages without subject lines in msglst
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:04:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to tag wmbiff_0_4_18
in repository wmbiff.
commit 70e61cc05e1e34c64665b3772361db899a9b769c
Author: bluehal <bluehal>
Date: Sat Nov 8 22:13:56 2003 +0000
handle messages without subject lines in msglst
---
wmbiff/Imap4Client.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/wmbiff/Imap4Client.c b/wmbiff/Imap4Client.c
index 85851b4..e1ae9c1 100644
--- a/wmbiff/Imap4Client.c
+++ b/wmbiff/Imap4Client.c
@@ -417,6 +417,16 @@ void imap_cacheHeaders( /*@notnull@ */ Pop3 pc)
} else if (strncasecmp(hdrbuf, "From: ", 5) == 0) {
strncpy(m->from, hdrbuf + 6, FROM_LEN - 1);
m->from[FROM_LEN - 1] = '\0';
+ } else if (strncasecmp(hdrbuf, "a04 OK FETCH", 5)
+ == 0) {
+ /* server says we're done getting this header, which
+ may occur if the message has no subject */
+ if (m->from[0] == '\0') {
+ strcpy(m->from, " ");
+ }
+ if (m->subj[0] == '\0') {
+ strcpy(m->subj, "(no subject)");
+ }
}
} else {
IMAP_DM(pc, DEBUG_ERROR,
--
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