Re: sending files from the cmd line...

Anders Eriksson <[email protected]>
Newsgroups gmane.mail.exmh.devel
Message-ID <[email protected]>
> 
> I may be extra dense this morning but I'm not following the 
> question.  Are you looking for an nmh command line way to mail a 
> text file or a binary file?  Or an exmh way?
> 
> If you're looking for an nmh way does it have to be 
> non-interactive so it can be embedded in a script or is 
> interactive OK?
> 

I'd like to have it non-interactive so I can script it to 
send a bunch of files..

for f in * ; do
uuencode $f $f | mail -s $f foo@bar
done

short non-interactive, does the job kind of. Though many modern
mailers can handle uuencode as well as mime, I'm a bit reluctant to
send uuencoded stuff to folks whose computer skills are unknownv to
me.

So I need to go mime, but I haven't found an equivalent script thing.

sendfiles(1), an nmh thing, tars up things and chops them into partial
messages. The support for handling _that_ at the other end is close to
zero :-(

/Anders
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.