fix crash when header In-Reply-To is missing

This commit is contained in:
Romain Bignon 2011-08-29 20:45:54 +02:00
commit 646480bc73

View file

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