SPAM filters / Email Filters

Shark

Verified User
Joined
Aug 8, 2005
Messages
42
Location
Ohio
We've been trying to use the "Block all e-mail containing the word" filter for things like:

Ink & Toner
Save up to 60% off

Unfortunately using some of the special characters like & and % do not work. We even tried to edit the file directly, /etc/virtual/domain/filter.conf and tried things like & and \& but it still doesn't work.

Any help would be appreciated, thanks for your time,

Dave~
 
Last edited:
I'll have to check to see if those cases are being escaped correctly. If my memory serves me correctly, I've only escaped the \ and $ characters.

John
 
Thanks for the feedback. I have read through Jeff's suggestion and it looks like it will take some time to digest. I tried a couple of things on that site but neither worked.

John, those do work but I haven't found any other characters that also work. Thanks for looking into this!

% and & are used a lot in spam.

Dave~
 
You went about it right. Using the backslash before a symbol is supposed to escape it. I think the problem is though, that all backslashes are escaped before the line is read. So this:
is turned into this:
and so your method becomes uneffective. You'll have to have DA fix this as I don't think there's anything you can do.
 
Thanks Dravu,

I suspected as much. Incidentally, if I use

\&

I just get \ in the filters.

So 'Ink \& Toner' just becomes

Ink \

Dave~
 
Thanks Dravu,

I suspected as much. Incidentally, if I use

\&

I just get \ in the filters.

So 'Ink \& Toner' just becomes

Ink \

Dave~

Have you tried entering \\& or \\\&
 
Hey floyd,

Thanks for the idea. Still no luck,

\\& becomes \\
\\\& becomes \\\

Thanks for your reply though.

Dave~
 
Back
Top