procmail
[Top] [All Lists]

Re: Invisible To/From

2006-03-23 09:09:12


-------------------------------------------------------------------
Udi Mottelo  -  Unix System Administrator.
Faculty of Engineering  -  Tel-Aviv University
E-Mail: <uuddii(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il>  -  Phone: +972-3-6409446
PGP/GPG public-kye: http://www.eng.tau.ac.il/~uuddii/pgp/public.asc
-------------------------------------------------------------------

On Wed, 22 Mar 2006, fleet(_at_)teachout(_dot_)org wrote:

On Wed, 22 Mar 2006, Ruud H.G. van Tol wrote:

fleet(_at_)teachout(_dot_)org schreef:

grep found three messages in the "spam" file:
[~/spamtest]$ grep "^To: <\[%to(_at_)]>" ~/mail/spam
   To: <[%to(_at_)]>
   To: <[%to(_at_)]>
   To: <[%to(_at_)]>


First use

  grep -n "^To: <\[%to(_at_)]>" ~/mail/spam

to get the line numbers reported.

126:To: <[%to(_at_)]>
7843:To: <[%to(_at_)]>
13247:To: <[%to(_at_)]>
17170:To: <[%to(_at_)]>
23054:To: <[%to(_at_)]>
26282:To: <[%to(_at_)]>
30398:To: <[%to(_at_)]>

Then run

  less ~/mail/spam

and use the / key to search %to@, and see what those matches look like.


Every last one of them is in the header (and less found all of them).

They don't need to be in the mail header, for example. And to run a
mailbox through procmail, you need formail -s.

formail -s procmail ~/spamtest/garbage.rc < ~/mail/spam

is the first line (commented) in all of my test scripts.  I always use
cut/paste (because I'm lazy and prone to typing errors) to put it in the
command line.

For some reason, procmail will NOT find two of those mails.

        You still havn't answered if you find To:s in the body
        of the messages (see Ruud's note)  Try:

:0 HB
* ...


Bye,
  Ufi


____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>