: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) >--------------