Yes, the "To" also has the username of the account. I'll give a try to your proposal shortly at work. Thanks
Ruben > -----Mensaje original----- > De: Loren Wilton [mailto:[EMAIL PROTECTED] > Enviado el: lunes, 06 de febrero de 2006 0:40 > Para: [email protected] > Asunto: Re: Little custom rule > > > mainly composed by an image and its subject is always "FW: blah" where > > "blah" is the destination account. This is, if the mail is sent to > > [EMAIL PROTECTED] the subject is always "Fw: john" > > > > Can that be matched by a rule? > > Depends. Does the "to" also have the username of the account? If so, you > could do a moderately ugly pair of rules and a meta: > > header __LW_BLAH1 ALL =~ /\nTo:[^<\n]+<[EMAIL > PROTECTED])[^\n]+.*\nSubject:\s*Fw: > \1\b/i > header __LW_BLAH2 ALL =~ /\nSubject:\s*Fw: > (\w+)[^\n]*.*\nTo:[^<\n]+<\1\@/i > meta LW_BLAH __LW_BLAH1 || __LW_BLAH2 > score LW_BLAH 1 > > This is assuming that the To address is of the form [EMAIL PROTECTED] rather > than > any > of the half dozen other legit formats. There are ways to deal with that > to, > but they get *really* messy. > > Loren > > BTW, the above is off the top of my head and untested. It may not even > lint, much less work.
