Python and MAPI

Grant Edwards grant at nowhere.
Wed Jan 19 13:06:05 EST 2000


In article <010801bf62a5$3e6c6400$f29b12c2 at secret.pythonware.com>, Fredrik Lundh wrote:

>footnote: MSDN is available on-line, at:
>    http://msdn.microsoft.com/library/
>
>you'll find the MAPI docs under "Platform SDK ->
>Messaging and Collaboration Services"

Cool.  Thanks again.  BTW, the example code that printed out
the subject headers from inbox messages worked.  It should be
pretty easy to grab the message body (and attachments,
eventually) and ship them out via SMTP.  It seems foolish to
re-invent "fetchmail", but that's what I'm going to do. Should
it become necessary, it should be pretty simple to write a
conduit that runs in the other direction: receiving messages
via SMTP and sending them on with MAPI.  As usual, the error
cases are where 90% of the work will be.

Currently, I don't have to worry about the "send" direction:
our Exchange Server has the SMTP server enabled since that's
how we get e-mail from the outside world.  Otherwise, BOFH
would probably shut that off too since SMTP wasn't invented by
Microsoft.  [I haven't checked lately, maybe Bill has declared
that SMTP was invented by MS.]

I'm going to use mutt for my MUA, and there's nothing BOFH can
do about it since I will be using Exchange as the MTA via MAPI!

[Pardon my gloating -- nobody around here sympathizes with my
dissatisfaction with Outlook.] 

Besides, it will give that clunky P166 that sits under the
table in the corner of my office something to do.

-- 
Grant Edwards                   grante             Yow!  I'd like TRAINED
                                  at               SEALS and a CONVERTIBLE on
                               visi.com            my doorstep by NOON!!



More information about the Python-list mailing list