Hi Joe,
> set sendmail=/usr/bin/procmail -m /home/joe/.procmailoutrc
First the relevant quote from the nail(1) manpage:
sendmail
To use an alternate mail delivery system, set this option to the
full pathname of the program to use. This should be used with
care.
The idea is to give users some tweaking to make nail find the MTA binary.
For example, the classic place of sendmail(8) used to be /usr/lib/sendmail
while the more modern location is /usr/sbin/sendmail. Also, most later
alternative MTA implementations such as qmail, postfix, or exim either
grok the most important classic sendmail options in the same way or
come with a compatibility wrapper which does. nail(1) will simply
run the program you specify using the "sendmail" setting and provide
it with further options and arguments (such as "-i").
As the manual says: you can just spec the pathname; no additional
options.
Providing a shell script as you did is fine. It allows you to
invoke whatever you like with whatever options. However, you
must take care that nail still invokes your script with the
original options, and those may well signify special actions.
For example, the "-i" means to sendmail(8):
-i Ignore dots alone on lines by themselves in incoming messages.
This should be set if you are reading data from a file.
This happens to be the default behaviour of procmail so you are safe
to just ignore this option.
You'd have to check the nail sources, though, to find out what other
options might be used in what circumstances. (Sending an email,
"forwarding" it, setting "from=" for an alternate sender address, ...)
Last remark:
Yes, you have to use quotes for any variable values with spaces in them.
set sendmail=/usr/bin/procmail -m /home/joe/.procmailoutrc
sets 3 variables:
sendmail (to the value /usr/bin/procmail), which has a specific
meaning to nail,
-m which is a funny name and has no specific meaning to nail
/home/joe/.procmailoutrc which is a funny name and has no
specific meaning to nail, again.
The latter to variables are just "set", in a boolean sense.
set sendmail="/usr/bin/procmail -m /home/joe/.procmailoutrc"
yields a single definition but, as you noticed, there's no such
"full pathname of the program to use" as would be required on your
filesystem.
Martin
------------------------------------------------------------------------------
_______________________________________________
nail-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nail-devel