diff options
| author | Mantavya Gajjar <mga@tinyerp.com> | 2007-04-02 11:39:26 +0000 |
|---|---|---|
| committer | Mantavya Gajjar <mga@tinyerp.com> | 2007-04-02 11:39:26 +0000 |
| commit | 17314089ceadcfbfddaa9fdb818d30b6ed4e6605 (patch) | |
| tree | 6ea18f5c50f6a749b0c078f9c0eccff607b4d469 /addons/crm/scripts | |
| parent | 847f34d58e4a0203c16882ff7af645c128b7ccbf (diff) | |
complete the attachment process from email
bzr revid: mga@tinyerp.com-827dbff05d668847d638d96321bf52edde430fa2
Diffstat (limited to 'addons/crm/scripts')
| -rwxr-xr-x | addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py | 6 |
1 files 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) |
