I've been working away, trying to learn a bit of Perl so that I can
write a filter to get TB! to update my Outlook (or any vCAL enabled)
calendar, when I get meeting invitations. Its irritates me to have to
do this manually.

It just dawned on me that TB! can probably do it all itself. Not quite
true.. I think you Reg-Experts would be able to do it. I'm struggling.

The problem is simple... The incoming message looks like the .MSG
attachment, and the outgoing text file (.VCS) has to look like this

> BEGIN:VCALENDAR
> PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN
> VERSION:1.0
> BEGIN:VEVENT
> DTSTART: & dtStart
> DTEND: & dtEnd
> LOCATION;ENCODING=QUOTED-PRINTABLE: & strLocation
> UID: & mlngEventID
> DESCRIPTION;ENCODING=QUOTED-PRINTABLE: & strDesc
> SUMMARY;ENCODING=QUOTED-PRINTABLE: & strSubject
> PRIORITY:1
> End:VEVENT
> End:VCALENDAR


The only thing that needs inserting is the dtStart, dtEnd (Unix date
format (YYYYMMDDHHMNSS)), and the extracted strings for location,
subject, description etc. Otherwise its a straight template, with some
macro replacements?????? (mlngEventID is just a unique number - say
the message id??)

Stick this in as the template for an action of "Run external program"
on the READ Message action, with a command line of

rundll32.exe url.dll,FileProtocolHandler $(FileName)

and it should automatically pop up with your vCal enabled program
(Outlook in my case)

Thats the theory......, any help with the Regexp fields extraction
please? Can it be done as a template.. or does it need the use of
Perl?

Regards
Graham
--- Begin Message ---
When: 21 December 2001 3:00 -3:30  (GMT) Greenwich Mean Time : Dublin,
Edinburgh, Lisbon, London.
Where: home

*~*~*~*~*~*~*~*~*~*

Get out of hereeeeeeeeeeee!!!!





































--- End Message ---

Reply via email to