Hi,
Below is my procmailrc file designed to discard all mail that is not from a
know source.
The known sources are kept in a file which I fgrep for matches. For the most
part, this script has been working well, however, once in a while (and I know
this is vague) fgrep seems to fail and a message that should pass through is
caught. I hoping some out there might know why. Any other comments about this
script also welcome.
[...]
# Here is where we allow mail with the password the subject to pass through
:0:
* $ ^Subject:.*${BYPASSWD}
! smarks(_at_)ne(_dot_)highway1(_dot_)com
# Here is where we check incoming mail's address against approved list
# if address is on approved list, it's forwarded and no more recipes are
executed
# (Note: there is no c: present)
# !! for unknown reasons (to me at least) this fgrep fails when it
shouldn't...
:1
? fgrep -i -f $HOME/known.senders
! smarks(_at_)ne(_dot_)highway1(_dot_)com
Maybe you should give us a look at the structure of $HOME/known.senders.
One reason of failure could be, that fgrep is not a regex matcher... I
think, you better took one because you cannot ensure a uniform structure in
the 'from' lines.
And, btw, can anyone tell me why there is a ':1' at the beginning of this
recipe?
robert
--
Robert Klemme
computer science and philosophy
at University of Paderborn, Germany
email: kle(_at_)uni-paderborn(_dot_)de