On 10/1/07, Pascal Maes <pascal.maes@xxxxxxxxxxxxxx> wrote: > > Le 1 oct. 07 à 19:37, Paul Lesniewski a écrit : > > > On 10/1/07, z6 <z6@xxxxxxxxx> wrote: > >> Have just upgraded from 1.4.10a to 1.4.11, and all seems ok except > >> attachments. All appears normal up to and including sending the > >> mail, but > >> it is sent without the attachment (and is stored in the Sent Items > >> without > >> it). The attachment is left lying in the attachment directory. > >> > >> Anyone else found this or have I done something silly? > > > > No, it seems to be something of an issue with the new release. That > > code was in fact modified. It seems other people see that they can > > send one attachment, but if they add a second one, only the last one > > added is sent with the message. I cannot reproduce any of these > > problems. Please check your error logs and send any PHP notices or > > warnings or errors you may find when you add attachments or send > > messages. > > > > Thanks > > > > > > I have created a .htaccess with the following parameters : > > php_flag display_errors on > php_flag file_uploads on > php_flag log_errors on > php_value error_reporting 2047 > > but I didn't get any error messages. > Nothing in errors_log and nothing special in access_log : > > 130.104.240.228 - - [01/Oct/2007:21:24:39 +0200] "POST /1.4.11/src/ > redirect.php HTTP/1.1" 302 5 > 130.104.240.228 - - [01/Oct/2007:21:24:39 +0200] "GET /1.4.11/src/ > webmail.php HTTP/1.1" 200 355 > 130.104.240.228 - - [01/Oct/2007:21:24:42 +0200] "GET /1.4.11/src/ > left_main.php HTTP/1.1" 200 11869 > 130.104.240.228 - - [01/Oct/2007:21:24:45 +0200] "GET /1.4.11/src/ > right_main.php HTTP/1.1" 200 25239 > 130.104.240.228 - - [01/Oct/2007:21:24:51 +0200] "GET /1.4.11/src/ > compose.php?mailbox=INBOX&startMessage=1 HTTP/1.1" 200 11650 > 130.104.240.228 - - [01/Oct/2007:21:25:20 +0200] "POST /1.4.11/src/ > compose.php HTTP/1.1" 200 13519 > 130.104.240.228 - - [01/Oct/2007:21:25:59 +0200] "POST /1.4.11/src/ > compose.php HTTP/1.1" 302 5 > 130.104.240.228 - - [01/Oct/2007:21:26:04 +0200] "GET /1.4.11/src/ > right_main.php?mailbox=INBOX&sort=6&startMessage=1 HTTP/1.1" 200 25242 > > > Could I set some more flags to get more informations ? > In my case, I receive only the last document attached. > > When I joined the third document, the last one (the third) is on the > line with the "Choose File" button > The previous one is "prefixed" by a check box so it can be suppressed > But the first is no more there. All I can suggest is to show the HTML code for your compose screen after you have added one attachment. After you capture that HTML, make sure adding another attachment or sending that message as is results in the loss of the attachment that had been added when you captured the HTML. Also, you can find this in src/compose.php around line 379: if (!empty($attachments)) { $attachments = unserialize($attachments); if (!empty($attachments) && is_array($attachments)) $composeMessage->entities = $attachments; } Change it to: if (!empty($attachments)) { $attachments = unserialize($attachments); sm_print_r('ATTACHMENTS REINIT:', $attachments); if (!empty($attachments) && is_array($attachments)) $composeMessage->entities = $attachments; sm_print_r('COMPOSE MESSAGE:', $composeMessage); } else { echo "<hr />ATTACHMENTS ARE EMPTY<hr />"; sm_print_r($_POST); } > On the server the two documents (1 and 2) are stored in the same > directory : > -bash-3.00# ls -l ./6/e/2/f > total 438 > -rw------- 1 nobody nobody 32795 Oct 1 21:43 > gdHWyE6IQF4z0XFrAPGePJi38ykSxNcz > -rw------- 1 nobody nobody 36375 Oct 1 21:41 > xOewCyT5ovCiQs8XqvK2wvqG7uV8GdR6 > > But only the last one is sent with the mail. > > -- > Pascal > > > > > > -- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users