Toen ik Robert Allerstorfer kietelde, kwam er dit uit:
So the complete "final" solution (which I am considering the best one)
to the original question (conditionally calling an rc file if it is
actually readable) would now be the following one for me:
TEST = /usr/bin/test
# be sure to specify the correct path
my_INCLUDERC = /path/to/my_includefile.rc
:0
* ? $TEST -r "$my_INCLUDERC"
{ INCLUDERC = $my_INCLUDERC }
Or use -rs, which also checks 'filesize > 0'.
From my previous post on this:
FileOK = "/usr/bin/test -rs"
:0
* ? $FileOK "$my_INCLUDEFILE"
{ INCLUDERC = "$my_INCLUDEFILE" }
When the enduser is responsible for the attributes
of the includefile, it might be better to leave out
the r-option, to get a useful errormessage in the
procmail-log.
--
Affijn, Ruud
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail