summaryrefslogtreecommitdiff
path: root/addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py
diff options
context:
space:
mode:
authorMantavya Gajjar <mga@tinyerp.com>2007-04-02 11:31:00 +0000
committerMantavya Gajjar <mga@tinyerp.com>2007-04-02 11:31:00 +0000
commit847f34d58e4a0203c16882ff7af645c128b7ccbf (patch)
tree706087adaea04e3e5d69c66f8df9b5aad6b0cc3c /addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py
parentdb2518b6a4484a7ed49bc105bc2c6e28958ce306 (diff)
complete the attachment process from email
bzr revid: mga@tinyerp.com-a7de992a82b0935322d637004e01c8997baf01a1
Diffstat (limited to 'addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py')
-rwxr-xr-xaddons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py8
1 files 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)