Mercurial > hg > rc1
comparison plugins/managesieve/config.inc.php @ 0:1e000243b222
vanilla 1.3.3 distro, I hope
| author | Charlie Root |
|---|---|
| date | Thu, 04 Jan 2018 15:50:29 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:1e000243b222 |
|---|---|
| 1 <?php | |
| 2 | |
| 3 // managesieve server port. When empty the port will be determined automatically | |
| 4 // using getservbyname() function, with 4190 as a fallback. | |
| 5 $config['managesieve_port'] = null; | |
| 6 | |
| 7 // managesieve server address, default is localhost. | |
| 8 // Replacement variables supported in host name: | |
| 9 // %h - user's IMAP hostname | |
| 10 // %n - http hostname ($_SERVER['SERVER_NAME']) | |
| 11 // %d - domain (http hostname without the first part) | |
| 12 // For example %n = mail.domain.tld, %d = domain.tld | |
| 13 $config['managesieve_host'] = 'localhost'; | |
| 14 | |
| 15 // authentication method. Can be CRAM-MD5, DIGEST-MD5, PLAIN, LOGIN, EXTERNAL | |
| 16 // or none. Optional, defaults to best method supported by server. | |
| 17 $config['managesieve_auth_type'] = null; | |
| 18 | |
| 19 // Optional managesieve authentication identifier to be used as authorization proxy. | |
| 20 // Authenticate as a different user but act on behalf of the logged in user. | |
| 21 // Works with PLAIN and DIGEST-MD5 auth. | |
| 22 $config['managesieve_auth_cid'] = null; | |
| 23 | |
| 24 // Optional managesieve authentication password to be used for imap_auth_cid | |
| 25 $config['managesieve_auth_pw'] = null; | |
| 26 | |
| 27 // use or not TLS for managesieve server connection | |
| 28 // Note: tls:// prefix in managesieve_host is also supported | |
| 29 $config['managesieve_usetls'] = false; | |
| 30 | |
| 31 // Connection scket context options | |
| 32 // See http://php.net/manual/en/context.ssl.php | |
| 33 // The example below enables server certificate validation | |
| 34 //$config['managesieve_conn_options'] = array( | |
| 35 // 'ssl' => array( | |
| 36 // 'verify_peer' => true, | |
| 37 // 'verify_depth' => 3, | |
| 38 // 'cafile' => '/etc/openssl/certs/ca.crt', | |
| 39 // ), | |
| 40 // ); | |
| 41 // Note: These can be also specified as an array of options indexed by hostname | |
| 42 $config['managesieve_conn_options'] = null; | |
| 43 | |
| 44 // default contents of filters script (eg. default spam filter) | |
| 45 $config['managesieve_default'] = '/etc/dovecot/sieve/global'; | |
| 46 | |
| 47 // The name of the script which will be used when there's no user script | |
| 48 $config['managesieve_script_name'] = 'managesieve'; | |
| 49 | |
| 50 // Sieve RFC says that we should use UTF-8 endcoding for mailbox names, | |
| 51 // but some implementations does not covert UTF-8 to modified UTF-7. | |
| 52 // Defaults to UTF7-IMAP | |
| 53 $config['managesieve_mbox_encoding'] = 'UTF-8'; | |
| 54 | |
| 55 // I need this because my dovecot (with listescape plugin) uses | |
| 56 // ':' delimiter, but creates folders with dot delimiter | |
| 57 $config['managesieve_replace_delimiter'] = ''; | |
| 58 | |
| 59 // disabled sieve extensions (body, copy, date, editheader, encoded-character, | |
| 60 // envelope, environment, ereject, fileinto, ihave, imap4flags, index, | |
| 61 // mailbox, mboxmetadata, regex, reject, relational, servermetadata, | |
| 62 // spamtest, spamtestplus, subaddress, vacation, variables, virustest, etc. | |
| 63 // Note: not all extensions are implemented | |
| 64 $config['managesieve_disabled_extensions'] = array(); | |
| 65 | |
| 66 // Enables debugging of conversation with sieve server. Logs it into <log_dir>/sieve | |
| 67 $config['managesieve_debug'] = false; | |
| 68 | |
| 69 // Enables features described in http://wiki.kolab.org/KEP:14 | |
| 70 $config['managesieve_kolab_master'] = false; | |
| 71 | |
| 72 // Script name extension used for scripts including. Dovecot uses '.sieve', | |
| 73 // Cyrus uses '.siv'. Doesn't matter if you have managesieve_kolab_master disabled. | |
| 74 $config['managesieve_filename_extension'] = '.sieve'; | |
| 75 | |
| 76 // List of reserved script names (without extension). | |
| 77 // Scripts listed here will be not presented to the user. | |
| 78 $config['managesieve_filename_exceptions'] = array(); | |
| 79 | |
| 80 // List of domains limiting destination emails in redirect action | |
| 81 // If not empty, user will need to select domain from a list | |
| 82 $config['managesieve_domains'] = array(); | |
| 83 | |
| 84 // Enables separate management interface for vacation responses (out-of-office) | |
| 85 // 0 - no separate section (default), | |
| 86 // 1 - add Vacation section, | |
| 87 // 2 - add Vacation section, but hide Filters section | |
| 88 $config['managesieve_vacation'] = 0; | |
| 89 | |
| 90 // Default vacation interval (in days). | |
| 91 // Note: If server supports vacation-seconds extension it is possible | |
| 92 // to define interval in seconds here (as a string), e.g. "3600s". | |
| 93 $config['managesieve_vacation_interval'] = 0; | |
| 94 | |
| 95 // Some servers require vacation :addresses to be filled with all | |
| 96 // user addresses (aliases). This option enables automatic filling | |
| 97 // of these on initial vacation form creation. | |
| 98 $config['managesieve_vacation_addresses_init'] = false; | |
| 99 | |
| 100 // Sometimes you want to always reply with mail email address | |
| 101 // This option enables automatic filling of :from field on initial vacation form creation. | |
| 102 $config['managesieve_vacation_from_init'] = false; | |
| 103 | |
| 104 // Supported methods of notify extension. Default: 'mailto' | |
| 105 $config['managesieve_notify_methods'] = array('mailto'); | |
| 106 | |
| 107 // Enables scripts RAW editor feature | |
| 108 $config['managesieve_raw_editor'] = true; |
