A while back I was tinkering with a program that when piped an event
invitation from an .ics attachment, it would generate (based on a
command line option) an .ics accept/decline response that could then
be sent back to the invitation sender.
I've also got some prototype code that can add events to a Google
calendar using the gdata API, but I think I'm going ditch that in
favor of the WebDAV API (which supports the .ics vCalendar format
directly).
What I haven't figured out is how to hook this all up to Mutt.
The scenario I was imagining would be:
1) While reading an "invitation" email with a .ics file attached,
2) Hitting a key to accept or decline would then,
3) Pipe the .ics file through an external program who's output
would then be
4) Attached to an reply e-mail that the user would could edit before
sending.
The external program would be given a command-line option determining
whether the reply attachment would be an accept or a decline.
Is there plumbing in mutt that would allow such a scenario?
Another option would be to let the external program query the user as
to whether the invitation should be accepted or declined.
A less desirable (but probably simpler to implemnet) option would be
to manually pipe the attachment to the program and rather than having
the program's output sucked back into mutt, the external program could
send the reply e-mail.
--
Grant Edwards grant.b.edwards Yow! How's it going in
at those MODULAR LOVE UNITS??
gmail.com