3
votes
2answers
121 views

Improving Python script to drop HTML part of multipart/mixed e-mails

I have a working script that I wrote in Python which for e-mail messages that consist only of a plain text part + an HTML part, discards the HTML and keeps only the plain text part. The script is not ...
1
vote
1answer
102 views

Help me simplify this gigantic class

I'm trying to think of ways to separate things out. I'm open to ideas, or if you see anything blatantly wrong, I'd like to know that too. Generally, I'm happy with this, but the sheer size of the ...
1
vote
0answers
25 views

DOMDocument field class Python

What do you think of this class? Is this simple to understand how it works and what it does? Do you think it is good piece of code? class Field(object): """Class which contains logic of ...