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

_______________________________________________
Nmh-workers mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to