In the message dated: Wed, 24 Apr 2013 14:00:48 -0400,
The pithy ruminations from Ken Hornstein on
<Re: [Nmh-workers] Responding to calendar requests> were:
[SNIP!]
=> That's why I did the work to make replyfilter possible. I felt (and
[SNIP!]
=>
=> So, this leads to some other questions; do people think a hypothetical
=> "replcal" program should just be a wrapper script? Something that
=> extracts out a text/calendar content and build a reply message? If
Hmm...that sounds like a job for... replyfilter! (or some other, user-defined
'plug-in' external program).
=> that's what people think, then I'm fine with that. That sounds like
=> something that's perfect for contrib. Or should it be something that
=> happens as an alternate replyfilter script? I guess what I wondering
=> is - if you get a message with a calendar invitation in it, what would
=> you, as a user, _like_ to happen?
Working backwards from the interface, I'd start with the fact that the action
is a reply to the message, and keep the commands as similar as possible to
current behavior, so I'd like to be able to do something like:
show 1234
I see that the message has a meeting invitation, then I can run:
repl -invite accept 1234
or
repl -invite I-decline-your-meeting-invite-with-extreme-prejudice 1234
OK, perhaps just "decline" would be easier to type :).
The actual program to parse the message, extract the text/calendar content,
build a reply, etc., is outside nmh and can be anything the user wants.
As for how to get there... Is there an 'easy' way within .mh_profile to
extend the '*proc' mechanism so that the user could configure a procedure
that uses arguments to decide what external program to call? For example,
if the argument to "repl" is 'invite', then call the user-defined filter
and pass along the remaining arguments, something like:
------------------ .mh_profile ----------------------
replproc -invite: /usr/local/bin/replyfilter $*
-----------------------------------------------------
Mark
=>
=> --Ken
=>
=> _______________________________________________
=> Nmh-workers mailing list
=> Nmh-workers(_at_)nongnu(_dot_)org
=> https://lists.nongnu.org/mailman/listinfo/nmh-workers
=>
--
Mark Bergman Biker, Rock Climber, Unix mechanic, IATSE #1 Stagehand
'94 Yamaha GTS1000A^2
bergman(_at_)panix(_dot_)com
http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=bergman%40panix.com
I want a newsgroup with a infinite S/N ratio! Now taking CFV on:
rec.motorcycles.stagehands.pet-bird-owners.pinballers.unix-supporters
15+ So Far--Want to join? Check out: http://www.panix.com/~bergman
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers