Add textOnly paramater to get_links_from_email#12
Add textOnly paramater to get_links_from_email#12koshie wants to merge 1 commit intolovelysystems:masterfrom
Conversation
Useful when mail is format in text only
|
I need this option because sometimes I need to bring back a link in format text and not in format HTML. It can be probably useful for someone else. |
|
I second this, as I was trying to use get_email_body since the email body was 'text/plain; charset=UTF-8', and get_links_from_email would only search for an anchor tag. get_email_body is also removing URL parameters since the '=' sign is getting filtered out as quoted-printable data. as an example I have a URL with a token parameter like 'change?token=1023gf5m5lff...', where the first '=10' is getting erased from the rest of the email body that is returned. It looks like someone tried to correct this with a decode('utf-8'), but since it is already going through the quoted-printable filter first, I don't that wouldn't help. |
|
Deprecation Warning Lovely Systems does not not support this package anymore and best regards, Manfred (Github: schwendinger, schwendinger at lovelysystems.com) |
Useful when mail is format in text only