From a2ccd60307a8f38fadc13b26830594ea5afffbc7 Mon Sep 17 00:00:00 2001 From: tassium Date: Fri, 3 Jan 2003 20:45:33 +0000 Subject: [PATCH] Added support for IMAP & SMTP use of TLS and fancy auth mechanisms to administrator plugin git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4364 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/administrator/defines.php | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/plugins/administrator/defines.php b/plugins/administrator/defines.php index d6d4b79b..9c961c7f 100644 --- a/plugins/administrator/defines.php +++ b/plugins/administrator/defines.php @@ -110,6 +110,15 @@ $defcfg = array( '$config_version' => array( 'name' => _("Config File Version"), 'comment' => _("Use \"detect\" to auto-detect."), 'size' => 10, 'default' => 'detect' ), + '$use_imap_tls' => array( 'name' => "Use TLS for IMAP connections", + 'type' => SMOPT_TYPE_BOOLEAN, + 'comment' => "Requires PHP 4.3.x! Experimental.", + 'default' => false ), + '$imap_auth_mech' => array( 'name' => "IMAP Authentication Mech", + 'type' => SMOPT_TYPE_STRLIST, + 'posvals' => array('plain' => 'Plaintext', + 'cram-md5' => 'CRAM-MD5', + 'digest-md5' => 'DIGEST-MD5') ), '$useSendmail' => array( 'name' => _("Use Sendmail"), 'type' => SMOPT_TYPE_BOOLEAN ), '$sendmail_path' => array( 'name' => _("Sendmail Path"), @@ -120,8 +129,17 @@ $defcfg = array( '$config_version' => array( 'name' => _("Config File Version"), 'size' => 40 ), '$smtpPort' => array( 'name' => _("SMTP Server Port"), 'type' => SMOPT_TYPE_INTEGER ), - '$use_authenticated_smtp' => array( 'name' => _("Authenticated SMTP"), - 'type' => SMOPT_TYPE_BOOLEAN ), + '$use_smtp_tls' => array( 'name' => "Use TLS for SMTP connections", + 'type' => SMOPT_TYPE_BOOLEAN, + 'comment' => "Requires PHP 4.3.x! Experimental.", + 'default' => false ), + '$smtp_auth_mech' => array( 'name' => "SMTP Authentication Mech", + 'type' => SMOPT_TYPE_STRLIST, + 'posvals' => array('none' => 'No SMTP auth', + 'plain' => 'Plaintext', + 'cram-md5' => 'CRAM-MD5', + 'digest-md5' => 'DIGEST-MD5'), + 'default' => 'none'), '$invert_time' => array( 'name' => _("Invert Time"), 'type' => SMOPT_TYPE_BOOLEAN ), '$default_use_mdn' => array( 'name' => _("Use Confirmation Flags"), -- 2.25.1