On 12/1/2006, "spike2k" <[EMAIL PROTECTED]> 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
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.

Cheers Spike2k!
Andy


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Ilohamail-devel mailing list
Ilohamail-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ilohamail-devel

Reply via email to