mailgun/talon

No extraction of forwarded part

Open

#74 geöffnet am 28. Jan. 2016

Auf GitHub ansehen
 (3 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)Python (283 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (1.220 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

If i get the code right it is intended that

reply = quotations.extract_from_plain(body)

does not extract forwarded messages?

So something like:

test

----- Forwarded Message ----- From: "test" test@example.com Sent: Thursday, January 28, 2016 4:31:32 PM Subject: test

testmail

will be ignored and returned as is/a part of reply?

Would it be possible to extract forwarded messages just like replies?

So either chop the forwarded part with quotations.extract_from_...(body) or a dedicated function to run against the body if reply equals body?

Contributor Guide