Browse Source

Added support for IMAP & SMTP use of TLS and fancy auth mechanisms to administrator plugin

tassium 22 years ago
parent
commit
dc9b7857f6
1 changed files with 20 additions and 2 deletions
  1. 20 2
      plugins/administrator/defines.php

+ 20 - 2
plugins/administrator/defines.php

@@ -110,6 +110,15 @@ $defcfg = array( '$config_version' => array( 'name' => _("Config File Version"),
                                                  'comment' => _("Use \"detect\" to auto-detect."),
                                                  'comment' => _("Use \"detect\" to auto-detect."),
                                                  'size' => 10,
                                                  'size' => 10,
                                                  'default' => 'detect' ),
                                                  '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"),
                  '$useSendmail' => array( 'name' => _("Use Sendmail"),
                                           'type' => SMOPT_TYPE_BOOLEAN ),
                                           'type' => SMOPT_TYPE_BOOLEAN ),
                  '$sendmail_path' => array( 'name' => _("Sendmail Path"),
                  '$sendmail_path' => array( 'name' => _("Sendmail Path"),
@@ -120,8 +129,17 @@ $defcfg = array( '$config_version' => array( 'name' => _("Config File Version"),
                                                 'size' => 40 ),
                                                 'size' => 40 ),
                  '$smtpPort' => array( 'name' => _("SMTP Server Port"),
                  '$smtpPort' => array( 'name' => _("SMTP Server Port"),
                                        'type' => SMOPT_TYPE_INTEGER ),
                                        '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"),
                  '$invert_time' => array( 'name' => _("Invert Time"),
                                           'type' => SMOPT_TYPE_BOOLEAN ),
                                           'type' => SMOPT_TYPE_BOOLEAN ),
                  '$default_use_mdn' => array( 'name' => _("Use Confirmation Flags"),
                  '$default_use_mdn' => array( 'name' => _("Use Confirmation Flags"),