[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] Responding to calendar requests

From: bergman
Subject: Re: [Nmh-workers] Responding to calendar requests
Date: Wed, 24 Apr 2013 16:54:36 -0400

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:


=> That's why I did the work to make replyfilter possible.  I felt (and


=> 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

        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 $*


=> --Ken
=> _______________________________________________
=> Nmh-workers mailing list
=> address@hidden
=> https://lists.nongnu.org/mailman/listinfo/nmh-workers

Mark Bergman    Biker, Rock Climber, Unix mechanic, IATSE #1 Stagehand
'94 Yamaha GTS1000A^2


I want a newsgroup with a infinite S/N ratio! Now taking CFV on:
15+ So Far--Want to join? Check out: http://www.panix.com/~bergman 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]