Re: [Advice needed] Best way to handle attachments?

2011-08-12 Thread Alexander Gattin
Hello, On Thu, Aug 11, 2011 at 03:30:56PM +, Camaleón wrote: All the process works fine but some of the files are wrongly encoded which results in an error when the user tries to reconstruct the big file from the received attachments. becaue you split archive, pieces start with random

Re: [Advice needed] Best way to handle attachments?

2011-08-12 Thread Camaleón
On Thu, 11 Aug 2011 13:20:51 -0400, Chris Brennan wrote: On 8/11/2011 1:14 PM, Camaleón wrote: On Thu, 11 Aug 2011 12:33:09 -0400, Chris Brennan wrote: zip -s SIZE should do the trick ... split the archive at your designated size at creation, not after the fact, that might be where

Re: [Advice needed] Best way to handle attachments?

2011-08-12 Thread Camaleón
On Fri, 12 Aug 2011 10:03:09 +0300, Alexander Gattin wrote: Hello, On Thu, Aug 11, 2011 at 03:30:56PM +, Camaleón wrote: All the process works fine but some of the files are wrongly encoded which results in an error when the user tries to reconstruct the big file from the received

Re: [Advice needed] Best way to handle attachments?

2011-08-12 Thread Alexander Gattin
Hello, On Fri, Aug 12, 2011 at 12:01:12PM +, Camaleón wrote: What puzzles me is that raw splitted files stored in my disk all look the same. I mean, file returns the same information for all of them but then, when I review my Gmail's sent folder I see 3 or 4 of the attachments were bad

Re: [Advice needed] Best way to handle attachments?

2011-08-12 Thread Camaleón
On Fri, 12 Aug 2011 15:53:31 +0300, Alexander Gattin wrote: Hello, On Fri, Aug 12, 2011 at 12:01:12PM +, Camaleón wrote: What puzzles me is that raw splitted files stored in my disk all look the same. I mean, file returns the same information for all of them but then, when I review my

[Advice needed] Best way to handle attachments?

2011-08-11 Thread Camaleón
Hello, I'm facing a curious problem when I send attachments with Mutt from command line. I have a small self-made script that basically makes two things: 1/ Given a big file (~10/20 MiB), it splits into small chunks of data (~250 KiB) 2/ Then it sends the resulting files using Mutt (each

Re: [Advice needed] Best way to handle attachments?

2011-08-11 Thread Jostein Berntsen
On 11.08.11,15:30, Camaleón wrote: Hello, I'm facing a curious problem when I send attachments with Mutt from command line. I have a small self-made script that basically makes two things: 1/ Given a big file (~10/20 MiB), it splits into small chunks of data (~250 KiB) 2/ Then it

Re: [Advice needed] Best way to handle attachments?

2011-08-11 Thread Camaleón
On Thu, 11 Aug 2011 17:37:42 +0200, Jostein Berntsen wrote: On 11.08.11,15:30, Camaleón wrote: I'm facing a curious problem when I send attachments with Mutt from command line. (...) All the process works fine but some of the files are wrongly encoded which results in an error when the

Re: [Advice needed] Best way to handle attachments?

2011-08-11 Thread Chris Brennan
On 8/11/2011 11:37 AM, Jostein Berntsen wrote: What about putting the files in 2-3 zip files and send him? Also update to mutt 1.5.21 which have many bug fixes after 1.5.18. Greetings Camaleón, Aye, I was going to suggest a split archive as well, then there should be no need to encode the

Re: [Advice needed] Best way to handle attachments?

2011-08-11 Thread Camaleón
On Thu, 11 Aug 2011 11:57:26 -0400, Chris Brennan wrote: On 8/11/2011 11:37 AM, Jostein Berntsen wrote: What about putting the files in 2-3 zip files and send him? Also update to mutt 1.5.21 which have many bug fixes after 1.5.18. Greetings Camaleón, Aye, I was going to suggest a split

Re: [Advice needed] Best way to handle attachments?

2011-08-11 Thread Camaleón
On Thu, 11 Aug 2011 16:15:47 +, Camaleón wrote: On Thu, 11 Aug 2011 11:57:26 -0400, Chris Brennan wrote: On 8/11/2011 11:37 AM, Jostein Berntsen wrote: What about putting the files in 2-3 zip files and send him? Also update to mutt 1.5.21 which have many bug fixes after 1.5.18.

Re: [Advice needed] Best way to handle attachments?

2011-08-11 Thread Chris Brennan
On 8/11/2011 12:26 PM, Camaleón wrote: zsplit cannot do it. It requires the splitted size is at least the size of the smallest of the archived files. I will have to search another one ;-( zip -s SIZE should do the trick ... split the archive at your designated size at creation, not after the

Re: [Advice needed] Best way to handle attachments?

2011-08-11 Thread lhecking
zsplit cannot do it. It requires the splitted size is at least the size of the smallest of the archived files. I will have to search another one ;-( It wouldn't help you in any case. Splitting binary files may create parts that are mis-classied as ascii/text. You need to zip/gzip/bzip2

Re: [Advice needed] Best way to handle attachments?

2011-08-11 Thread Camaleón
On Thu, 11 Aug 2011 12:33:09 -0400, Chris Brennan wrote: On 8/11/2011 12:26 PM, Camaleón wrote: zsplit cannot do it. It requires the splitted size is at least the size of the smallest of the archived files. I will have to search another one ;-( zip -s SIZE should do the trick ... split the

Re: [Advice needed] Best way to handle attachments?

2011-08-11 Thread Chris Brennan
On 8/11/2011 1:14 PM, Camaleón wrote: On Thu, 11 Aug 2011 12:33:09 -0400, Chris Brennan wrote: On 8/11/2011 12:26 PM, Camaleón wrote: zsplit cannot do it. It requires the splitted size is at least the size of the smallest of the archived files. I will have to search another one ;-( zip -s