| Melissa Schrumpf 2004-03-27, 12:27 am |
| Cameron Laird wrote:
> Chris Nelson wrote:
[color=darkred]
[color=darkred]
[color=darkred]
[color=darkred]
> There are several COM extensions now <URL: http://wiki.tcl.tk/com >.
> It's a natural question. We *think* COM'll help, but it depends on
> details of what the original questioner truly wants.
It can be done that way, but it would be sloppy. Outlook has the ability to
run an external program when new mail is received. Using a COM extension, an
external script can access the INBOX. For example code, the original poster
can have a look at:
http://www.geocities.com/m_schrumpf/tcl/index.html
And scroll down to the IPC section...
outlook export all - Use TCOM to export Outlook folders to
the filesystem. Useful for dumping PST files to a
directory. Recurses directories. Saves attachments.
If attachments are outlook MSG files, opens and exports
them and their attachments.
If you can do that much, you can open whatever is saved out using [open] and
process it however you like. Additionally, you can grab the text of the
message without saving it out to filesystem. It's a property or method of the
message object, I believe. I would also recommend:
com tree - A COM object browser using TCOM and the tree
widget (tree.tck by D. Richard Hipp). Extremely useful
in poking around in COM object structures. Has the
ability to execute methods within the structure being
browsed.
(Finally getting code snippets online!)
--
MKS
|