wip: Webmail big refactoring

* New fetch responses parser
* Better detection of attachments
This commit is contained in:
Antoine Nguyen
2012-02-01 09:36:42 +01:00
parent c3533bae33
commit ff9528dbda
5 changed files with 379 additions and 55 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ class Email(object):
def viewmail_html(self, content, **kwargs):
if content is None or content == "":
return (False, "")
return ""
links = kwargs.has_key("links") and kwargs["links"] or "0"
html = lxml.html.fromstring(content)
if links == "0":