Update of /cvsroot/squirrelmail/squirrelmail/plugins/sent_subfolders
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5821/plugins/sent_subfolders
Modified Files:
setup.php
Log Message:
if $key is set to false, sqimap_login() function will use sqauth_read_password()
to retrieve user password.
sqimap_login() calls in plugins are modified to use this code.
It allows to centralize place that is used to access password information.
Older way is preserved for backwards compatibility and different IMAP login
credentials.
Index: setup.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/sent_subfolders/setup.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -w -r1.27 -r1.28
--- setup.php 23 Jan 2006 18:43:27 -0000 1.27
+++ setup.php 19 Apr 2006 18:03:24 -0000 1.28
@@ -104,11 +104,9 @@
global $optpage_data, $imapServerAddress, $imapPort,
$show_contain_subfolders_option;
sqgetGlobalVar('username', $username, SQ_SESSION);
- sqgetGlobalVar('key', $key, SQ_COOKIE);
/* Get some imap data we need later. */
- $imapConnection =
- sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
+ $imapConnection = sqimap_login($username, false, $imapServerAddress,
$imapPort, 0);
$boxes = sqimap_mailbox_list($imapConnection);
sqimap_logout($imapConnection);
@@ -197,7 +195,6 @@
global $use_sent_subfolders, $move_to_sent;
sqgetGlobalVar('username', $username, SQ_SESSION);
- sqgetGlobalVar('key', $key, SQ_COOKIE);
sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION);
if ($use_sent_subfolders || $move_to_sent) {
@@ -246,7 +243,7 @@
/* Auto-create folders, if they do not yet exist. */
if ($sent_subfolder != 'none') {
/* Create the imap connection. */
- $ic = sqimap_login($username, $key, $imapServerAddress,
$imapPort, 10);
+ $ic = sqimap_login($username, false, $imapServerAddress,
$imapPort, 10);
$boxes = false;
/**
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
|