Ian Ponce asked:
I want to filter out all e-mails with subject: [gamedancers] so on.....
and transfer it to a folder. is this syntax of mine correct?
...
:0
* ^Subject:.*[gamedancers].*
/home/ian/mail/gamedancers/
It's correct syntax, but it doesn't do exactly what you want. Try
this instead:
:0:
* ^Subject:.*\[gamedancers]
/home/ian/mail/gamedancers
The changes:
- ":0:" instead of ":0" to lock the folder while writing to it,
so if two messages arrive at about the same time, they get
written one after the other.
- "\[" instead of "[": "[gamedancers]" means "any of the letters
g, a, m, e, etc.", the "\[" tells procmail you mean a literal
left bracket (and the following string) instead.
- No ".*" at the end, this just slows down the matching, but
doesn't really make any difference.
This still catches messages with subject lines like
"Re: [gamedancers] something" or "news about [gamedancers]
list"; probably that's okay for you, but if you don't
want it, change the condition to
* ^Subject:[ ]*\[gamedancers]
(space and tab inside the brackets).
/HW