[Dovecot] Mailing list's prefix

Karsten Bräckelmann guenther at rudersport.de
Fri Mar 5 01:49:13 EET 2010


On Fri, 2010-03-05 at 00:45 +0200, Timo Sirainen wrote:
> On 4.3.2010, at 22.59, Timo Sirainen wrote:
> 
> > Do you think I'd break a lot of people's filters if I removed the
> > prefix? :) Anyone strongly for/against removing it? It seems kind of
> > annoying to me whenever I happen to think about it.
> 
> Well, it's beginning to sound like there are non-filtering reasons why
> the prefix can be good. So I guess it's better to keep things the way
> they are now :)

I don't recall any, other than plain refusal to use a dedicated folder,
rather than dumping it all into the Inbox...

Anyway, here's a procmail recipe to *remove* the unnecessary Subject
tagging. Enjoy!

:0
* ^List-Post: <mailto:dovecot at dovecot.org>
{
  :0 fw
  | sed "1,/^$/ { /^Subject:/ s/\[Dovecot\] // }"

  :0 :
  DELIVERY_LOCATION_GOES_HERE
}

Caveat: Copy-n-paste, modified from a more complex recipe handling
multiple lists. Not tested. Use on your own risk. ;)


-- 
char *t="\10pse\0r\0dtu\0. at 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; }}}



More information about the dovecot mailing list