You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Steven W. Orr" <st...@syslang.net> on 2007/02/06 15:49:20 UTC

Am I doing this right?

header MY_IMPORTANT_REPLACE     Body =~ /Important: Replace \".\" with \"." in the above link/
score MY_IMPORTANT_REPLACE      3.0
describe MY_IMPORTANT_REPLACE   Messages which explain how to fix a broken link

for stuff that has this in it?

e.g.,

-------------------
Hi,

Vjiagra 1,80
Cjialis $ 3,00
Levjitra $ 3,35

http://intimidatio.progenyid&com

Important: Replace "&" with "." in the above link
-------------------

or is there a better way?

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net

Re: Am I doing this right?

Posted by Theo Van Dinter <fe...@apache.org>.
On Tue, Feb 06, 2007 at 10:11:28AM -0500, Dan Barker wrote:
> Fourth, & is not spelled .

True, but /./ matches "&", along with every other character. :)

-- 
Randomly Selected Tagline:
"I have to be asleep by one in the morning because my dreams start
 whether or not I'm asleep."     - Bob Lazarus

RE: Am I doing this right?

Posted by Dan Barker <db...@visioncomm.net>.
Fourth, & is not spelled .

Dan

-----Original Message-----
From: Theo Van Dinter [mailto:felicity@apache.org]
Sent: Tuesday, February 06, 2007 9:53 AM
To: spamassassin-users
Subject: Re: Am I doing this right?


On Tue, Feb 06, 2007 at 09:49:20AM -0500, Steven W. Orr wrote:
> header MY_IMPORTANT_REPLACE     Body =~ /Important: Replace \".\" with
\"."
> in the above link/
> score MY_IMPORTANT_REPLACE      3.0
> describe MY_IMPORTANT_REPLACE   Messages which explain how to fix a broken
> link

First, you want to match the body, which isn't a header (see "perldoc
Mail::SpamAssassin::Conf for more information).  Second, you don't need
to escape the quotes.  Third, you probably would want it case-insensitive
(add a "i" at the end).

--
Randomly Selected Tagline:
"The OSI hits! -more-
 You are in a twisty maze of networking standards, all overengineered."
                   - Brandon Allbery


Re: Am I doing this right?

Posted by Theo Van Dinter <fe...@apache.org>.
On Tue, Feb 06, 2007 at 09:49:20AM -0500, Steven W. Orr wrote:
> header MY_IMPORTANT_REPLACE     Body =~ /Important: Replace \".\" with \"." 
> in the above link/
> score MY_IMPORTANT_REPLACE      3.0
> describe MY_IMPORTANT_REPLACE   Messages which explain how to fix a broken 
> link

First, you want to match the body, which isn't a header (see "perldoc
Mail::SpamAssassin::Conf for more information).  Second, you don't need
to escape the quotes.  Third, you probably would want it case-insensitive
(add a "i" at the end).

-- 
Randomly Selected Tagline:
"The OSI hits! -more-
 You are in a twisty maze of networking standards, all overengineered."
                   - Brandon Allbery