On Thu, 2009-05-28 at 10:50 -0400, Kris Deugau wrote: > Karsten Bräckelmann wrote: > > I use Kris Deugau's trim_whitelist -- though very infrequently, just > > when I spot the DB gets out of hand. That hack seems to works perfectly > > for me. > > > > For more info and the script's link see > > http://markmail.org/message/qqsm35q5bqpbb3in > > (For the lazy, the original hack is at > http://www.deepnet.cx/~kdeugau/spamtools/trim_whitelist .)
For the even lazier, injected a space to protect the links integrity. ;) > Nice to hear it's still working for the purpose it was written for. I > still have it in crontab entries on two production systems with global > AWL files myself. That way I don't have to have a mild panic attack > when the mail system becomes mysteriously slow. <g> I usually do Bayes > maintenance in the same cron job. > > > Also see the first link to a list archive in that file. > > Er, wha? I checked and I didn't include a link to anything in the script... Oops, did I add those myself? :) Perfectly possible I did, to have some references in context. $ head .spamassassin/trim_whitelist | grep http # http://www.nabble.com/AWL-Database-Cleanup-td16907407.html#a16946805 # http://www.deepnet.cx/~kdeugau/spamtools/trim_whitelist Anyway, I was referring to the above, for the "need some disk space" and "no in-place shrinking" notes. BTW, thanks for that hack, Kris. :) guenther -- char *t="\10pse\0r\0dtu...@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; }}}