On 25-Jan-2009, at 11:21, Dallman Ross wrote:
FQDN = $1 # for testing on the command line
Couldn't you stack this so that the rc file is usable from the cli and
from being called by another rcfile?
# Check if FQDN was set
:0
* FQDN ?? ^^^^
{
#not set, check for ARG, if it's not set, bailout
FQDN = $1
:0
* FQDN ?? ^^^^
{
SWITCHRC
HOST
}
}
This way, if you SWTICHRC it works, and if you run it from the cli it
works...
As I understand it, if the file is called from another, the SWITCHRC
will switchback. If it was called from the cli, the SWITCHRC will log
an error, and the HOST will abort the file.
--
Passion is the pill you can swallow forever Taking them one by one
One by One --Agents of Good Roots "Come On"
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail