For Programmers: Free Programming Magazines  


Home > Archive > Tcl > March 2004 > Re: automate retrieving/sending outlook email via tcl/expect









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: automate retrieving/sending outlook email via tcl/expect
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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com