The real reason for failure to login to IMAP

Alain Williams <[email protected]> Sat, 23 Nov 2013 12:48:44 +0000
Newsgroups gmane.mail.squirrelmail.devel
Organization Parliament Hill Computers Ltd
Message-ID <[email protected]>
This is a summary of feature request #581 and patch #486 that provides the feature.

See:

    https://sourceforge.net/p/squirrelmail/feature-requests/581/



The purpose of the patches is to display the *reason* for an IMAP login failure.
Prior to this patch squirrelmail just displays the message:

    Unknown user or password incorrect.



It can be useful to a user to know the reason that login is refused, eg there might
be an administrative lock or their password may have expired.

For this to work the following configuration variable must be set true:

    $display_imap_login_error

Also enclosed is a patch to config/conf.pl to set this variable.


This is predicated on IMAP returning a meaningful reason, this is beyond the scope
of this patch and is why it is configurable.


There are two patch files:

  config-conf.pl.patch  for config/conf.pl

  functions-imap_general.php.patch  for functions/imap_general.php


These patches are released under the same license as the rest of SquirrelMail: GPLv2 (or later)


-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h>

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel