mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2024-11-25 12:01:37 +01:00
Attempted to fix issues/6
This commit is contained in:
parent
45c7c2d040
commit
09938b2bf3
@ -4387,9 +4387,15 @@ Src: https://www.cisco.com/c/en/us/td/docs/security/esa/esa11-1/user_guide/b_ESA
|
|||||||
m = re.search(r'<?([^<@\s]+)@([^\s]+)>?', value)
|
m = re.search(r'<?([^<@\s]+)@([^\s]+)>?', value)
|
||||||
domain = ''
|
domain = ''
|
||||||
|
|
||||||
|
if not m:
|
||||||
|
return []
|
||||||
|
|
||||||
if m and len(self.received_path) < 3:
|
if m and len(self.received_path) < 3:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
if len(m.groups()) < 2:
|
||||||
|
return []
|
||||||
|
|
||||||
username = m.group(1)
|
username = m.group(1)
|
||||||
domain = m.group(2)
|
domain = m.group(2)
|
||||||
email = f'{username}@{domain}'
|
email = f'{username}@{domain}'
|
||||||
|
Loading…
Reference in New Issue
Block a user