procmail
[Top] [All Lists]

Re: Wierd error in my logs

2008-12-05 16:07:49
On Dec 5, 2008, at 8:23, Charles Gregory <cgregory(_at_)hwcn(_dot_)org> wrote:
On Fri, 5 Dec 2008, LuKreme wrote:
  * ^To:(.*[^-a-zA-Z0-9_.])?\/.*

Well, firstly, I don't like this string. It can stop in so many arbitrary
places. A single or double quote before a name, or the "<" before an
address.... what's the intent?

Er... it doesn't stop on quotes or <'s. I direct you to the log I posted:

2008-Dec-04 20:40:15 -0700; ARG = TO = Mom <*munged*(_at_)yahoo(_dot_)com>, First Last <*munged*(_at_)gmail(_dot_)com>, "First Last (work)" <*munged*(_at_)*munged*(_dot_)org>, <kreme(_at_)kreme(_dot_)com>

Notice the value of TO contains both " and <

  * $ ? /usr/bin/strings .cache_lists | egrep -w \"$ETO\"

results in the following error:

/bin/bash: -c: line 0: syntax error near unexpected token `work'
/bin/bash: -c: line 0: ` /usr/bin/strings .cache_lists | egrep -w " Mom <*munged*(_at_)yahoo(_dot_)com>|First Last <*munged*(_at_)gmail(_dot_)com>|"First Last (work)" <*munged*(_at_)*munged*(_dot_)org>|<kreme(_at_)kreme(_dot_)com>'

so ETO is also getting " and < in it.

The recipe would have just failed, so where does your procmailrc 'fall
through' to?

Ah... ok, I lied, I just couldn't spell when I grepped (f-i-r-e-y is not f-i-e-r-y) and the message was caught by a later recipe and filed away appropriately. There's good news, woot!


--
Thanks to great leaders such as Ghengis Khan, Joan of Arc, and
        Socratic Method, the world is full of history.

____________________________________________________________
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