Shaun T. Erickson writes:

I want to have all mail that has a To: header containing "dhpotter+ste@" (without the quotes) to be moved to the "ste" subfolder of the inbox. I've tried:

if (/^To: [EMAIL PROTECTED]/)
{
   exception {
     to "$HOME/$DEFAULT/.Ste/"
   }
}

but it seems to do nothing and the mail land in the inbox.

What am I doing wrong?

The above code moves messages only if the To: header starts with exactly one space, then the letters "dhpotte", followed by one or more occurrences of the letter "r", and then "ste@".


Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to