in reply to Getting mail from Exchange

If you are trying to read/manipulate a mailbox and not trying to manipulate Exchange per se, then have a look at Outlook Agents, which are going to be a piece of cake compared to manipulating Exchange itself.

I've done plenty of agent scripts before, but never w/ Perl. I suspect that doing so wouldn't be a problem since Outlook probably uses Windows Script Host, which handles Activestate Perl very nicely.

Perl would probably be much nicer than using the scruddy default standards VBScript/JScript. You'll probably still need to keep you OLE module/docs handy, though.

Hanlon's Razor - "Never attribute to malice that which can be adequately explained by stupidity"

Replies are listed 'Best First'.
Re: Re: Getting mail from Exchange
by Skylark (Beadle) on Nov 03, 2003 at 18:24 UTC
    I can't seem to find info on Outlook Agents, would you have a few links to send my way?

    The main reason why I wanted to interface with Exchange directly and not Outlook is that I want the program to work even when I'm not logged in. I think that Outlook needs a real logged in user, and has problems when it's accessed from a service, even if using "run as user".

    Still, thanks for your answer, and if you can give me a few links about Outlook Agents, I would be very grateful.

      Check out slipstick.com, cdolive.com, your exchange server CD docs, and MS Knowledge Base for details. Outlook Agents are somewhat obscure considering what can be done w/them.

      Exchange programming/scripting can be a BIG P.I.A. CDO and MAPI just don't want to play nice w/anybody besides MS languages, and often not even then, at least in my experience. I don't wish to discourage you if this is the direction you want to take, just be forewarned.

      I'm pretty sure that you don't have to be logged into Outlook for the agent(s) to do their thing, but you DO need an instance of Outlook w/ the mailbox you will be manipulating.

      Hanlon's Razor - "Never attribute to malice that which can be adequately explained by stupidity"
        Thanks a lot for your help Art. I think it would have worked that way, unfortunately after reading some of the info on the links you provided, it seems that some things need to be changed on the Exchange server to enable Agent scripts, and I work in a rather large company where they wouldn't react well to me asking them to change settings on a server.

        So I'll look for other ways of doing what I want to do.

        Thanks again.