fix crash when header In-Reply-To is missing
This commit is contained in:
parent
43d562a338
commit
646480bc73
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue