blob: b4eb451b25e6a87fc57a51c6af511b795a47699d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
|