Arkady Altman writes:
I am using procmail to filter my incoming mail that is delivered with
fetchmail.
Occasionally my mail is delivered into wrong mailbox. The following is part of
my log file:
[deleted]
It is shown that match found on "^(To|Cc|From).*vim*". I have checked all
headers and could not find any matching.
The following is the rule for vim mailing list:
:0:
* ^(To|Cc|From).*vim*
IN.vim
Any clue what is going on?
Thanks,
--
Arkady Altman
Check your to/cc/from mail headers for the string "vi" -- it's probably
in there. Your expression is to blame. Classic misuse of "*"; you're
probably thinking DOS (gasp), where a * has an entirely different meaning.
In egrep (which is what is used in procmail), "*" means "_zero_ or more of
the previous". Therefore, "vim*" matches vi, vim, vimm, etc.
You probably want something like the following instead:
* ^(To|Cc|From).*vim.*
Note the extra dot before the final asterisk.
Paul