nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Attaching a zip file

2006-12-13 06:35:49
To attach a compressed tar file, say, /tmp/foobar.tgz, to an Email, I do
something like:

#application/octet-stream; \
type=tar; x-conversion=gzip; \
name=foobar.tgz  /tmp/foobar.tgz

Could somebody take pity on an old man and tell me what I would do to 
attach 
a zip file, say. /tmp/foobar.zip, to an Email?

I'd just do

#application/zip; name="foobar.zip" /tmp/foobar.zip

i'll attach a script i use for forwarding attachments.  it
handles the common binary types i use, plain files, and mail
messages, based on interpreting its arguments.  it produces the
mhbuild input text necessary to do the forwarding on its stdout --
so, when composing mail in vi, i can type something like:

    :r !forward foobar.zip

or even 

    !!forward foobar.zip

for files, or 

    !!forward cur-last

to forward messages.

it's far from perfect, i'm sure, but it saves me trying to remember how
to compose mhbuild lines by hand.

paul
=---------------------
 paul fox, pgf@foxharp.boston.ma.us (arlington, ma, where it's 37.9 degrees)

Attachment: forward
Description: -

_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
http://lists.nongnu.org/mailman/listinfo/nmh-workers
<Prev in Thread] Current Thread [Next in Thread>