On 2017-10-05 01:12, ruben safir wrote:
> :0:
> *^From.*
artixlinux.org
> artix
>
> :0 E:
> *^From.*
perl.apache.org
> mod_perl
>
> :0 E:
> *^From.*-ruben
> /dev/null
> Does this seem to make sense?
A bit of sense, yes, but:
1. You probably want to start the patterns with "^From:" rather than
"^From", otherwise it will match any header name that starts with that
word.
2. The patterns are regular expressions, so you need to escape the dots
if you mean to match them literally, as I'm guessing you do.
3. It is probably a bad idea to rely on the current directory in the
mailbox names. Use absolute names, e.g.
:0 E:
*^From:.*perl[.]apache[.]org
/home/ruben/Mail/mod_perl
> I can't understand the procmail docs
In that case, I cannot recommend using it. procmail is quirky, old and
unmaintained; there may well be security bugs in it, and unfortunately
it was traditionally installed setuid. In fact, this is the first thing
you should check and fix, if necessary, in case you want to continue
exploring it.
I use procmail myself but I try to make its job as narrow as possible,
and I'm looking for alternatives.
--
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
Do obvious transformation on domain to reply privately _only_ on Usenet.