summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2012-07-11 22:16:46 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2012-07-11 22:16:46 +0000
commiteedb6cd713a1ad6e1021690fe7a8f927fa3f3f01 (patch)
tree1f4455aac4f35d7460ad648e9899f0a268104263
parent41bcf7ce24ca227f4b459609bf8b7822a6aed429 (diff)
enable back = char in address localpart, that is sometimes used by mailing lists.
ok gilles@ eric@
-rw-r--r--usr.sbin/smtpd/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c
index d1f4a7138b9..e53a2d8d0f9 100644
--- a/usr.sbin/smtpd/util.c
+++ b/usr.sbin/smtpd/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.64 2012/07/11 17:20:00 chl Exp $ */
+/* $OpenBSD: util.c,v 1.65 2012/07/11 22:16:45 chl Exp $ */
/*
* Copyright (c) 2000,2001 Markus Friedl. All rights reserved.
@@ -263,7 +263,7 @@ valid_localpart(const char *s)
* RFC 5322 defines theses characters as valid: !#$%&'*+-/=?^_`{|}~
* some of them are potentially dangerous, and not so used after all.
*/
-#define IS_ATEXT(c) (isalnum((int)(c)) || strchr("%+-_", (c)))
+#define IS_ATEXT(c) (isalnum((int)(c)) || strchr("%+-=_", (c)))
nextatom:
if (! IS_ATEXT(*s) || *s == '\0')
return 0;