

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
9 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] convert html- and mul...| From | Sent On | Attachments |
|---|---|---|
| Nick Simicich | Dec 16, 2002 12:16 am | |
| Ruprecht Helms | Dec 16, 2002 2:10 am | |
| Ruprecht Helms | Dec 16, 2002 8:29 am | |
| Nick Simicich | Dec 16, 2002 11:48 am | |
| Administrator | Dec 16, 2002 12:39 pm | |
| Ruprecht Helms | Dec 16, 2002 1:27 pm | |
| Ruprecht Helms | Dec 16, 2002 1:44 pm | |
| Administrator | Dec 16, 2002 6:02 pm | |
| Nick Simicich | Dec 16, 2002 7:09 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [maildropl] convert html- and multipart-mails into plaintext | Actions... |
|---|---|---|
| From: | Nick Simicich (nj...@scifi.squawk.com) | |
| Date: | Dec 16, 2002 12:16:39 am | |
| List: | net.sourceforge.lists.courier-maildrop | |
Consider grabbing a copy of my perl script, demime. It reduces pretty much any piece of mail to plain text (save reports, this is on purpose). I drive it as a filter out of maildrop in a
DEMIMEFILTER="/usr/lib/majordomo/demime -f -"
This is an example of running it against certain mailing lists. I have already made the determination that this is a mailing list. The stuff about winmail.dat is because demime will also remove uuencoded text sections.
if ( /^content-type:[:space:].*html/ || \ /^content-type:[:space:].*multi/ || \ /^content-type:[:space:].*rich/ || \ /^content-type:[:space:].*application/ || \ /^X-MS-Attachment/ || \ /^[:space:]+winmail[0-9]?.dat/:b || \ /^begin[:space:]+[:digit:]+[:space:]+winmail.dat/:b || \ /^begin\s+[0-7]+[:space:]+[:graph:]+[:space:]*$/:b) { log "$ltalk@$domain message demimed: $MATCH" xfilter $DEMIMEFILTER }
You can get demime at http://scifi.squawk.com/demime.html
At 10:41 PM 2002-12-15 +0100, Ruprecht Helms wrote:
Hi,
how can I configure that maildrop convert mails with content-type html or multipart/alternative into plaintext. If the mail is from the multiparttype I will cut off the html-part by maildrop.
At the moment I have built such rule
... if (reformail -x Content-Type: == 'text/html') { cc "|mailbot -t /usr/share/autoresponse/html \ -A 'From: rhe...@mayn.de' /var/qmail/bin/qmail-inject" reformime }
if (reformail -x Content-Type: == 'multipart/alternative') { cc "|mailbot -t /usr/share/autoresponse/multipart \ -A 'From: rhe...@mayn.de' /var/qmail/bin/qmail-inject" reformime }
------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/
_______________________________________________ Courier-maildrop mailing list Cour...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Demime will also remove advertising signatures. :-)
-- If you doubt that magnet therapy works, I put to you this observation: When refrigerators were first invented, in the 1940s, they were rather unreliable, but then they became significantly more reliable. The basic design of the refrigerator did not change, and we all know that quality was important back then, so I doubt that newer refrigerators are made better. Refrigerators have become more reliable because of the rise of the refrigerator magnet. Nick Simicich - nj...@scifi.squawk.com







