On Wed, 2014-05-21 at 08:42 -0300, M. Rodrigo Monteiro wrote: > How to create a rule to tag e-mails from *@word.*.com.br? > > This is what I tested: > header TEST From =~ /.*\@word\..*\.com\.br/i
RW already pointed out important improvements. Besides that... Your test rule does what you asked for. So if your question about "how" to create that rule implies your testing didn't work out, you will have to provide more details, maybe including sample headers. -- 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; }}}