mirror of https://github.com/MISP/mail_to_misp
remove Fwd: from mail subject
parent
fa637f5cc8
commit
51a8552bea
|
@ -104,10 +104,12 @@ email_data = re.sub(b".*Domain Status: .*\n?",b"", email_data)
|
||||||
email_data = re.sub(b".*Registrant Email: .*\n?",b"", email_data)
|
email_data = re.sub(b".*Registrant Email: .*\n?",b"", email_data)
|
||||||
email_data = re.sub(b".*IP Location: .*\n?",b"", email_data)
|
email_data = re.sub(b".*IP Location: .*\n?",b"", email_data)
|
||||||
|
|
||||||
# Remove tags from subject
|
# Remove "[tags]" from subject
|
||||||
email_subject = re.sub(b"[\(\[].*?[\)\]]", b"", email_subject)
|
email_subject = re.sub(b"[\(\[].*?[\)\]]", b"", email_subject)
|
||||||
# Remove "Re: " from subject
|
# Remove "Re: " from subject
|
||||||
email_subject = re.sub(b"Re: ", b"", email_subject)
|
email_subject = re.sub(b"Re: ", b"", email_subject)
|
||||||
|
# Remove "Fwd: " from subject
|
||||||
|
email_subject = re.sub(b"Fwd: ", b"", email_subject)
|
||||||
|
|
||||||
|
|
||||||
def init(url, key):
|
def init(url, key):
|
||||||
|
|
Loading…
Reference in New Issue