procmail
[Top] [All Lists]

html conversion failing

2003-02-12 15:21:34
I've got this in my .procmailrc in an attempt to autoconvert html
emails, but it doesn't even get executed when the pattern matches

# preliminaries
SHELL=/bin/sh
MAILDIR=${HOME}/.Mail
LOGFILE=${MAILDIR}/procmail.log
SENDMAIL=/usr/lib/sendmail
SPAM=${MAILDIR}/filtered-spam
DEFAULT=${SPAM}
LOG=`date
`
VERBOSE=off

:0 HBfbw
* Content-type.*html
|lynx -dump -force_html -stdin

And here's the remains of a message that the filter missed (which is
where I realise that I should tweak the headers as well).

From steve(_at_)lexx(_dot_)uklinux(_dot_)net Wed Feb 12 22:02:08 2003
Return-path: <steve(_at_)lexx(_dot_)uklinux(_dot_)net>
Envelope-to: steve(_at_)patter(_dot_)mine(_dot_)nu
Delivery-date: Wed, 12 Feb 2003 22:02:08 +0000
Received: from eccles.localdomain ([192.168.1.2] helo=lexx.uklinux.net)
        by seagoon.localdomain with esmtp (Exim 3.36 #1 (Debian))
        id 18j4xD-0004et-00
        for <steve(_at_)patter(_dot_)mine(_dot_)nu>; Wed, 12 Feb 2003 22:02:07 
+0000
Message-ID: <3E4AC44B(_dot_)3070109(_at_)lexx(_dot_)uklinux(_dot_)net>
Date: Wed, 12 Feb 2003 22:01:47 +0000
From: Stephen Patterson <steve(_at_)lexx(_dot_)uklinux(_dot_)net>
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.0.0) Gecko/20020623 
Debian/1.0.0-0.woody.1
X-Accept-Language: en
MIME-Version: 1.0
To: steve(_at_)patter(_dot_)mine(_dot_)nu
Subject: test
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, hits=-0.1 required=4.5
        tests=CTYPE_JUST_HTML,SPAM_PHRASE_00_01,USER_AGENT,
              USER_AGENT_MOZILLA_UA,X_ACCEPT_LANG
        version=2.43
X-Spam-Level: 
Status: RO
Content-Length: 9
Lines: 2


   html



-- 
Stephen Patterson http://www.lexx.uklinux.net http://patter.mine.nu
steve(_at_)SPAM(_dot_)lexx(_dot_)uklinux(_dot_)net  remove SPAM to reply        
Linux Counter No: 142831 GPG Public key: 252B8B37        
Last one down the pub's an MCSE

Attachment: pgppwJeOqjPJE.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>