My Thanks goes to:
Mike D Cross
Bevan Broun
for their quick replies
Bevan point me to a tool called uudeview, which can decode some differents
kind of encoding methods. This tool was better than munpack, but was still
having troubles when subject fields were empty.
On the other side Mike was suggesting using procmail or even perl modules to
manipulate the mails.
I finaly fixed the real problem in zfilter rule, I was moving incoming mails
to a container file an then processing the content with a perl script:
# store messages and forward to UNISYS
if(always)
save in_msg
pipe /bin/mv_to_inqueue.pl
stop
This way doesn't ensure that only one mail is processed by the perl script.
So I decided to do everything in the perl script:
# store messages and forward to UNISYS
if(always)
pipe /usr/users/izv-db/bin/mv_to_inqueue.pl
delete
stop
and the perl script contains a very simple statment to save the mail:
while (<>) {
print INMSG $_;
}
close INMSG;
The original posting was:
I'm using a filter (zfilter) to route mails to an application, and munpack
to decode mime attachements. When mails are delivered at the same time to
the mailbox, they are appended together in the same output file. In this
case munpack is only able to extract the attachment of the first mail.
Is there a way to extract the other attachments (on unix)? Or eventually to
split the mails with a mail utility from shell?
__________________________________________________
Felix Maurer
Die Schweizerische Post Tel: +41-31-338 98 49
Informatik POST Fax: +41-31-338 98 80
Messaging Management
Webergutstrasse 12 Mailto:maurerf_at_post.ch
CH-3030 Bern
http://www.post.ch
__________________________________________________
Received on Thu Dec 24 1998 - 07:27:20 NZDT