complete the attachment process from email
bzr revid: mga@tinyerp.com-827dbff05d668847d638d96321bf52edde430fa2
This commit is contained in:
parent
847f34d58e
commit
17314089ce
|
@ -92,7 +92,7 @@ class email_parser(object):
|
|||
'name': 'Attachment : ' + attach,
|
||||
'datas':binascii.b2a_base64(str(attachments[attach])),
|
||||
'datas_fname': attach,
|
||||
'description': 'Attachment : ' + attach,
|
||||
'description': 'Attachment comes with mail ',
|
||||
'res_model': 'crm.case',
|
||||
'res_id': id
|
||||
}
|
||||
|
@ -277,10 +277,10 @@ if __name__ == '__main__':
|
|||
print
|
||||
print '-.- ICI'
|
||||
msg_txt = email.message_from_file(sys.stdin)
|
||||
msg_txt = email.message_from_file(msg_txt)
|
||||
|
||||
#fp = open('/home/admin/Desktop/test1.eml');
|
||||
#msg_txt = email.message_from_file(fp)
|
||||
fp.close()
|
||||
#fp.close()
|
||||
|
||||
print 'Mail Sent to ', parser.parse(msg_txt)
|
||||
|
||||
|
|
Loading…
Reference in New Issue