Re: need help with spamassassin URI rule

2008-12-08 Thread Ned Slider
Ned Slider wrote: Henrik K wrote: To be more specific: Hostname may end optionally to a dot, with :port, /slash or nothing following m{^https?://[^.:/]+\.[^.:/]+\.?(?:$|[:/])} Could anyone please provide a reference or explanation of the use of m{blah} in spamassassin uri rules? Than

Re: need help with spamassassin URI rule

2008-12-08 Thread Ned Slider
Henrik K wrote: To be more specific: Hostname may end optionally to a dot, with :port, /slash or nothing following m{^https?://[^.:/]+\.[^.:/]+\.?(?:$|[:/])} Could anyone please provide a reference or explanation of the use of m{blah} in spamassassin uri rules? Thanks

Re: need help with spamassassin URI rule

2008-12-08 Thread John Hardin
On Mon, 8 Dec 2008, Dennis Hardy wrote: How about: /:\/\/[^.\/]+\.[^\.\/]+\// Hi John, sweet, this seems to work! Could you help me with how to add a list of "com|net|info|biz|etc" before the closing "/", so it will match against a list of known TLDs? /:\/\/[^.\/]+\.(?:com|net|info|

Re: need help with spamassassin URI rule

2008-12-08 Thread Dennis Hardy
ew this message in context: http://www.nabble.com/need-help-with-spamassassin-URI-rule-tp20897907p20899285.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Re: need help with spamassassin URI rule

2008-12-08 Thread Henrik K
On Mon, Dec 08, 2008 at 08:52:46AM -0800, John Hardin wrote: > On Mon, 8 Dec 2008, Dennis Hardy wrote: > >> What I would like to match on is URLs that do _not_ start with a third level >> domain entry, and end with ".com", ".biz", ".info", etc. For example, >> "http://hello.com/"; (followed by mor

Re: need help with spamassassin URI rule

2008-12-08 Thread John Hardin
On Mon, 8 Dec 2008, Dennis Hardy wrote: What I would like to match on is URLs that do _not_ start with a third level domain entry, and end with ".com", ".biz", ".info", etc. For example, "http://hello.com/"; (followed by more stuff) would match, and "http://www.hello.com/{...}"; would _not_ mat

need help with spamassassin URI rule

2008-12-08 Thread Dennis Hardy
.net/"; would. Is this possible with perl regexps? I've spent hours trying variations of different URI rules, but none of them work (they always match the "www." as well). Here are some of my feeble attempts: [^w]{3}.*\.com\/ ^(?:http?:\/\/)?[^\/]+(?http://www.n