remove Fwd: from mail subject

pull/4/head
Sascha Rommelfangen 2017-05-30 12:27:49 +02:00
parent fa637f5cc8
commit 51a8552bea
1 changed files with 3 additions and 1 deletions

View File

@ -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):