On Thu, Dec 21, 2006 at 04:28:15PM +0100, Rado S wrote:
when checking attachments, I want to sort out those eMails, which
have no other but base64 encoding. My 1st attempt is this:
:0 BH:
* ^content-type:.*text/plain
* ^content-transfer-encoding:
* ! ^content-transfer-encoding: *[^ b][^a][^s][^e]
$BASE64
However, this matches on "content-transfer-encoding: binary", too.
But I don't see why. Either explanation why it matches or better/
optimal solution to the original problem will be very appreciated.
You would do well to spend a bit of research time in the archives.
Paul Chvostek first suggested this ploy a number of years ago
on this list. I've been using my own version of the idea for
four years now with good result. Here's a mildly edited
version of what I use:
# concept: Paul Chvostek <paul(_at_)it(_dot_)ca>
:0 # base-64-encoded html head is shrouding more than charset
* ^Content-Transfer-Encoding:(.*\<)?base64
* ^Content-Type:(.*\<)?text/(plain|html)
$BASE64
Dallman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail