From: Ondra K. <ke...@or...> - 2006-01-12 17:30:05
|
Čt, led 12, 2006 ve 05:09:02 +0000, Andrew Alderwick napsal: > On 12/1/2006, "Andrew Alderwick" <an...@al...> wrote: > >On 12/1/2006, "spike2k" <sp...@wp...> wrote: > >>I have a solution for problem with attachments; > >> > >>in file include/compose_package.inc i line > >> > >>//straight transfer if already encoded > >>while(!eof($ul_fp)){ > >>=>>> $line = chop(fgets($ul_fp,5000)); > >> > >>change to $line = fgets($ul_fp,5000); > >> > >>without chop(), because this instruction delete whitespaces from string (including \n charakter which trims base64 coded attachment into 76 chars per line) > > > >Excellent find. I've also noticed that if the file pointed by $ul_fp is Thank for this, but sorry... I think it is already in cvs :) I fixed this some months ago... I have another problem with message forwarding in cvs version.. I want to solve this this weekend. > >over 5000 bytes, the beginning of the file would be discarded. Unless > >I'm missing something, > > > >$line .= fgets($ul_fp, 5000); > > > >would be even better. > > No, it wouldn't. Ignore me! I've just looked at the source - $line is > dealt with before the loop begins again. > > If we're chopping out the "chop", do we need to echo \r\n in the > next statement, I wonder? > > Andy |