complete the attachment process from email

bzr revid: mga@tinyerp.com-a7de992a82b0935322d637004e01c8997baf01a1
This commit is contained in:
Mantavya Gajjar 2007-04-02 11:31:00 +00:00
parent db2518b6a4
commit 847f34d58e
1 changed files with 5 additions and 3 deletions

View File

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