Package: gnarwl / 3.6.dfsg-11

fln/0004-cleanAddress-Accept-and-in-mail-addresses.patch Patch series | download
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
From 8f019db87c1548545bd699527e1259c6ceb41f5a Mon Sep 17 00:00:00 2001
From: Bernhard Schmidt <berni@birkenwald.de>
Date: Mon, 18 Mar 2013 21:50:42 +0100
Subject: [PATCH] cleanAddress: Accept '+' and '=' in mail addresses

---
 src/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util.c b/src/util.c
index 13db1e4..12420d1 100644
--- a/src/util.c
+++ b/src/util.c
@@ -159,7 +159,7 @@ void cleanAddress(char** d) {
       if (m<l || m>r) s[m]='*';
     }
     else {
-      if (! ( ((s[m]>47)&&(s[m]<58)) || ((s[m]>63)&&(s[m]<91)) || ((s[m]>96)&&(s[m]<123)) || s[m]=='.' || s[m]=='-' || s[m]=='_' ) ) s[m]='*';
+      if (! ( ((s[m]>47)&&(s[m]<58)) || ((s[m]>63)&&(s[m]<91)) || ((s[m]>96)&&(s[m]<123)) || s[m]=='.' || s[m]=='-' || s[m]=='_' || s[m]=='+' || s[m]=='=') ) s[m]='*';
     }
   }
   
-- 
2.9.3