View Code? Open in Web Editor
NEW
drop_alternatives is a simple Python script for those who hate emails in HTML and who prefer their inbox to have as many messages in pure text as feasible. This script is generally meant to be run as a filter with procmail, FDM or some other mail delivery agent.
drop_alternatives's People
Contributors
Watchers
drop_alternatives's Issues
When you forward an email, it can be sent as a "joint file", your 1st message becomes a sub-part of the new sent message.
Currently drop_alternatives recreate a flat messages with all the text versions, loosing the russian-doll structure of the original message.
It should keep the structure.
Working in Python 2 or with binary strings, the program should not interfere with encodings, but some users have reported a loss of accents.
The cases are not reproduced yet. I'll have to work more on this subject.
Got this error
lrv: python2 -SE /opt/drop_alternatives/drop_alternatives.py: Traceback (most recent call last):
lrv: python2 -SE /opt/drop_alternatives/drop_alternatives.py: File "/opt/drop_alternatives/drop_alternatives.py", line 11, in
lrv: python2 -SE /opt/drop_alternatives/drop_alternatives.py: from lxml import html
lrv: python2 -SE /opt/drop_alternatives/drop_alternatives.py: ImportError: No module named lxml
lrv: python2 -SE /opt/drop_alternatives/drop_alternatives.py: command returned 1
missing dependency ?