-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Olivier MOULIN wrote: > But I have an other trouble when I try to remove an attachment. When I > select an attachment to remove and clock on remove, I have this error : > > Warning: filesize(): Stat failed for > /var/spool/squirrelmail/attach/gZjO5z7TQavWjVce8GufjqRzw42BSWaF (errno=2 - > No such file or directory) in /var/www/html/squirrelmail/src/compose.php > on line 1240 This would suggest that it did delete the attachment, but didn't update the associated attachment array in the compose screen. Can you try some debug code for me? Line 587 in src/compose.php should read: if (isset($delete) && is_array($delete)) { Right after that line, put the following: sm_print_r($delete); sm_print_r($composeMessage->entities); Then after the foreach line, put: echo "Deleting attachment $index<br>"; After the if (!empty($composeMessage...) put: echo "Removing entity $index<br>"; Then a few lines down you should see: showInputForm($session); Before that line, put another: sm_print_r($composeMessage->entities); Once these have been added, create a new message, add an attachment, and then delete it. This should output a lot of stuff at the top of the message. Please paste the results here. - -- Jon Angliss <jon@xxxxxxxxxxxxxxxx> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHB6ZBK4PoFPj9H3MRAgfzAJ4qam2E6yObQO6T0B5dWfJWIcq9dACeJJuk SqbNyW/13jtoJr8Hz/3ISUE= =AXP4 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -- 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