From:             vincent1 at cegetel dot net
Operating system: windows 2000
PHP version:      Irrelevant
PHP Bug Type:     IMAP related
Bug description:  problem with imap_append

Description:
------------
Sorry for my english



When i want to do a mail copy by imap_append, imap_append return false if
the attachment(s) exceed approximately 900 Ko.

If the attachment(s) dont exceed the 900 Ko, imap_append return true.



Reproduce code:
---------------
<?

[EMAIL PROTECTED]("(localhost:143)","$login","$password")

$boundary = "------=".md5(uniqid(rand()));

$header = "MIME-Version: 1.0\r\n";

$header .= "Content-Type: multipart/mixed; boundary=\"$boundary\"\r\n";

$header .= "\r\n";

$file=c:/file_name;

$ouv=fopen ("$file", "rb");$lir=fread ($ouv, filesize ("$file"));fclose
($ouv);

$attachment = chunk_split(base64_encode($lir));

$msg2 .= "--$boundary\r\n";

$msg2 .= "Content-Transfer-Encoding: base64\r\n";

$msg2 .= "Content-Disposition: attachment; filename=\"$file\"\r\n";

$msg2 .= "\r\n";

$msg2 .= $attachment . "\r\n";

$msg2 .= "\r\n\r\n";

$msg3 .= "--$boundary--\r\n";

imap_append($stream,"{".$serveur_mail."}Sent Items","From:
expediteur\r\n"."To: [EMAIL PROTECTED]"."Subject:
sujet\r\n"."$header\r\n"."$msg2\r\n"."$msg3\r\n");

imap_close ($stream);

?>

Expected result:
----------------
Normally, imap_append would have send the message with attachement(s) in
Sent Items box same when the attachment(s) exceed approximately 900 Ko

Actual result:
--------------
If the attachment(s) exceed approximately 900 Ko, imap_append not send the
message in Sent Items box

-- 
Edit bug report at http://bugs.php.net/?id=27499&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27499&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27499&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27499&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27499&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27499&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27499&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27499&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27499&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27499&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27499&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27499&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27499&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27499&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27499&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27499&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27499&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27499&r=float

Reply via email to