nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] Pick getting all addressees/senders


From: belg4mit
Subject: Re: [Nmh-workers] Pick getting all addressees/senders
Date: Sat, 13 Nov 2010 17:38:40 -0500

Don't forget that nmh commands use $0 to check .mh_profile for default 
parameters.

To get a robust version of what you want (and allow for many other nifty things)
nmh profiles/pick really only needs a syntax to reference arguments. You could:

  ln /usr/bin/pick /usr/local/bin/addressee 

and then add something like the following to your profile:

  #bcc search of locally composed messages
  addressee: -to %1 -or -from %1 -or -cc %1 -or -bcc %1


You could probably even provide such support with a generic shell script 
wrapper.
e.g; script replaces positional notation with corresponding arguments. Hardlink
this argument expansion script to the command name of choice, and have it invoke
$0.bin, which is itself hardlinked to the original nmh command workhorse. Your
profile line would just have to be named addressee.bin instead of addressee



reply via email to

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