[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to Email a Binary file from the command line



In foo.debian-user, you wrote:
> > example:
> > [prompt]$ cat mytar.tar.gz |mimeit application/x-gtar/ "whoiwant@tosendto.com" "This is the subject of the mail"
> 
> Cool, it worked, I think.  When it gets to the other end i get several
> messages all with attachments called "Part 1" "Part 2".  How do I get my
> original file back again at the other side?  (Im in windows using
> netscape if it makes a difference - if I can just find out what has been
> done to it maybe I can get it back!)

It splits the file up into chunks and sends it one chunk per mail
because some mail transports will reject mail over a certain size.

I don't know how netscape re-assembles these chunks.

You can try making the default chunksize larger so that it is not split.
To do this, you can add the -s option to the end of the command, along
with the maximum message size.

For example:
[prompt]$ cat mytar.tar.gz |mimeit application/x-gtar/ "my@email.com" "Subject" -s 10000000

will not split anything unless it is bigger than 10 Megs.
mimeit just calls the "splitmail" command, so see "man splitmail" for
more details.

-Mitch


Reply to: