PDA

View Full Version : Squirrelmail not sending attachment



mnichols62
10-18-2007, 02:11 PM
I am able to login with squirrelmail, compose a message and attach a file (c:\test.txt) . I have verified that the temporary file gets created in /var/www/html/squirrelmail-1.4.11/data. When I hit send, no errors are reported (verified in httpd log files, even see the POST where the message is sent).

The email gets delivered with text of message, but without the attachment (test.txt less than 5kb).

When I send the same email from Outlook pointing to exim as the smtp server with the same attachment, it gets delivered fine which should rule out the attachment being stripped by CLAM.

Any ideas?

.... found this on squirrelmail.org, there is a patch for this problem

http://sourceforge.net/tracker/index.php?func=detail&aid=1805471&group_id=311&atid=100311

I will report back if it is fixed.

rocketcity
10-18-2007, 03:04 PM
I was informed today by one of our customers that they could not use attachments via Squirrellmail 1.4.11 today. After applying the patch, I was able attach files, send and receive the email with attachment.

Thanks for the info and link.

mnichols62
10-18-2007, 03:22 PM
The patch indeed fixed the problem.

dannygoh
12-04-2007, 04:09 AM
How do you do it? There is 2 patch and which one should i run?

jlandes
12-04-2007, 10:53 AM
You want 1805471_composeattach.patch to fix this. Download the file to /var/www/html/squirrelmail and then run the following command:


patch -p0 < 1805471_composeattach.patch

jlandes
12-04-2007, 11:13 AM
I did try the 1.4.11_compose_attachments.patch file, since it is supposed to fix the issue with multiple attachments. However, it failed. So, I had to use the first one. I think I'm just going to pull those compose.php and addrbook_search_html.php from CVS.

jlandes
12-04-2007, 12:14 PM
Attached are the two php files that need to be replaced in order for attachments to work in SquirrelMail 1.4.11. Place these two files in /var/www/html/squirrelmail/src. Thanks.

SajtXL
12-09-2007, 09:34 AM
Attached are the two php files that need to be replaced in order for attachments to work in SquirrelMail 1.4.11. Place these two files in /var/www/html/squirrelmail/src. Thanks.

Better to upgrade to SquirrelMail 1.4.12 :)

andyreed
12-09-2007, 11:41 AM
Better to upgrade to SquirrelMail 1.4.12 :)Broken attachments is a very common problem with Squirrelmail v1.4.11. Since the patch didn't fix the problem, I would do what SajtXL suggested. Upgrade to v1.4.12. Hope the problem with attachements is fixed in this version.

jlandes
12-09-2007, 03:07 PM
The problem with attachments is fixed in 1.4.12. So, it is recommended to upgrade to that version to fix this issue.