Procmail Filtering Using a Full Subject Line
Can anyone tell me how I can get procmail to filter on a full subject line instead of just one word of the subject line?
Every FAQ and man page I went to only shows an example of filtering a subject line with one word. I need to be able to do more then one. Here is a current example of what I have in my .procmailrc file: :0: * ^Subject:.*Automated Bug Report* "$HOME/Database Messages" I have tried the following: :0: * ^Subject:.*Automated *Bug *Report* "$HOME/Database Messages" :0: * ^Subject:.*Automated/Bug/Report* "$HOME/Database Messages" :0: * ^Subject:.*Automated+Bug+Report* "$HOME/Database Messages" Any help is appreciated. |
I haven't had time to check this, but from man procmailex:
Code:
Forward all mail from peter about compilers to william (and keep a copy of it here in pet-compil). * ^Subject:.*Automated.*Bug.*Report.* |
That looks to have done it, I would have never figured that out. Thanks for the insight.
|
No problem - glad it worked :)
|
All times are GMT -5. The time now is 06:14 PM. |