On 7/4/05, Guy Lateur <[EMAIL PROTECTED]> wrote:
> 
> Anything else I could try?

Lateral thinking ?

=== untested ===

import imaplib, time, sys

f = open(msg_file)
r = f.readlines()
f.close()
msg1 = ''.join(r)
server = 'my.exchangeserver.com' # or IP address

user = 'user'
pw = 'pw'

M = imaplib.IMAP4(server)
M.sock.settimeout(120)
M.login(user,pw)[1][0]
M.select()
M.append('INBOX',None ,time.time() , msg1) # Inbox or other folder name
print "MESSAGE successfully saved"
#M.close()  Don't use close,  deletes/purges items
M.logout()[1][0]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to