[Pkg-wmaker-commits] [wmbiff] 11/17: handle capitalized FROM and SUBJECT headers common typical of spam spam spam
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:04:21 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 4b6cb6f4c69fc74d3fe5f694162e7bbef30e8893
Author: bluehal <bluehal>
Date: Wed Oct 29 18:15:45 2003 +0000
handle capitalized FROM and SUBJECT headers common typical of spam spam spam
---
wmbiff/Imap4Client.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wmbiff/Imap4Client.c b/wmbiff/Imap4Client.c
index bf75b8e..2500846 100644
--- a/wmbiff/Imap4Client.c
+++ b/wmbiff/Imap4Client.c
@@ -410,10 +410,10 @@ void imap_cacheHeaders( /*@notnull@ */ Pop3 pc)
m->from[0] = '\0';
while (m->subj[0] == '\0' || m->from[0] == '\0') {
if (tlscomm_expect(scs, "", hdrbuf, 127)) {
- if (strncmp(hdrbuf, "Subject:", 8) == 0) {
+ if (strncasecmp(hdrbuf, "Subject:", 8) == 0) {
strncpy(m->subj, hdrbuf + 9, SUBJ_LEN - 1);
m->subj[SUBJ_LEN - 1] = '\0';
- } else if (strncmp(hdrbuf, "From: ", 5) == 0) {
+ } else if (strncasecmp(hdrbuf, "From: ", 5) == 0) {
strncpy(m->from, hdrbuf + 6, FROM_LEN - 1);
m->from[FROM_LEN - 1] = '\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