From owner-freebsd-questions Mon Sep 16 11:15:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6957937B400 for ; Mon, 16 Sep 2002 11:15:28 -0700 (PDT) Received: from perimeter.co.za (obelix.perimeter.co.za [209.212.102.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8E6043E86 for ; Mon, 16 Sep 2002 11:15:25 -0700 (PDT) (envelope-from bsd@perimeter.co.za) Received: from asterix ([196.30.116.49]) (AUTH: LOGIN bsd@perimeter.co.za) by perimeter.co.za with esmtp; Mon, 16 Sep 2002 20:15:21 +0200 Message-ID: <013b01c25dad$26762ec0$0200000a@perimeter.co.za> From: "Patrick O'Reilly" To: "Lowell Gilbert" Cc: "FreeBSD Question List" References: <006d01c25b12$f191ac30$b50d030a@PATRICK><44y9a6udvc.fsf@be-well.ilk.org><005801c25cf4$1e4af640$0200000a@perimeter.co.za> <4465x6x82b.fsf@be-well.ilk.org> Subject: Re: MIME unbundler Date: Mon, 16 Sep 2002 20:16:10 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: "Lowell Gilbert" >> Have you ever used it in a scripted process? I cannot figure out a way to >> get metamail to quietly unbundle the email into a directory which I have >> designated for this particular email. metamail wants to prompt for file >> names. And when I try to override this with the -x switch it simply >> writes the files to /tmp/. > > I don't generally need this, because my mailer knows how to talk to > metamail itself, but the manual seems to claim that setting > METAMAIL_TMPDIR will change this behaviour. The -w option may help > you, too: it pulls file names out of headers if they're specified... > Lowell, thanks again! I overlooked that environment variable METAMAIL_TMPDIR in the man page - that's what I needed. I was hoping there would be a command-line switch for that, but I'm sure I can deal with setting the environment variable before executing metamail. Yes - I was using the -w. When I use -w and -x together metamail assigns unnamed MIME extensions by some randomly generated file name - mm. in the METAMAIL_TMPDIR . Named extensions are saved by their given names. Thanks again for your help. --- Regards, Patrick O'Reilly. ___ _ __ / _ )__ __ (_)_ __ ___ _/ /____ __ / __/ -_) _) / ~ ) -_), ,-/ -_) _) /_/ \__/_//_/_/~/_/\__/ \__/\__/_/ http://www.perimeter.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message