tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: maurerf () post ! ch
To: tru64-unix-managers
Subject: SUMMARY: Mail delivery
Date: Thu, 24 Dec 1998 07:26:07 +0000	[thread overview]
Message-ID: <96078731112153.tru64-unix-managers.marc@archive.invalid> (raw)

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@post.ch
CH-3030 Bern                http://www.post.ch
__________________________________________________

                 reply	other threads:[~1998-12-24  7:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox