Set up a simple procmail recipe that would forward mail if it found the text "ABC Store: New Order" in the subject.
:0 * ^(To|From).* abc@cdefgh.com * ^Subject:.*ABC Store: New Order* {
Unfortunately, the subject field in the mail message received from the mail server was contained in the syntax of the MIME-encoded word.
Subject: =? UTF-8? B QUJDIFN0b3JlOiBOZXcgT3JkZXI =? =
The above question is charset utf-8 ISO-8859-1. So it was interesting if there were any mechanisms / scripts / utilities for parsing this and converting to string format so that I could apply my procmail filter.
email encoding perl utf8-decode procmail
MON
source share