From 847f34d58e4a0203c16882ff7af645c128b7ccbf Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Mon, 2 Apr 2007 11:31:00 +0000 Subject: [PATCH] complete the attachment process from email bzr revid: mga@tinyerp.com-a7de992a82b0935322d637004e01c8997baf01a1 --- addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py b/addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py index 23111db277a..dc77eac8abc 100755 --- a/addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py +++ b/addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py @@ -276,9 +276,11 @@ if __name__ == '__main__': parser = email_parser(options.userid, options.password, options.section, options.email, options.default, dbname=options.dbname) print print '-.- ICI' - #msg_txt = email.message_from_file(sys.stdin) - fp = open('/home/admin/Desktop/test1.eml'); - msg_txt = email.message_from_file(fp) + 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() print 'Mail Sent to ', parser.parse(msg_txt)