python version:
import win32com.client
myOL = win32com.client.Dispatch("Outlook.Application")
myNS = myOL.GetNamespace("MAPI")
sItem = win32com.client.Dispatch("Redemption.SafeMailItem")
myDestBox = myNS.GetDefaultFolder(6)
oItem = myDestBox.Items.Add(0)
sItem.Item = oItem
sItem.Import("H:\\I
Yes! I finally got it to work. I've written a VBscript which I'll call from
python. It uses Outlook.Redemption's SafeMailItem. No need to use IMAP or
whatever services.
Only weird thing is it doesn't put the msg in the Inbox, as I intended, but
in the Drafts folder. Well, never mind that, it's
Ok, we didn't have the IMAP service running; we do now (no SSL).
Connecting to the server is not a problem anymore, but logging in is. It
works with the administrator account, but not with my personal account. We
have restricted access to all machines in 10.0.0.0/255.255.255.0, which
includes m
"guy lateur" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
|
| "Tim Williams (gmail)" <[EMAIL PROTECTED]> schreef in bericht
| news:[EMAIL PROTECTED]
| > Could you SMTP it back in ? It would gain an extra Received: header
| > but the rest of the email would most likely be unalte
"Tim Williams (gmail)" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> Could you SMTP it back in ? It would gain an extra Received: header
> but the rest of the email would most likely be unaltered.
I don't understand what you mean. How does this have to do with connecting
to
On 7/5/05, Guy Lateur <[EMAIL PROTECTED]> wrote:
> > I just tried this and it failed with IP addresses but not
> > hostnames/machine names, try it again with the server name. :)
>
> Nope, same problem. I think TJG might be right, and our server probably
> doesn't have IMAP running (yet).
Could y
> I just tried this and it failed with IP addresses but not
> hostnames/machine names, try it again with the server name. :)
Nope, same problem. I think TJG might be right, and our server probably
doesn't have IMAP running (yet).
> Depends how secure you need it to be.For my simple stuff
On 7/5/05, Guy Lateur <[EMAIL PROTECTED]> wrote:
> Thanks for the suggestion, Tim. Unfortunately, I get a 'connection refused'
> error on the line 'M = imaplib.IMAP4(server)'. It says "socket.error:
> (10061, 'Connection refused')". I've tried both the external IP adress and
> the internal one (10.
"Guy Lateur" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Are you saying it's unsafe to do that? I only need this for an application
> running locally, I mean, from within our LAN domain. We do have Exchange
> webmail.
I wasn't offering security advice but merely observing that
Are you saying it's unsafe to do that? I only need this for an application
running locally, I mean, from within our LAN domain. We do have Exchange
webmail.
I've asked our Exchange expert wether or not IMAP is running; awaiting an
answer..
"Richard Brodie" <[EMAIL PROTECTED]> schreef in beri
"Tim Golden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Could simply be that the Exchange server isn't running an
> IMAP service (or whatever it's called). Ours doesn't.
I would have thought most wouldn't run IMAP in the clear;
over SSL maybe.
--
http://mail.python.org/mail
[Guy Lateur]
| Thanks for the suggestion, Tim. Unfortunately, I get a
| 'connection refused'
| error on the line 'M = imaplib.IMAP4(server)'. It says "socket.error:
| (10061, 'Connection refused')". I've tried both the external
| IP adress and
| the internal one (10.0.0.2). I'm sure there's a
Thanks for the suggestion, Tim. Unfortunately, I get a 'connection refused'
error on the line 'M = imaplib.IMAP4(server)'. It says "socket.error:
(10061, 'Connection refused')". I've tried both the external IP adress and
the internal one (10.0.0.2). I'm sure there's a way to get over this, isn't
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.
Thanks for the tip, Simon, but unfortunately it doesn't work; it says "The
interface name 'MailItem' does not appear in the same library as object
'"
Anything else I could try?
Cheers,
g
"Simon Brunning" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
Well, I don't know anyt
On 7/4/05, Guy Lateur <[EMAIL PROTECTED]> wrote:
> I've been writing some code to move some data into and out of Outlook (2003
> + Exchange 2003). I have some email .msg files on our file server, and I
> can't seem to get them back into the Outlook object I need, ie a MailItem.
> I've tried to use
Hi all,
I've been writing some code to move some data into and out of Outlook (2003
+ Exchange 2003). I have some email .msg files on our file server, and I
can't seem to get them back into the Outlook object I need, ie a MailItem.
I've tried to use App.CopyFile() to (temporarily) put the file
17 matches
Mail list logo