complete the attachment process from email

bzr revid: mga@tinyerp.com-827dbff05d668847d638d96321bf52edde430fa2
This commit is contained in:
Mantavya Gajjar 2007-04-02 11:39:26 +00:00
parent 847f34d58e
commit 17314089ce
1 changed files with 3 additions and 3 deletions

View File

@ -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)