Jason Tang wrote:
From jasont(_at_)padd(_dot_)press(_dot_)net Fri Nov 15 07:25:38 1996
Date: Fri, 15 Nov 1996 15:24:33 +0000 (GMT)
From: Jason Tang <jasont(_at_)padd(_dot_)press(_dot_)net>
X-Sender: jasont(_at_)garlic(_dot_)compnews(_dot_)co(_dot_)uk
Cc: Procmail <procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de>
Subject: Re: Procmail and attachments
In-Reply-To: <199611080016(_dot_)QAA10964(_at_)netcom11(_dot_)netcom(_dot_)com>
Message-Id:
<Pine(_dot_)SUN(_dot_)3(_dot_)91(_dot_)961115150816(_dot_)235M-100000(_at_)garlic(_dot_)compnews(_dot_)co(_dot_)uk>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Lines: 41
To: the doctor {who?} <doctor(_at_)netcom(_dot_)com>
:0 HBw
* ^Content-Transfer-Encoding:.*base64
{
:0 cw
| munpack
:0 Hhw
| formail -zcI"Status: O" -I"X-Unpacked: to Mail" >>$DEFAULT
}
How would you do the same for a textual attachment with, for example, a
mime header like this..
Content-Type: TEXT/PLAIN; CHARSET=us-ascii
Content-ID:
<Pine(_dot_)SUN(_dot_)3(_dot_)91(_dot_)961106090145(_dot_)8336D(_at_)cumin(_dot_)compnews(_dot_)co(_dot_)uk>
If it's already noted in the headers as a multi-part msg., it should be no
problem... munpack will 'unpack' these to part1, part2, part3, ... partN,
however, I know of no way to change the name off-hand...
I got hold of munpack, but after reading the man page for it I've
realised it does not write text MIME parts. Do you know where I can get
the full manual for procmail saying what ':O HBw' and others means. Even
better still, could you write a little script that will make procmail
write out the attachments to files.
[manpage]
munpack - unpack messages in MIME or split-uuencode format [ ] [
] [ ] [ ] [ ] The program reads each RFC-822 message and writes
all non-text MIME parts or split-uuencoded files as files.
[end]
Thanks in advance
Jase
_ _
|_) |_| Listings Ltd \ Jason Tang / (01430) 488356 Phone
| | | Bishop's Manor Howden \ /
jasont(_at_)padd(_dot_)press(_dot_)net Email
--------------< ISPS (Information Systems Production Software) >--------------