When you use Outlook automation, you are scripting ... well, Outlook. Which says that your script will use a running instance of Outlook or maybe even start one.

When you directly attach to MAPI, you are acting like any other client using this interface (like Outlook does too).

That said, there are certain things you might only be able to do with OL directly, while other things can better be done with MAPI directly.

When I originally worked out for me the MAPI access presented in the second node you linked to, I was looking for a way to access an Exchange server mailbox from a Windows service, which deemed unlikely to be done by scripting OL to me.

When you miss a feature in OL automation which is doable with MAPI access, what would conversely be the feature you can do in OL scripting you miss the other way round?


On another note: Please reread "What shortcuts can I use for linking to other information?", with respect to linking inside perlmonks.

In reply to Re: Code for manipulation of Outlook emails: Combining existing code features by pKai
in thread Code for manipulation of Outlook emails: Combining existing code features by Win

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.