On 9/8/2017 12:24 PM, Robert Boyl wrote:
Hello, everyone!

Is there a way to create a Spamassassin rule that checks for a certain URL suffix such as .ru but makes sure it has to be at the end of the URI? Ends with string.

Thanks!
Rob

Yes, it's called an anchor and Shane Williams a long time ago gave me some advice on that I used in this rule:

uri             __KAM_SHORT /(\/|^|\b)(?:j\.mp|bit\.ly|goo\.gl|x\.co|t\.co|t\.cn|tinyurl\.com|hop\.kz|urla\.ru|fw\.to)(\/|$|\b)/i

Regards,
KAM

Reply via email to