Revision: 12423
http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12423&view=rev
Author: bouchon
Date: 2007-05-30 02:29:48 -0700 (Wed, 30 May 2007)
Log Message:
-----------
Fixed #1727033 (auth support detection in conf.pl)
Modified Paths:
--------------
branches/SM-1_4-STABLE/squirrelmail/ChangeLog
branches/SM-1_4-STABLE/squirrelmail/config/conf.pl
Modified: branches/SM-1_4-STABLE/squirrelmail/ChangeLog
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/ChangeLog 2007-05-29 15:29:13 UTC
(rev 12422)
+++ branches/SM-1_4-STABLE/squirrelmail/ChangeLog 2007-05-30 09:29:48 UTC
(rev 12423)
@@ -4,6 +4,7 @@
Version 1.4.11 - SVN
--------------------
+ - Fix #1727033 config.pl not detecting auth suppoer correctly
- Fix display of X-Priority in message view.
- Work around mailers sending broken Date headers with no space after the
first comma.
Modified: branches/SM-1_4-STABLE/squirrelmail/config/conf.pl
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/config/conf.pl 2007-05-29 15:29:13 UTC
(rev 12422)
+++ branches/SM-1_4-STABLE/squirrelmail/config/conf.pl 2007-05-30 09:29:48 UTC
(rev 12423)
@@ -1270,6 +1270,7 @@
print " ERROR TESTING\n";
close $sock;
} else {
+ $got = <$sock>; # Discard greeting
print $sock "HELO $domain\r\n";
$got = <$sock>; # Discard
print $sock "MAIL FROM:<tester\@squirrelmail.org>\r\n";
@@ -3674,15 +3675,12 @@
# So at this point, we have a response, and it is (hopefully) valid.
if ($service eq 'SMTP') {
- if (($response =~ /^535/) or ($response =~/^502/)) {
+ if (!($response =~ /^334/)) {
# Not supported
print $sock $logout;
close $sock;
return 'NO';
- } elsif ($response =~ /^503/) {
- #Something went wrong
- return undef;
- }
+ }
} elsif ($service eq 'IMAP') {
if ($response =~ /^A01/) {
# Not supported
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
|