29 Jul
2009
29 Jul
'09
4:25 a.m.
Your script checks for:
- a header called "Sender" literally (which isn't in the posted header)
- expects it to contain a valid e-mail address that contains the string "Dude" (which is not true, when you actually meant to use "From": Dude is not part of the mail address)
The correct version of the script would check the "From" header:
if header :contains "From" "Dude" { fileinto "foobar"; }
Thank you for eveyone for the answers. It shed better light on how the rules work. I guess the best way to get the name portion of the sender is indeed to use the "header" modifier and pick the correct header field.
Thanks,
Tim.