summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authoritojun <itojun@pkgsrc.org>2003-10-08 20:23:42 +0000
committeritojun <itojun@pkgsrc.org>2003-10-08 20:23:42 +0000
commit88e55b69f4ea01a7610ae5bc7f577b07001bc843 (patch)
tree1cdb5b98ddb8274370f6d8c20dba4be3973713e5 /mail
parenta20d31972d035239e76a4d260a6139637d05eec2 (diff)
downloadpkgsrc-88e55b69f4ea01a7610ae5bc7f577b07001bc843.tar.gz
certain email kills fetchmail. CAN-2003-0790
Diffstat (limited to 'mail')
-rw-r--r--mail/fetchmail/Makefile4
-rw-r--r--mail/fetchmail/patches/patch-ag22
2 files changed, 24 insertions, 2 deletions
diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile
index 05d63885bed..c6433597737 100644
--- a/mail/fetchmail/Makefile
+++ b/mail/fetchmail/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.133 2003/09/12 13:11:56 grant Exp $
+# $NetBSD: Makefile,v 1.134 2003/10/08 20:23:42 itojun Exp $
DISTNAME= fetchmail-6.2.4
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= mail
MASTER_SITES= http://catb.org/~esr/fetchmail/ \
http://sunsite.unc.edu/pub/Linux/system/mail/pop/
diff --git a/mail/fetchmail/patches/patch-ag b/mail/fetchmail/patches/patch-ag
new file mode 100644
index 00000000000..145cfb5df1f
--- /dev/null
+++ b/mail/fetchmail/patches/patch-ag
@@ -0,0 +1,22 @@
+$NetBSD: patch-ag,v 1.1 2003/10/08 20:23:43 itojun Exp $
+
+--- rfc822.c- 2003-10-06 13:28:06.000000000 +0900
++++ rfc822.c 2003-10-06 13:28:41.000000000 +0900
+@@ -176,7 +176,7 @@
+ case 3: /* we're in a <>-enclosed address */
+ if (*from == '@' || *from == '!')
+ has_host_part = TRUE;
+- else if (*from == '>' && from[-1] != '<')
++ else if (*from == '>' && (from > buf && from[-1] != '<'))
+ {
+ state = 1;
+ if (!has_host_part)
+@@ -198,7 +198,7 @@
+ /*
+ * If we passed a comma, reset everything.
+ */
+- if (from[-1] == ',' && !parendepth) {
++ if ((from > buf && from[-1] == ',') && !parendepth) {
+ has_host_part = has_bare_name_part = FALSE;
+ parens_from = NULL;
+ }