Man Arrested Over 'Spam Rage'

Chris F.A. Johnson c.f.a.johnson-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Sun Nov 23 20:53:39 UTC 2003


On Sun, 23 Nov 2003, JoeHill wrote:

> On Sun, 23 Nov 2003 14:52:41 -0500 (EST)
> Max Blanco <blanco-S8qYAnHmZTt34ZA5RureAJ4VBq8PJc8F at public.gmane.org> wrote:
>
> > He must not have been familiar with procmail.
> > A script like this *may* (or may not) have saved him from going postal:
> >
> > # cat > .procmailrc
> > :0:                #delete spam
> > *
> > ^Subject:.*(prescription|meds|medication|xanax|valium|viagra|pharmac|enlarge|
> > penis)/dev/null
> > ^d
>
> what's with the ^d, I've never seen that before?

     Control-D, i.e. end of file. The instruction "cat > .procmailrc"
     sends the keyboard input to the file .procmailrc (should be
     $HOME/.procmailrc) until Ctl-D is pressed.

> > <http://www.linuxworld.com/story/32894.htm>
> >
> > Is the regexp match case-insensitive?
>
> No, you'd need [Pp][Rr][Ee]...etc.

     Not necessary; they ARE case-insensitive.

-- 
	Chris F.A. Johnson
	=================================================================
	cfaj-uVmiyxGBW52XDw4h08c5KA at public.gmane.org                      http://cfaj.freeshell.org
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list