Dear Srs.
I have some questions about procmail funtions (please help me!!).
1- It is possible to only obtain the following data of a mail?:
From:
To:
Subject:
Body: (in plain text)
no attachments files.
2- If the message contains HTML, is possible to convert to plain text?
3- If the message contains attchments files, is possible to delete it?.
Here a example:
Original Message
__________________________________________________________
From rshirk(_at_)sfgate(_dot_)com Sun Mar 22 01:52:45 1998
Received: from aleve.media.mit.edu by hub.media.mit.edu;
(5.65v3.2/1.1/06Jun95-8.2MPM)
id AA06355; Sun, 22 Mar 1998 01:52:45 -0500
Received: from cyber.sfgate.com (cyber.sfgate.com [198.93.154.11])
by aleve.media.mit.edu (8.8.7/ML970927) with SMTP id BAA23676
for <handyboard(_at_)media(_dot_)mit(_dot_)edu>; Sun, 22 Mar 1998
01:08:09 -0500
(EST)
Received: from localhost by cyber.sfgate.com with smtp
(Smail3.2 #1) id m0yGduz-000Is1C; Sat, 21 Mar 1998 22:07:37 -0800
(PST)
Date: Sat, 21 Mar 1998 22:07:37 -0800 (PST)
From: Richard <rshirk(_at_)sfgate(_dot_)com>
X-Sender: rshirk(_at_)cyber
To: handyboard(_at_)media(_dot_)mit(_dot_)edu
Subject: Frob nobs and IR
Message-Id:
<Pine(_dot_)SOL(_dot_)3(_dot_)96(_dot_)980321212443(_dot_)21628C-200000(_at_)cyber>
Mime-Version: 1.0
Content-Type: MULTIPART/MIXED;
BOUNDARY="-559023410-1804928587-890546857=:21628"
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime(_at_)docserver(_dot_)cac(_dot_)washington(_dot_)edu for
more info.
---559023410-1804928587-890546857=:21628
Content-Type: TEXT/PLAIN; charset=US-ASCII
This is a test message.
---559023410-1804928587-890546857=:21628
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="xbump2.c"
Content-Transfer-Encoding: BASE64
Content-ID:
<Pine(_dot_)SOL(_dot_)3(_dot_)96(_dot_)980321220737(_dot_)21628D(_at_)cyber>
Content-Description:
LyogVGhpcyBpcyAoc2xpZ2h0bHkgbW9kaWZpZWQpIGRlZmF1bHQgdG91Y2gg
bmF2aWdhdGlvbiAqLw0gICAgICAgICBjaGFyIHBuX3NvbmdbXT0gIjEjZCA0
ZTNyMSNmNGczcjEjZCAzZTEjZjNnMWMzYkQxZTNnMWIgOCZiMmIyYTJnMmUy
---559023410-1804928587-890546857=:21628--
__________________________________________________________
Final Message
__________________________________________________________
From: rshirk(_at_)sfgate(_dot_)com
To: handyboard(_at_)media(_dot_)mit(_dot_)edu
Subject: Frob nobs and IR
Date: 03/22/2000
Body: This is a test message.
__________________________________________________________
It is possible to use the procmail to do this?
Thank's for your time.
Luis Bock