Subject: MIME encoding and attachment function as shell command

From: [email-masked]
Date: 20 Aug 1996 09:46:01 -0700

I am in need of a command I can include in a shell script, which will
MIME encode several binaries, attach them to a mail item and send to a
specified address.

I know that Pine is capable of performing this function, though as far as
I can tell, it can only do it interactively. I have the Pine source, and 
presumably I could do some reverse engineering to incorporate the 
appropriate code into a new program. However, I am rather hoping that 
this job has already been done elsewhere, as it cannot be such an unusual
requirement.

If anyone has any ideas as to

a) where I might find a program already written to do this job, or
b) whereabouts in the pine source I should start looking for my entry
 point (I was thinking of 'call_mailer' in send.c, but advice welcome)

I would be very grateful to be contacted at [email-masked].

Thank you very much.
Andy Graves.

---

From: [email-masked] (Jungshik Shin)
Date: 21 Aug 1996 10:30:45 -0400

[email-masked] wrote:
: I am in need of a command I can include in a shell script, which will
: MIME encode several binaries, attach them to a mail item and send to a

: I know that Pine is capable of performing this function, though as far as
: I can tell, it can only do it interactively. I have the Pine source, and 
: presumably I could do some reverse engineering to incorporate the 

  You don't have to. metamail 2.7 (mm2.7.tar.Z) available at 
ftp://thumper.bellcore.com contains what you need, "metasend" along
with other utils to deal with MIME messages. metasend can be used
both interactively and in batch mode. 

  Jungshik

---

From: Camillo S{rs <[email-masked]>
Date: 22 Aug 1996 16:02:27 +0300

> a) where I might find a program already written to do this job, or

Take mimencode, mail and your favourite shell.  Write a script that
somewhat resembles the following pseudocode:

foreach i ( files ) do
  mimencode $i > $i.mime
od

mail receiver < *.mime

This, of course, does not work as such, but I think you get the
point. 

Camillo

-- 
Camillo Särs <[email-masked]>       **  Aim for the impossible and you
Faculty of Computer Science              **   will achieve the improbable.
Helsinki University of Technology        **     http://www.iki.fi/ged
G=Camillo S=Sars O=hut ADMD=fumail C=fi  **    PGP public key available