[Fix]: mail_gateway : Fix fetch attachement even if the check box add attachement is not checked
bzr revid: sbh@tinyerp.com-20110616123436-tclirmg6vju75i1j
This commit is contained in:
parent
a8e1dee41c
commit
f2c41053ea
|
@ -519,7 +519,7 @@ class mailgate_tool(osv.osv_memory):
|
|||
body = content
|
||||
has_plain_text = True
|
||||
elif part.get_content_maintype() in ('application', 'image'):
|
||||
if filename :
|
||||
if filename and attach:
|
||||
attachments[filename] = part.get_payload(decode=True)
|
||||
else:
|
||||
res = part.get_payload(decode=True)
|
||||
|
|
Loading…
Reference in New Issue