[100894] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Re: procmail statement

daemon@ATHENA.MIT.EDU (Zoki)
Mon Nov 23 18:01:03 1998

Date: Mon, 23 Nov 1998 23:01:50 +0100 (CET)
From: Zoki <zokiphoto@magic.fr>
To: Red Hat Users List <redhat-list@redhat.com>
In-Reply-To: <19981123202424.D3386@adbvdesign.analog.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Mon, 23 Nov 1998, Thomas Ribbrock (Design/DEG) wrote:

->Zoki writes:
->> What I understand from all the replies is that the following statement in
->> .procmailrc:
->> 
->> 	->* ^Subject: +test
->> 
->> would filter a Subject saying "test" but *not* "testimony".
->
->To the best of my knowledge: Wrong. The shortest possible match is taken (or
->was it the longest?) Anyway, testimony is matched as well.
->I just tried this rule:
->
->* ^Subject:.*TRi-spamtest
->
->with a subject "TRi-spamtest xxx" and it matched.
->
->If you want to be sure only "test" is matched, you'd have to use:
->
->* ^Subject: +test$
->
->$ stands for end of line, so this rule would match the word test with one or
->more spaces in front of it and nothing after it.
-> 
->> BTW, shouldn't it be "test+" instead of "+test"? Man procmailrc shows the
->> "+" after the word.
->
->No. The + is related to the space in front of it (hence "     test" is
->valid). test+ would filter "test", "testt", "testtt", ...
->The + means "one or more of the characters/expressions in front of the +".
->See e.g. man procmailrc for more.


*** Thanks Thomas,

What I did is follow your advice by putting

	* ^Subscribe: +test$

in .procmailrc which should do the trick. 

Cheers,
Zoki.
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
ZOKImage Paris
	Creation d'images est traitement numerique
			Image creation & digital tweaking
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/

Mailed with Linux and Pine.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post