fix if domain of In-Reply-To contains a '@'

This commit is contained in:
Romain Bignon 2010-11-09 23:48:45 +01:00
commit b08dda9bcc

View file

@ -105,7 +105,7 @@ class Monboob(ReplApplication):
def get_email_address_ident(self, msg, header):
s = msg.get(header)
m = re.match('.*<(.*)@(.*)>', s)
m = re.match('.*<([^@]*)@(.*)>', s)
if m:
return m.group(1)
else: