Hello,
Thank you for taking the time to review yet another problem with
attachments.
I have been working on this on and off since July. I will be happy to
provide any information that has been omitted.
Thank you for your time and help.
Sincerely,
David T. Wilson
Problem overview:
---------------------------------------------------
The problem seemed to start after the upgrade. First of all the upgrade did
not take in to consideration a change(s) in the SM configuration file. But
got that straightened out. Now I can't send email with an attached file
greater the 10Kb in size. When send mail with attachment(s) greater than
10Kb the browser just did nothing.
Actions Taken:
---------------------------------------------------
1) Read the mail log and found this:
Aug 3 14:00:05 borabora postfix/smtpd[15811]: connect from
localhost.localdomain[127.0.0.1]
Aug 3 14:00:05 borabora postfix/smtpd[15811]: C2F9B33C007:
client=localhost.localdomain[127.0.0.1]
Aug 3 14:05:06 borabora postfix/smtpd[15811]: timeout after DATA from
localhost.localdomain[127.0.0.1]
Aug 3 14:05:06 borabora postfix/smtpd[15811]: disconnect from
localhost.localdomain[127.0.0.1]
Did some looking around and found nothing that seemed out of place other
that SM looked like is was not sending data to postfix
2) Installed the Debugger Plug-in and received the information below (Start
output from "debugger plug-in") when I was "Adding" the file to the email.
I went to line 1290 and changed the code there from:
// FIXME: we SHOULD prefer move_uploaded_file over rename because
// m_u_f works better with restricted PHP installes (safe_mode,
open_basedir)
if ([EMAIL PROTECTED]($_FILES['attachfile']['tmp_name'], $full_localfilename)) {
if([EMAIL PROTECTED]($_FILES['attachfile']['tmp_name'],
$full_localfilename)) {
return true;
}
}
To:
if([EMAIL PROTECTED]($_FILES['attachfile']['tmp_name'],
$full_localfilename)) {
return true;
}
And nothing changed other than the debugger stopped reporting errors when
adding an attachment.
Details:
---------------------------------------------------
IMAP Server: courier-imap
SMTP Server: postfix
PHP: 4.3.2
Web server: Apache/2.0.46
Platform Red Hat Linux ES 3.2.3-42
How your software was installed: Red Hat Network RPM in a package update
from SM version 1.4.2
SquirrelMail version: 1.4.3a-0.e3.1 (directly from Red Hat)
Plugins you've installed and their versions: debugger v 1.0
Any notes that might make your install different, even if minor: really
can't think of any.
Start output from "debugger plug-in"
--------------------------------------------------------------------------
Warning:
rename(/tmp/phpv3PKJq,/var/spool/squirrelmail/attach/6vlu5vl7Q0N9JYLwuuDA4GY
gdanQUvfk): Invalid cross-device link in
/usr/share/squirrelmail/src/compose.php on line 1290
--------------------------------------------------------------------------
Stack Trace:
rename("/tmp/phpv3PKJq",
"/var/spool/squirrelmail/attach/6vlu5vl7Q0N9JYLwuuDA4GYgdanQUvfk")
/usr/share/squirrelmail/src/compose.php
line 1290
saveattachedfiles("1")
/usr/share/squirrelmail/src/compose.php
line 464
---------------------------------------------------------------------------
My browser information:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
My web server information:
PHP Version 4.3.2
PHP Extensions (List)
* 0 = yp
* 1 = xml
* 2 = wddx
* 3 = tokenizer
* 4 = sysvshm
* 5 = sysvsem
* 6 = standard
* 7 = sockets
* 8 = shmop
* 9 = session
* 10 = pspell
* 11 = posix
* 12 = pcre
* 13 = overload
* 14 = openssl
* 15 = mbstring
* 16 = iconv
* 17 = gmp
* 18 = gettext
* 19 = gd
* 20 = ftp
* 21 = exif
* 22 = domxml
* 23 = dio
* 24 = dbx
* 25 = dba
* 26 = curl
* 27 = ctype
* 28 = calendar
* 29 = bz2
* 30 = bcmath
* 31 = zlib
* 32 = apache2filter
* 33 = imap
* 34 = ldap
* 35 = mysql
SquirrelMail-specific information:
Version: 1.4.3a-0.e3.1
Plugins (List)
* 0 = debugger
My IMAP server information:
Server type: courier
Server info: * OK [HIDDEN] IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc.
See COPYING for distribution information.
Capabilities: IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS
--------------------------------------
END output from "debugger plug-in"
�
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
--
squirrelmail-users mailing list
Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [EMAIL PROTECTED]
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users