From 17314089ceadcfbfddaa9fdb818d30b6ed4e6605 Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Mon, 2 Apr 2007 11:39:26 +0000 Subject: [PATCH] complete the attachment process from email bzr revid: mga@tinyerp.com-827dbff05d668847d638d96321bf52edde430fa2 --- addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py b/addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py index dc77eac8abc..d358d900967 100755 --- a/addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py +++ b/addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py @@ -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)