summaryrefslogtreecommitdiff
path: root/mail/sendmail/patches
diff options
context:
space:
mode:
authoritojun <itojun>2000-08-18 12:06:12 +0000
committeritojun <itojun>2000-08-18 12:06:12 +0000
commit67fdc9f3794fcb10aa2550ae92ea6e44aa9812b9 (patch)
treef60a2c6b8bffb25ba21dd444dc619a66383f34a1 /mail/sendmail/patches
parent3d104adf13f8e72ebb244d10f823f8c8236e55c3 (diff)
downloadpkgsrc-67fdc9f3794fcb10aa2550ae92ea6e44aa9812b9.tar.gz
add fix to WIDE patch. from motonori@wide.ad.jp
Diffstat (limited to 'mail/sendmail/patches')
-rw-r--r--mail/sendmail/patches/patch-af27
1 files changed, 27 insertions, 0 deletions
diff --git a/mail/sendmail/patches/patch-af b/mail/sendmail/patches/patch-af
new file mode 100644
index 00000000000..b4eb451b25e
--- /dev/null
+++ b/mail/sendmail/patches/patch-af
@@ -0,0 +1,27 @@
+$NetBSD: patch-af,v 1.1 2000/08/18 12:06:12 itojun Exp $
+a bugfix for WIDE patch, in email address simplifier
+
+*** sendmail/recipient.c- Sun Jul 30 03:27:17 2000
+--- sendmail/recipient.c Fri Aug 18 20:54:17 2000
+***************
+*** 47,52 ****
+--- 47,54 ----
+ {
+ int c = *p++;
+
++ if (isspace(c) || c == '<' || c == '>')
++ continue;
+ if (isascii(c) && isupper(c))
+ c = tolower(c);
+ hfunc = ((hfunc << 1) ^ c) % HASH_SIZE;
+***************
+*** 568,573 ****
+--- 570,577 ----
+ {
+ int c = *p++;
+
++ if (isspace(c) || c == '<' || c == '>')
++ continue;
+ if (isascii(c) && isupper(c))
+ c = tolower(c);
+ hfunc = ((hfunc << 1) ^ c) % HASH_SIZE;