# This procmailrc snippet fixes some of the annoyances of gnats # first handle web attachments :0HB * ^Received: from gnats by trithemius.gnupg.org * ! ^Content-Type: * ^ ----gnatsweb-attachment---- { :0fh | formail -i"MIME-Version: 1.0" -i'Content-Type: multipart/mixed; boundary="--gnatsweb-attachment----"' :0fb | echo "----gnatsweb-attachment----" ; echo ; sed -e 's/^ //' } # now check if it's a mangled MIME mail :0HB * ^Received: from gnats by trithemius.gnupg.org * ! ^Content-Type: * ^ Content-Type: * ^ --\/.+ { :0fh | formail -i"Content-Type: multipart/mixed; boundary=\"$MATCH\"" :0fb | sed -e 's/^ //' } # otherwise, inject some random headers :0f * ^Received: from gnats by trithemius.gnupg.org * ! ^Content-Type: | formail -i'Content-Type: text/plain; charset=iso-8859-1' :0f * ^Received: from gnats by trithemius.gnupg.org * ! ^Content-Transfer-Encoding: | formail -i'Content-Transfer-Encoding: quoted-printable'