Commit d89695c1 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

cleanup

--HG--
branch : stable
parent 416a661115b7
"""cubicweb-ctl plugin providing the mboximport command
:organization: Logilab
:copyright: 2007-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:copyright: 2007-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
......
"""import an mbox or a single email into an cubicweb application
:organization: Logilab
:copyright: 2007-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:copyright: 2007-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
......@@ -180,8 +180,6 @@ class MBOXImporter(object):
if name or main != 'text' and contenttype != 'application/pgp-signature':
# suppose if we have a name, this is an attachement else this is a
# part/alternative
if not name and main != 'text':
print 'duh', main, sub
name = name or u'no name'
if isinstance(data, unicode):
data = data.encode('utf8')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment