Hello!

I have to write two shell scripts. One to check a file, and send it via
Email to the other script. The second script has to get the attached
file back from the Email and install it.
The file which is attached is a PGP signed Tarball.
It is send via 
   mutt -a files.tar.pgp -s "Subject" [EMAIL PROTECTED] <
message.txt
Sending the file works fine!
On the other side each time the user gets a mail a script is executed
which uses metamail to get the file back.
Metamail is executed as follow
   metamail -r -q -x -w /tmp/receivedmail
Now my problem :)
If I use mutt for sending the file the files created by metamail are
only called with temp names beginning with mm.
If I use the Netscape Messenger with the file attached, the name after
metamail is correct.
I need a correct naming for working with the file. Its hard for me to
find the pgp tempfile and rename it an so on...

This is the MUTT-Header of the received Email:

>From [EMAIL PROTECTED]  Thu Aug 31 13:55:39 2000
Received: (from burgsth@localhost)
        by dawsobr.tronicplanet.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id
NAA01325
        for [EMAIL PROTECTED]; Thu, 31 Aug 2000 13:55:21
+0200
Date: Thu, 31 Aug 2000 13:55:12 +0200
From: Thomas Burgstaller <[EMAIL PROTECTED]>
To: Virus user <[EMAIL PROTECTED]>
Subject: Virus-DAT-Files Update
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="k+w/mQv8wyuph6w0"
X-Mailer: Mutt 1.0pre3i


--k+w/mQv8wyuph6w0
Content-Type: text/plain; charset=us-ascii

Die angehaengten Daten sind fuer das Update des Virenscanners notwendig

--k+w/mQv8wyuph6w0
Content-Type: application/pgp
Content-Disposition: attachment; filename="dat-files.tar.pgp"
Content-Transfer-Encoding: base64

---------------------------------------------------------------
---------------------------------------------------------------
---------------------------------------------------------------

This is the Netscape-Header of the received Email:

>From [EMAIL PROTECTED]  Thu Aug 31 14:01:52 2000
Received: from tronicplanet.de (burgsth@localhost [127.0.0.1])
        by dawsobr.tronicplanet.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1)
with ESMTP id OAA01406
        for <virus@localhost>; Thu, 31 Aug 2000 14:01:28 +0200
Sender: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Date: Thu, 31 Aug 2000 14:01:27 +0200
From: Thomas Burgstaller <[EMAIL PROTECTED]>
Organization: Tronicplanet Datendienst GmbH
X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.13 i586)
X-Accept-Language: en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Content-Type: multipart/mixed;
 boundary="------------17FB9875B8174B98B316AA45"

This is a multi-part message in MIME format.
--------------17FB9875B8174B98B316AA45
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


--------------17FB9875B8174B98B316AA45
Content-Type: application/octet-stream;
 name="dat-files.tar.pgp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="dat-files.tar.pgp"


Thank you

Thomas

Reply via email to