]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/blob - debian/patches/disabled_30_deal_correctly_with_plus.patch
Load spamass-milter-0.3.0 into spamass-milter/trunk.
[deb_pkgs/spamass-milter.git] / debian / patches / disabled_30_deal_correctly_with_plus.patch
1 --- spamass-milter.cpp.orig     2004-09-30 13:47:49.000000000 -0700
2 +++ spamass-milter.cpp  2004-09-30 13:50:15.000000000 -0700
3 @@ -1375,8 +1375,11 @@
4  SpamAssassin::local_user()
5  {
6    // assuming we have a recipient in the form: <username@somehost.somedomain>
7 -  // we return 'username'
8 -  return _rcpt.substr(1,_rcpt.find('@')-1);
9 +  // (angle brackets optional) we return 'username'
10 +  if (_rcpt[0] == '<')
11 +    return _rcpt.substr(1,_rcpt.find_first_of("@+")-1);
12 +  else
13 +    return _rcpt.substr(0,_rcpt.find_first_of("@+"));
14  }
15  
16  int