Merge pull request '799 - TLS icon plugin' (#30) from 799_tls_check_plugin into main

Reviewed-on: #30
Reviewed-by: meaz <meaz@no-reply@disroot.org>
This commit is contained in:
muppeth 2024-03-05 20:16:15 +00:00
commit 9091b357bc
14 changed files with 182 additions and 191 deletions

View File

@ -15,42 +15,47 @@ rcube_plugins_carddav_attr_require: 'mail'
rcube_plugins_carddav_reset_hide: 'false'
rcube_plugins: # Comes from different repos
- name: 'tls_icon'
repo: 'https://github.com/GermanCoding/Roundcube_TLS_Icon.git'
options:
ignore_hops: '0'
- name: 'account_details'
repo: 'https://github.com/texxasrulez/account_details'
config: 'true'
options:
- urlboxlength: '90'
pluginlist: 'true'
userid: 'true'
quota: 'true'
display_create: false
display_lastlogin: 'true'
enable_ip: 'true'
useipinfo: 'true'
support: 'true'
server_location: 'The Netherlands'
osystem: 'false'
browser: 'true'
resolution: 'false'
server_os: 'false'
server_os_name: 'false'
server_os_rel: 'false'
server_os_ver: 'false'
server_cpu: 'false'
server_memory: 'false'
server_uptime: 'false'
php_version: 'false'
http_server: 'false'
admin_email: 'false'
smtp_port: '587'
smtps_port: '465, 587'
imaps_port: '993'
pops_port: '995'
hostname: '%S' # check config file line 102 for more information
hostname_smtp: 'smtp.%S'
hostname_imap: 'imap.%S'
hostname_pop: 'pop.%S'
enable_custombox: 'false'
urlboxlength: '90'
pluginlist: 'true'
userid: 'true'
quota: 'true'
display_create: false
display_lastlogin: 'true'
enable_ip: 'true'
useipinfo: 'true'
support: 'true'
server_location: 'The Netherlands'
osystem: 'false'
browser: 'true'
resolution: 'false'
server_os: 'false'
server_os_name: 'false'
server_os_rel: 'false'
server_os_ver: 'false'
server_cpu: 'false'
server_memory: 'false'
server_uptime: 'false'
php_version: 'false'
http_server: 'false'
admin_email: 'false'
smtp_port: '587'
smtps_port: '465, 587'
imaps_port: '993'
pops_port: '995'
hostname: '%S' # check config file line 102 for more information
hostname_smtp: 'smtp.%S'
hostname_imap: 'imap.%S'
hostname_pop: 'pop.%S'
enable_custombox: 'false'
- name: 'show_folder_size'
repo: 'https://github.com/jfcherng/roundcube-plugin-show-folder-size'
@ -59,7 +64,7 @@ rcube_plugins: # Comes from different repos
repo: 'https://github.com/pimlie/authres_status'
config: 'true'
options:
- show_statuses: 'authres_status::STATUS_ALL & ~authres_status::STATUS_NOSIG'
show_statuses: 'authres_status::STATUS_ALL & ~authres_status::STATUS_NOSIG'
- name: 'message_highlight'
repo: 'https://github.com/cricalix/message_highlight'
@ -69,8 +74,8 @@ rcube_plugins: # Comes from different repos
repo: 'https://github.com/mfreiholz/persistent_login'
config: 'true'
options:
- login_expire: '60*60*24*3'
cookie_name: '_pt'
login_expire: '60*60*24*3'
cookie_name: '_pt'
- name: 'removeattachments'
repo: 'https://github.com/dsoares/roundcube-removeattachments'
@ -79,7 +84,7 @@ rcube_plugins: # Comes from different repos
# repo: 'https://github.com/hassansin/roundcube-login-language'
# config: 'true'
# options:
# - language_dropdown_selected: 'en_US'
# language_dropdown_selected: 'en_US'
- name: 'show_pgp_mime'
repo: 'https://github.com/posteo/show_pgp_mime'
@ -88,7 +93,7 @@ rcube_plugins: # Comes from different repos
# repo: 'https://github.com/alexandregz/twofactor_gauthenticator'
# config: 'true'
# options:
# - force_enrollment_users: 'false'
# force_enrollment_users: 'false'
# whitelist: "'192.168.1.0/24', '::1', '192.168.0.9'"
# allow_save_device_30days: 'true'
# twofactor_formfield_as_password: 'false'
@ -101,69 +106,68 @@ rcube_plugins: # Comes from different repos
- name: 'managesieve'
config: 'true'
options:
- managesieve_host: 'localhost'
managesieve_auth_type: 'null'
managesieve_debug: 'false'
managesieve_default_headers: "Subject', 'From', 'To"
managesieve_vacation: '0'
managesieve_forward: '0'
managesieve_vacation_interval: '0'
managesieve_host: 'localhost'
managesieve_auth_type: 'null'
managesieve_debug: 'false'
managesieve_default_headers: "Subject', 'From', 'To"
managesieve_vacation: '0'
managesieve_forward: '0'
managesieve_vacation_interval: '0'
- name: 'archive'
- name: 'emoticons'
config: 'true'
options:
- emoticons_display: 'false'
emoticons_compose: 'true'
emoticons_display: 'false'
emoticons_compose: 'true'
- name: 'markasjunk'
config: 'true'
options:
- markasjunk_learning_driver: 'null'
markasjunk_ham_mbox: 'null'
markasjunk_spam_mbox: 'null'
markasjunk_read_spam: 'false'
markasjunk_unread_ham: 'false'
markasjunk_spam_flag: 'Junk'
markasjunk_ham_flag: 'NonJunk'
markasjunk_debug: 'false'
markasjunk_toolbar: 'true'
markasjunk_move_spam: 'false'
markasjunk_move_ham: 'false'
markasjunk_permanently_remove: 'false'
markasjunk_spam_only: 'false'
markasjunk_spam_cmd: 'null'
markasjunk_ham_cmd: 'null'
markasjunk_spam_dir: 'null'
markasjunk_ham_dir: 'null'
markasjunk_email_spam: 'null'
markasjunk_email_ham: 'null'
markasjunk_email_attach: 'true'
markasjunk_learning_driver: 'null'
markasjunk_ham_mbox: 'null'
markasjunk_spam_mbox: 'null'
markasjunk_read_spam: 'false'
markasjunk_unread_ham: 'false'
markasjunk_spam_flag: 'Junk'
markasjunk_ham_flag: 'NonJunk'
markasjunk_debug: 'false'
markasjunk_toolbar: 'true'
markasjunk_move_spam: 'false'
markasjunk_move_ham: 'false'
markasjunk_permanently_remove: 'false'
markasjunk_spam_only: 'false'
markasjunk_spam_cmd: 'null'
markasjunk_ham_cmd: 'null'
markasjunk_spam_dir: 'null'
markasjunk_ham_dir: 'null'
markasjunk_email_spam: 'null'
markasjunk_email_ham: 'null'
markasjunk_email_attach: 'true'
- name: 'zipdownload'
config: 'true'
options:
- zipdownload_attachments: '1'
zipdownload_selection: '50MB'
zipdownload_charset: 'ISO-8859-1'
zipdownload_attachments: '1'
zipdownload_selection: '50MB'
zipdownload_charset: 'ISO-8859-1'
- name: 'vcard_attachments'
- name: 'newmail_notifier'
config: 'true'
options:
- newmail_notifier_basic: 'false'
newmail_notifier_sound: 'false'
newmail_notifier_desktop: 'false'
newmail_notifier_desktop_timeout: '10'
newmail_notifier_basic: 'false'
newmail_notifier_sound: 'false'
newmail_notifier_desktop: 'false'
newmail_notifier_desktop_timeout: '10'
- name: 'thunderbird_labels'
repo: 'https://github.com/mike-kfed/roundcube-thunderbird_labels'
config: 'true'
options:
- tb_label_enable_globally: 'false'
tb_label_style: 'badges'
tb_label_enable_globally: 'false'
tb_label_style: 'badges'
- name: 'contextmenu'
repo: 'https://github.com/johndoh/roundcube-contextmenu'

View File

@ -1,4 +1,3 @@
{% for option in item.options %}
<?php
/*
@ -15,7 +14,7 @@ $account_details_config = array();
$account_details_config['bulletstyle'] = '&#9775;'; // Insert your favorite unicode here. https://www.w3schools.com/charsets/ref_utf_misc_symbols.asp
// URL Text box length - Good if you have a long domain name
$account_details_config['urlboxlength'] = {{ option.urlboxlength }}; // Numbers only
$account_details_config['urlboxlength'] = {{ item.options.urlboxlength }}; // Numbers only
// === ACCOUNT/WEBMAIL/SERVER INFO ===================
// Display Roundcube Info
@ -29,25 +28,25 @@ $account_details_config['display_rc_release'] = true;
$account_details_config['rc_latest'] = 'plugins/account_details/rc_latest.txt';
// Display Plugin List
//$account_details_config['rc_pluginlist'] = option.pluginlist;
//$account_details_config['rc_pluginlist'] = {{ item.options.pluginlist }};
// Enable display of used/total quota
$account_details_config['enable_userid'] = {{ option.userid }};
$account_details_config['enable_quota'] = {{ option.quota }};
$account_details_config['enable_userid'] = {{ item.options.userid }};
$account_details_config['enable_quota'] = {{ item.options.quota }};
// Display last webmail login / create
$account_details_config['display_create'] = {{ option.display_create }};
$account_details_config['display_lastlogin'] = {{ option.display_lastlogin }};
$account_details_config['display_create'] = {{ item.options.display_create }};
$account_details_config['display_lastlogin'] = {{ item.options.display_lastlogin }};
// Enable User IP Address
$account_details_config['enable_ip'] = {{ option.enable_ip }}; // Simple IP Address from your system IP Only - Shows LAN IP if behind firewall
$account_details_config['useipinfo'] = {{ option.useipinfo }}; // Displays IP, City and Region provided by http://ipinfo.io/ - Free up to 1000 hits a day - No Registration required
$account_details_config['enable_ip'] = {{ item.options.enable_ip }}; // Simple IP Address from your system IP Only - Shows LAN IP if behind firewall
$account_details_config['useipinfo'] = {{ item.options.useipinfo }}; // Displays IP, City and Region provided by http://ipinfo.io/ - Free up to 1000 hits a day - No Registration required
// Display Support URL - If enabled, Be sure and fill this out in Roundcubes main item.inc.php if not specified during installation
$account_details_config['enable_support'] = {{ option.support }};
$account_details_config['enable_support'] = {{ item.options.support }};
// Server location (Example: 'City, Country')
$account_details_config['location'] = '{{ option.server_location }}'; // Cannot be blank. Messes with tables
$account_details_config['location'] = '{{ item.options.server_location }}'; // Cannot be blank. Messes with tables
//========= Mailbox Details ==========================
// Display Mailbox Details - Unread Count - Total Count - Size of Folder
@ -61,42 +60,42 @@ $account_details_config['enable_archive'] = true;
//====================================================
// Display User System Details
$account_details_config['enable_osystem'] = {{ option.osystem }};
$account_details_config['enable_osystem'] = {{ item.options.osystem }};
// Display Browser Information
$account_details_config['enable_browser'] = {{ option.browser }};
$account_details_config['enable_browser'] = {{ item.options.browser }};
// Display Resolution Settings
$account_details_config['enable_resolution'] = {{ option.resolution }};
$account_details_config['enable_resolution'] = {{ item.options.resolution }};
//======== Hosting Server Details ====================
// Displays Information for YOUR Server ... USE AT YOUR OWN RISK TRUST IN USERS REQUIRED
// Display your Server OS
$account_details_config['enable_server_os'] = {{ option.server_os }}; // Only one of the 3 options below should be true otherwise multiple tables will show OS.
$account_details_config['enable_server_os'] = {{ item.options.server_os }}; // Only one of the 3 options below should be true otherwise multiple tables will show OS.
//==== Enable only one out of 3 below ===============
// Display only Server name
$account_details_config['enable_server_os_name'] = {{ option.server_os_name }};
$account_details_config['enable_server_os_name'] = {{ item.options.server_os_name }};
// Display Server name and Release
$account_details_config['enable_server_os_rel'] = {{ option.server_os_rel }};
$account_details_config['enable_server_os_rel'] = {{ item.options.server_os_rel }};
// Display Server name Release and version
$account_details_config['enable_server_os_ver'] = {{ option.server_os_ver }};
$account_details_config['enable_server_os_ver'] = {{ item.options.server_os_ver }};
//===================================================
// Display Server CPU Load
$account_details_config['enable_server_cpu'] = {{ option.server_cpu }};
$account_details_config['enable_server_cpu'] = {{ item.options.server_cpu }};
// Display Server Memory
$account_details_config['enable_server_memory'] = {{ option.server_memory }};
$account_details_config['enable_server_memory'] = {{ item.options.server_memory }};
// Display Server Uptime
$account_details_config['enable_server_uptime'] = {{ option.server_uptime }};
$account_details_config['enable_server_uptime'] = {{ item.options.server_uptime }};
// Display PHP Server
$account_details_config['display_php_version'] = {{ option.php_version }};
$account_details_config['display_php_version'] = {{ item.options.php_version }};
// Display HTTP Server
$account_details_config['display_http_server'] = {{ option.http_server }};
$account_details_config['display_http_server'] = {{ item.options.http_server }};
// Display Server Admin Email
$account_details_config['display_admin_email'] = {{ option.admin_email }};
$account_details_config['display_admin_email'] = {{ item.options.admin_email }};
//====================================================
// For the next three URL/host variables, you can use these
@ -113,23 +112,23 @@ $account_details_config['display_admin_email'] = {{ option.admin_email }};
$account_details_config['webmail_url'] = '%p://%s/mail/';
// Server hostname
$account_details_config['hostname'] = '{{ option.hostname }}';
$account_details_config['hostname'] = '{{ item.options.hostname }}';
// If you have different server host names per protocol
$account_details_config['hostname_smtp'] = '{{ option.hostname_smtp }}';
$account_details_config['hostname_imap'] = '{{ option.hostname_imap }}';
$account_details_config['hostname_pop'] = '{{ option.hostname_pop }}';
$account_details_config['hostname_smtp'] = '{{ item.options.hostname_smtp }}';
$account_details_config['hostname_imap'] = '{{ item.options.hostname_imap }}';
$account_details_config['hostname_pop'] = '{{ item.options.hostname_pop }}';
// === SERVER CAPABILITIES ==========================================
// Port numbers in arrays (multiple port numbers allowed).
// Assign empty string '' instead of array to hide the row.
$account_details_config['port_smtp'] = array('{{ option.smtp_port }}');
$account_details_config['port_smtp'] = array('{{ item.options.smtp_port }}');
//$account_details_config['port_imap'] = array('143');
//$account_details_config['port_pop'] = array('110');
$account_details_config['port_smtp-ssl'] = array('{{ option.smtps_port }}');
$account_details_config['port_imap-ssl'] = array('{{ option.imaps_port }}');
$account_details_config['port_pop-ssl'] = array('{{ option.pops_port }}');
$account_details_config['port_smtp-ssl'] = array('{{ item.options.smtps_port }}');
$account_details_config['port_imap-ssl'] = array('{{ item.options.imaps_port }}');
$account_details_config['port_pop-ssl'] = array('{{ item.options.pops_port }}');
// SPA auth support for protocols
$account_details_config['spa_support_smtp'] = true; // SPA auth for SMTP
@ -204,10 +203,9 @@ $account_details_config['enable_dav_urls'] = true;
// Include a file with customized text in it's own box at the bottom
// This implementation is limited - PHP not possible, no language handling
$account_details_config['enable_custombox'] = {{ option.enable_custombox }};
$account_details_config['enable_custombox'] = {{ item.options.enable_custombox }};
$account_details_config['custombox_header'] = 'Help a Brotha Out!';
$account_details_config['custombox_file'] = 'plugins/account_details/custom_includes/donate.html';
$account_details_config['intro'] = 'plugins/account_details/custom_includes/intro.html';
?>
{% endfor %}

View File

@ -1,4 +1,3 @@
{% for option in item.options %}
<?php
// RoundCube plugin authres_status default settings
@ -29,8 +28,7 @@
//
// default value: authres_status::STATUS_ALL & ~authres_status::STATUS_NOSIG
//
$config['show_statuses'] = {{ option.show_statuses }};
$config['show_statuses'] = {{ item.options.show_statuses }};
// To only show authentication results from mta's you trust, add their authserv-id's here
//$config['trusted_mtas'] = array('your.mta.hostname');
{% endfor %}

View File

@ -1,11 +1,9 @@
{% for option in item.options %}
<?php
##
## Cloud Button configuration file
##
// URL to cloud storage
$config['cloud_button_url'] = '{{ option.rcube_plugins_cloud_url }}';
$config['cloud_button_url'] = '{{ item.options.rcube_plugins_cloud_url }}';
?>
{% endfor %}

View File

@ -1,9 +1,7 @@
{% for option in item.options %}
<?php
// Enable emoticons in plain text messages preview
$config['emoticons_display'] = {{ option.emoticons_display }};
$config['emoticons_display'] = {{ item.options.emoticons_display }};
// Enable emoticons in compose editor (HTML)
$config['emoticons_compose'] = {{ option.emoticons_compose }};
{% endfor %}
$config['emoticons_compose'] = {{ item.options.emoticons_compose }};

View File

@ -1,10 +1,8 @@
{% for option in item.options %}
<?php
//Dropdown menu label, leave empty to use default language
$config['language_dropdown_label']= '';
//Default dropdown selection
$config['language_dropdown_selected'] = '{{ option.language_dropdown_selected }}';
$config['language_dropdown_selected'] = '{{ item.options.language_dropdown_selected }}';
?>
{% endfor %}

View File

@ -1,4 +1,3 @@
{% for option in item.options %}
<?php
// Managesieve server host (and optional port). Default: localhost.
@ -11,11 +10,11 @@
// function, with 4190 as a fallback.
// Note: Add tls:// prefix to enable explicit STARTTLS
// or add ssl:// prefix to enable implicit SSL.
$config['managesieve_host'] = '{{ option.managesieve_host }}';
$config['managesieve_host'] = '{{ item.options.managesieve_host }}';
// authentication method. Can be CRAM-MD5, DIGEST-MD5, PLAIN, LOGIN, EXTERNAL
// or none. Optional, defaults to best method supported by server.
$config['managesieve_auth_type'] = "{{ option.managesieve_auth_type }}";
$config['managesieve_auth_type'] = "{{ item.options.managesieve_auth_type }}";
// Optional managesieve authentication identifier to be used as authorization proxy.
// Authenticate as a different user but act on behalf of the logged in user.
@ -61,7 +60,7 @@ $config['managesieve_replace_delimiter'] = '';
$config['managesieve_disabled_extensions'] = [];
// Enables debugging of conversation with sieve server. Logs it into <log_dir>/sieve
$config['managesieve_debug'] = {{ option.managesieve_debug }};
$config['managesieve_debug'] = {{ item.options.managesieve_debug }};
// Enables features described in http://wiki.kolab.org/KEP:14
$config['managesieve_kolab_master'] = false;
@ -79,24 +78,24 @@ $config['managesieve_filename_exceptions'] = [];
$config['managesieve_domains'] = [];
// Default list of entries in header selector
$config['managesieve_default_headers'] = ['{{ option.managesieve_default_headers }}'];
$config['managesieve_default_headers'] = ['{{ item.options.managesieve_default_headers }}'];
// Enables separate management interface for vacation responses (out-of-office)
// 0 - no separate section (default),
// 1 - add Vacation section,
// 2 - add Vacation section, but hide Filters section
$config['managesieve_vacation'] = {{ option.managesieve_vacation }};
$config['managesieve_vacation'] = {{ item.options.managesieve_vacation }};
// Enables separate management interface for setting forwards (redirect to and copy to)
// 0 - no separate section (default),
// 1 - add Forward section,
// 2 - add Forward section, but hide Filters section
$config['managesieve_forward'] = {{ option.managesieve_forward }};
$config['managesieve_forward'] = {{ item.options.managesieve_forward }};
// Default vacation interval (in days).
// Note: If server supports vacation-seconds extension it is possible
// to define interval in seconds here (as a string), e.g. "3600s".
$config['managesieve_vacation_interval'] = {{ option.managesieve_vacation_interval }};
$config['managesieve_vacation_interval'] = {{ item.options.managesieve_vacation_interval }};
// Some servers require vacation :addresses to be filled with all
// user addresses (aliases). This option enables automatic filling
@ -134,4 +133,3 @@ $config['managesieve_disabled_actions'] = [];
// Example: $config['managesieve_allowed_hosts'] = ['host1.mydomain.com', 'host2.mydomain.com'];
$config['managesieve_allowed_hosts'] = null;
{% endfor %}

View File

@ -1,11 +1,10 @@
{% for option in item.options %}
<?php
// Learning driver
// Use an external process such as sa-learn to learn from spam/ham messages. Default: null.
// Please see the README for more information
{% if option.markasjunk_learning_driver is defined and option.markasjunk_learning_driver != 'null' %}
$config['markasjunk_learning_driver'] = '{{ option.markasjunk_learning_driver }}';
{% if item.options.markasjunk_learning_driver is defined and item.options.markasjunk_learning_driver != 'null' %}
$config['markasjunk_learning_driver'] = '{{ item.options.markasjunk_learning_driver }}';
{% else %}
$config['markasjunk_learning_driver'] = null;
{% endif %}
@ -13,8 +12,8 @@ $config['markasjunk_learning_driver'] = null;
// Ham mailbox
// Mailbox messages should be moved to when they are marked as ham. null = INBOX
// set to FALSE to disable message moving
{% if option.markasjunk_ham_mbox is defined and option.markasjunk_ham_mbox != 'null' %}
$config['markasjunk_ham_mbox'] = '{{ option.markasjunk_ham_mbox }}';
{% if item.options.markasjunk_ham_mbox is defined and item.options.markasjunk_ham_mbox != 'null' %}
$config['markasjunk_ham_mbox'] = '{{ item.options.markasjunk_ham_mbox }}';
{% else %}
$config['markasjunk_ham_mbox'] = null;
{% endif %}
@ -23,45 +22,45 @@ $config['markasjunk_ham_mbox'] = null;
// Mailbox messages should be moved to when they are marked as spam.
// null = the mailbox assigned as the spam folder in Roundcube settings
// set to FALSE to disable message moving
{% if option.markasjunk_spam_mbox is defined and option.markasjunk_spam_mbox != 'null' %}
$config['markasjunk_spam_mbox'] = '{{ option.markasjunk_spam_mbox }}';
{% if item.options.markasjunk_spam_mbox is defined and item.options.markasjunk_spam_mbox != 'null' %}
$config['markasjunk_spam_mbox'] = '{{ item.options.markasjunk_spam_mbox }}';
{% else %}
$config['markasjunk_spam_mbox'] = null;
{% endif %}
// Mark messages as read when reporting them as spam
$config['markasjunk_read_spam'] = {{ option.markasjunk_read_spam }};
$config['markasjunk_read_spam'] = {{ item.options.markasjunk_read_spam }};
// Mark messages as unread when reporting them as ham
$config['markasjunk_unread_ham'] = {{ option.markasjunk_unread_ham }};
$config['markasjunk_unread_ham'] = {{ item.options.markasjunk_unread_ham }};
// Add flag to messages marked as spam (flag will be removed when marking as ham)
// If you do not want to use message flags set this to false
$config['markasjunk_spam_flag'] = '{{ option.markasjunk_spam_flag }}';
$config['markasjunk_spam_flag'] = '{{ item.options.markasjunk_spam_flag }}';
// Add flag to messages marked as ham (flag will be removed when marking as spam)
// If you do not want to use message flags set this to false
$config['markasjunk_ham_flag'] = '{{ option.markasjunk_ham_flag }}';
$config['markasjunk_ham_flag'] = '{{ item.options.markasjunk_ham_flag }}';
// Write output from spam/ham commands to the log for debug
$config['markasjunk_debug'] = {{ option.markasjunk_debug }};
$config['markasjunk_debug'] = {{ item.options.markasjunk_debug }};
// The mark as spam/ham icon can either be displayed on the toolbar or as part of the mark messages menu.
// Set to False to use Mark menu instead of the toolbar. Default: true.
$config['markasjunk_toolbar'] = {{ option.markasjunk_toolbar }};
$config['markasjunk_toolbar'] = {{ item.options.markasjunk_toolbar }};
// Learn any message moved to the spam mailbox as spam (not just when the button is pressed)
$config['markasjunk_move_spam'] = {{ option.markasjunk_move_spam }};
$config['markasjunk_move_spam'] = {{ item.options.markasjunk_move_spam }};
// Learn any message moved from the spam mailbox to the ham mailbox as ham (not just when the button is pressed)
$config['markasjunk_move_ham'] = {{ option.markasjunk_move_ham }};
$config['markasjunk_move_ham'] = {{ item.options.markasjunk_move_ham }};
// Some drivers create new copies of the target message(s), in this case the original message(s) will be deleted
// Rather than deleting the message(s) (moving to Trash) setting this option true will cause the original message(s) to be permanently removed
$config['markasjunk_permanently_remove'] = {{ option.markasjunk_permanently_remove }};
$config['markasjunk_permanently_remove'] = {{ item.options.markasjunk_permanently_remove }};
// Display only a mark as spam button
$config['markasjunk_spam_only'] = {{ option.markasjunk_spam_only }};
$config['markasjunk_spam_only'] = {{ item.options.markasjunk_spam_only }};
// Activate markasjunk for selected mail hosts only. If this is not set all mail hosts are allowed.
// Example: $config['markasjunk_allowed_hosts'] = array('mail1.domain.tld', 'mail2.domain.tld');
@ -86,8 +85,8 @@ $config['markasjunk_host_config'] = null;
// %f is replaced with the path to the message file
// %h:<header name> is replaced with the content of that header from the message (lower case) eg: %h:x-dspam-signature
// If you do not want to run the command set this to null
{% if option.markasjunk_spam_cmd is defined and option.markasjunk_spam_cmd != 'null' %}
$config['markasjunk_spam_cmd'] = '{{ option.markasjunk_spam_cmd }}';
{% if item.options.markasjunk_spam_cmd is defined and item.options.markasjunk_spam_cmd != 'null' %}
$config['markasjunk_spam_cmd'] = '{{ item.options.markasjunk_spam_cmd }}';
{% else %}
$config['markasjunk_spam_cmd'] = null;
{% endif %}
@ -101,23 +100,23 @@ $config['markasjunk_spam_cmd'] = null;
// %f is replaced with the path to the message file
// %h:<header name> is replaced with the content of that header from the message (lower case) eg: %h:x-dspam-signature
// If you do not want to run the command set this to null
{% if option.markasjunk_ham_cmd is defined and option.markasjunk_ham_cmd != 'null' %}
$config['markasjunk_ham_cmd'] = '{{ option.markasjunk_ham_cmd }}';
{% if item.options.markasjunk_ham_cmd is defined and item.options.markasjunk_ham_cmd != 'null' %}
$config['markasjunk_ham_cmd'] = '{{ item.options.markasjunk_ham_cmd }}';
{% else %}
$config['markasjunk_ham_cmd'] = null;
{% endif %}
// dir_learn Driver options
// ------------------------
// The full path of the directory used to store spam (must be writable by webserver)
{% if option.markasjunk_spam_dir is defined and option.markasjunk_spam_dir != 'null' %}
$config['markasjunk_spam_dir'] = '{{ option.markasjunk_spam_dir }}';
{% if item.options.markasjunk_spam_dir is defined and item.options.markasjunk_spam_dir != 'null' %}
$config['markasjunk_spam_dir'] = '{{ item.options.markasjunk_spam_dir }}';
{% else %}
$config['markasjunk_spam_dir'] = null;
{% endif %}
// The full path of the directory used to store ham (must be writable by webserver)
{% if option.markasjunk_ham_dir is defined and option.markasjunk_ham_dir != 'null' %}
$config['markasjunk_ham_dir'] = '{{ option.markasjunk_ham_dir }}';
{% if item.options.markasjunk_ham_dir is defined and item.options.markasjunk_ham_dir != 'null' %}
$config['markasjunk_ham_dir'] = '{{ item.options.markasjunk_ham_dir }}';
{% else %}
$config['markasjunk_ham_dir'] = null;
{% endif %}
@ -139,8 +138,8 @@ $config['markasjunk_filename'] = null;
// %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not)
// %i is replaced with the email address from the user's default identity
// If you do not want to send an email set this to null
{% if option.markasjunk_email_spam is defined and option.markasjunk_email_spam != 'null' %}
$config['markasjunk_email_spam'] = '{{ option.markasjunk_email_spam }}';
{% if item.options.markasjunk_email_spam is defined and item.options.markasjunk_email_spam != 'null' %}
$config['markasjunk_email_spam'] = '{{ item.options.markasjunk_email_spam }}';
{% else %}
$config['markasjunk_email_spam'] = null;
{% endif %}
@ -152,14 +151,14 @@ $config['markasjunk_email_spam'] = null;
// %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not)
// %i is replaced with the email address from the user's default identity
// If you do not want to send an email set this to null
{% if option.markasjunk_email_ham is defined and option.markasjunk_email_ham != 'null' %}
$config['markasjunk_email_ham'] = '{{ option.markasjunk_email_ham }}';
{% if item.options.markasjunk_email_ham is defined and item.options.markasjunk_email_ham != 'null' %}
$config['markasjunk_email_ham'] = '{{ item.options.markasjunk_email_ham }}';
{% else %}
$config['markasjunk_email_ham'] = null;
{% endif %}
// Should the spam/ham message be sent as an attachment
$config['markasjunk_email_attach'] = {{ option.markasjunk_email_attach }};
$config['markasjunk_email_attach'] = {{ item.options.markasjunk_email_attach }};
// The email subject (when sending as attachment)
// The subject can contain the following macros that will be expanded as follows:
@ -200,4 +199,3 @@ $config['markasjunk_ham_patterns'] = array(
'patterns' => array(),
'replacements' => array()
);
{% endfor %}

View File

@ -1,17 +1,15 @@
{% for option in item.options %}
<?php
// Enables basic notification
$config['newmail_notifier_basic'] = {{ option.newmail_notifier_basic }};
$config['newmail_notifier_basic'] = {{ item.options.newmail_notifier_basic }};
// Enables sound notification
$config['newmail_notifier_sound'] = {{ option.newmail_notifier_sound }};
$config['newmail_notifier_sound'] = {{ item.options.newmail_notifier_sound }};
// Enables desktop notification
$config['newmail_notifier_desktop'] = {{ option.newmail_notifier_desktop }};
$config['newmail_notifier_desktop'] = {{ item.options.newmail_notifier_desktop }};
// Desktop notification close timeout in seconds
$config['newmail_notifier_desktop_timeout'] = {{ option.newmail_notifier_desktop_timeout }};
$config['newmail_notifier_desktop_timeout'] = {{ item.options.newmail_notifier_desktop_timeout }};
?>
{% endfor %}

View File

@ -1,14 +1,13 @@
{% for option in item.options %}
<?php
// ----------------------------------
// PERSISTENT LOGIN / REMEMBER ME
// ----------------------------------
// Time until the peristent login cookie invalidates (in seconds; 60*60*24*3 = 3 days)
$rcmail_config['ifpl_login_expire'] = {{ option.login_expire }};
$rcmail_config['ifpl_login_expire'] = {{ item.options.login_expire }};
// The name of the persistent login cookie.
$rcmail_config['ifpl_cookie_name'] = '{{ option.cookie_name }}';
$rcmail_config['ifpl_cookie_name'] = '{{ item.options.cookie_name }}';
// ----------------------------------
// TOKEN BASED (MORE SECURE!) - OPTIONAL
@ -30,4 +29,3 @@ $rcmail_config['db_table_auth_tokens'] = 'auth_tokens';
// e.g.: '127.0.0.1/32', '10.10.0.0/24', '1.1.1.0/24'
$rcmail_config['ifpl_netmask_whitelist'] = array();
?>
{% endfor %}

View File

@ -1,7 +1,6 @@
{% for option in item.options %}
<?php
// whether to globally enable thunderbird labels
$config['tb_label_enable'] = {{ option.tb_label_enable_globally }};
$config['tb_label_enable'] = {{ item.options.tb_label_enable_globally }};
// add labels to contextmenu (if contextmenu plugin is present)
$config['tb_label_enable_contextmenu'] = true;
// enable kb shortcuts (1-5)
@ -12,8 +11,7 @@
// - 'bullets' shows coloured bullets for each label (shows all labels)
// - 'thunderbird' colors subject like thunderbird does (shows only most important label)
// - 'badges' shows text of label inside coloured badges (shows all labels)
$config['tb_label_style'] = "{{ option.tb_label_style }}";
$config['tb_label_style'] = "{{ item.options.tb_label_style }}";
// custom hidden flags
$config['tb_label_hidden_flags'] = array();
{% endfor %}

View File

@ -0,0 +1,11 @@
<?php
// TLS Icon Plugin options
// -----------------------
// Number of hops to ignore. This ignores the last 'tls_icon_ignore_hops' number of hops.
// May be useful in case your system generates a certain number of internal hops you want ignored.
// Each Received-Header in the mail is considered as one hop.
// This setting has no effect if its value exceeds the number of hops found in the mail.
// Default: 0 (ignores no hops and uses the last Received-Header).
$config['tls_icon_ignore_hops'] = {{ item.options.ignore_hops }};

View File

@ -1,27 +1,25 @@
{% for option in item.options %}
<?php
// if true ALL users must have 2-steps active
$rcmail_config['force_enrollment_users'] = {{ option.force_enrollment_users }};
$rcmail_config['force_enrollment_users'] = {{ item.options.force_enrollment_users }};
// whitelist, CIDR format available
// NOTE: we need to use .0 IP to define LAN because the class CIDR have a issue about that (we can't use 129.168.1.2/24, for example)
$rcmail_config['whitelist'] = array( {{ option.whitelist }} );
$rcmail_config['whitelist'] = array( {{ item.options.whitelist }} );
// Admin can disable saving devices for all users (paranoid mode)
// Default: allow saving devices (true)
$rcmail_config['allow_save_device_30days'] = {{ option.allow_save_device_30days }};
$rcmail_config['allow_save_device_30days'] = {{ item.options.allow_save_device_30days }};
// Make the 2-step field a masked password input type
// Default: form field will be text (false)
$rcmail_config['twofactor_formfield_as_password'] = {{ option.twofactor_formfield_as_password }};
$rcmail_config['twofactor_formfield_as_password'] = {{ item.options.twofactor_formfield_as_password }};
// Users allowed to use plugin (IMPORTANT: other users DON'T have plugin activated)
$rcmail_config['users_allowed_2FA'] = array( {{ option.users_allowed_2F }} );
$rcmail_config['users_allowed_2FA'] = array( {{ item.options.users_allowed_2F }} );
// failure logging, suggested by @pngd (issue 131)
$rcmail_config['enable_fail_logs'] = {{ option.enable_fail_logs }};
$rcmail_config['enable_fail_logs'] = {{ item.options.enable_fail_logs }};
?>
{% endfor %}

View File

@ -1,4 +1,3 @@
{% for option in item.options %}
<?php
/**
@ -8,16 +7,15 @@
// Zip attachments
// Only show the link when there are more than this many attachments
// -1 to prevent downloading of attachments as zip
$config['zipdownload_attachments'] = {{ option.zipdownload_attachments }};
$config['zipdownload_attachments'] = {{ item.options.zipdownload_attachments }};
// Zip selection of mail messages
// This option enables downloading of multiple messages as one zip archive.
// The number or string value specifies maximum total size of all messages
// in the archive (not the size of the archive itself).
$config['zipdownload_selection'] = '{{ option.zipdownload_selection }}';
$config['zipdownload_selection'] = '{{ item.options.zipdownload_selection }}';
// Charset to use for filenames inside the zip
$config['zipdownload_charset'] = '{{ option.zipdownload_charset }}';
$config['zipdownload_charset'] = '{{ item.options.zipdownload_charset }}';
?>
{% endfor %}