On Sat, 2014-05-31 at 00:44 +0200, Karsten Bräckelmann wrote:
> Depending on what you actually want to extract from the messages, the
> resulting DNS queries of the URIDNSBL plugin might not be sufficient.
> URIDNSBL does NOT operate on actual, full URIs, but its domains only. No
> path information, and no hostname level.

Since SA 3.4, there are template tags which already might be all you
need. The template tags _URIHOSTS_ and _URIDOMAINS_ list all extracted
(and to be looked up) URIs, including full hostname and domain only
respectively. No path information.

  add_header all UriHosts _URIHOSTS_

will add an X-Spam-UriHosts header. Since this actually is provided by
the URIDNSBL plugin, skiplist and max number apply as outlined.


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}

Reply via email to