I use a spam scanner to scan incoming emails at work. Another program saves the email in MSG format to our drives for archiving.
Our spam scanner, and sometime the sender's spam scanner appends words to the subject, which forms part of the filename.
examples (names removed)
2009-03-18_085809_RE [SPAM] - RE ATHENA POINT - Found word(s) list error in the Text body.msg
2008-10-09_150229_[SPAM] - Holford Industrial Estate, Unit 13 Refurbishment, Birmingham - Found word(s) free guaranteed in the Text body.msg
2008-09-19_115508_Out of Office AutoReply Unit 13 Holford.msg
2008-09-25_112545_Unit 13 - Holford [Scanned] [Spam score 8%].msg
2008-09-25_112545_Unit 13 - Holford [Scanned][Scanned].msg
I used to use Metamorphose to purge these but scanning an entire drive hangs the program.
I prefer BRU, but I cannot find the similar feature I'm looking for. Metamorphose can use RegEx to search for text in the filename, and you can remove this.
The example I used to use is
\[SPAM](\s-|\s|)|\s+-\sFound\sword.*(?=])|\s+-\sFound\sword.*(?=\d)|\s+-\sFound\sword.*|\s-\sEmail Found in Subject|(\s+|)\[Scanned]|(\s+|)\[Spam score\s\d+%]
But in BRU, I need to match AND replace, and since there's no pattern as to were these words I'm searching for end up, I'm a bit lost
Is it possible to search for multiple words using regex and simply remove them?
So far am searching for each individual term
(.*)(\[Scanned\]) replace with \1
(.*)(\[Scanned\])(.*) replace with \1\3