|
| 1 | +<?php |
| 2 | + |
| 3 | +// Learning driver |
| 4 | +// Use an external process such as sa-learn to learn from spam/ham messages. Default: null. |
| 5 | +// Please see the README for more information |
| 6 | +$config['markasjunk_learning_driver'] = null; |
| 7 | + |
| 8 | +// Ham mailbox |
| 9 | +// Mailbox messages should be moved to when they are marked as ham. null = INBOX |
| 10 | +// set to FALSE to disable message moving |
| 11 | +$config['markasjunk_ham_mbox'] = null; |
| 12 | + |
| 13 | +// Spam mailbox |
| 14 | +// Mailbox messages should be moved to when they are marked as spam. |
| 15 | +// null = the mailbox assigned as the spam folder in Roundcube settings |
| 16 | +// set to FALSE to disable message moving |
| 17 | +$config['markasjunk_spam_mbox'] = null; |
| 18 | + |
| 19 | +// Mark messages as read when reporting them as spam |
| 20 | +$config['markasjunk_read_spam'] = false; |
| 21 | + |
| 22 | +// Mark messages as unread when reporting them as ham |
| 23 | +$config['markasjunk_unread_ham'] = false; |
| 24 | + |
| 25 | +// Add flag to messages marked as spam (flag will be removed when marking as ham) |
| 26 | +// If you do not want to use message flags set this to false |
| 27 | +$config['markasjunk_spam_flag'] = 'Junk'; |
| 28 | + |
| 29 | +// Add flag to messages marked as ham (flag will be removed when marking as spam) |
| 30 | +// If you do not want to use message flags set this to false |
| 31 | +$config['markasjunk_ham_flag'] = 'NonJunk'; |
| 32 | + |
| 33 | +// Write output from spam/ham commands to the log for debug |
| 34 | +$config['markasjunk_debug'] = false; |
| 35 | + |
| 36 | +// The mark as spam/ham icon can either be displayed on the toolbar or as part of the mark messages menu. |
| 37 | +// Set to False to use Mark menu instead of the toolbar. Default: true. |
| 38 | +$config['markasjunk_toolbar'] = true; |
| 39 | + |
| 40 | +// Learn any message moved to the spam mailbox as spam (not just when the button is pressed) |
| 41 | +$config['markasjunk_move_spam'] = false; |
| 42 | + |
| 43 | +// Learn any message moved from the spam mailbox to the ham mailbox as ham (not just when the button is pressed) |
| 44 | +$config['markasjunk_move_ham'] = false; |
| 45 | + |
| 46 | +// Some drivers create new copies of the target message(s), in this case the original message(s) will be deleted |
| 47 | +// Rather than deleting the message(s) (moving to Trash) setting this option true will cause the original message(s) to be permanently removed |
| 48 | +$config['markasjunk_permanently_remove'] = false; |
| 49 | + |
| 50 | +// Display only a mark as spam button |
| 51 | +$config['markasjunk_spam_only'] = false; |
| 52 | + |
| 53 | +// Activate markasjunk for selected mail hosts only. If this is not set all mail hosts are allowed. |
| 54 | +// Example: $config['markasjunk_allowed_hosts'] = array('mail1.domain.tld', 'mail2.domain.tld'); |
| 55 | +$config['markasjunk_allowed_hosts'] = null; |
| 56 | + |
| 57 | +// Load specific config for different mail hosts |
| 58 | +// Example: $config['markasjunk_host_config'] = array( |
| 59 | +// 'mail1.domain.tld' => 'mail1_config.inc.php', |
| 60 | +// 'mail2.domain.tld' => 'mail2_config.inc.php', |
| 61 | +// ); |
| 62 | +$config['markasjunk_host_config'] = null; |
| 63 | + |
| 64 | +// cmd_learn Driver options |
| 65 | +// ------------------------ |
| 66 | +// The command used to learn that a message is spam |
| 67 | +// The command can contain the following macros that will be expanded as follows: |
| 68 | +// %u is replaced with the username (from the session info) |
| 69 | +// %l is replaced with the local part of the username (if the username is an email address) |
| 70 | +// %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not) |
| 71 | +// %i is replaced with the email address from the user's default identity |
| 72 | +// %s is replaced with the email address the message is from |
| 73 | +// %f is replaced with the path to the message file |
| 74 | +// %h:<header name> is replaced with the content of that header from the message (lower case) eg: %h:x-dspam-signature |
| 75 | +// If you do not want to run the command set this to null |
| 76 | +$config['markasjunk_spam_cmd'] = null; |
| 77 | + |
| 78 | +// The command used to learn that a message is ham |
| 79 | +// The command can contain the following macros that will be expanded as follows: |
| 80 | +// %u is replaced with the username (from the session info) |
| 81 | +// %l is replaced with the local part of the username (if the username is an email address) |
| 82 | +// %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not) |
| 83 | +// %i is replaced with the email address from the user's default identity |
| 84 | +// %s is replaced with the email address the message is from |
| 85 | +// %f is replaced with the path to the message file |
| 86 | +// %h:<header name> is replaced with the content of that header from the message (lower case) eg: %h:x-dspam-signature |
| 87 | +// If you do not want to run the command set this to null |
| 88 | +$config['markasjunk_ham_cmd'] = null; |
| 89 | + |
| 90 | +// dir_learn Driver options |
| 91 | +// ------------------------ |
| 92 | +// The full path of the directory used to store spam (must be writable by webserver) |
| 93 | +$config['markasjunk_spam_dir'] = null; |
| 94 | + |
| 95 | +// The full path of the directory used to store ham (must be writable by webserver) |
| 96 | +$config['markasjunk_ham_dir'] = null; |
| 97 | + |
| 98 | +// The filename prefix |
| 99 | +// The filename can contain the following macros that will be expanded as follows: |
| 100 | +// %u is replaced with the username (from the session info) |
| 101 | +// %l is replaced with the local part of the username (if the username is an email address) |
| 102 | +// %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not) |
| 103 | +// %t is replaced with the type of message (spam/ham) |
| 104 | +$config['markasjunk_filename'] = null; |
| 105 | + |
| 106 | +// email_learn Driver options |
| 107 | +// -------------------------- |
| 108 | +// The email address that spam messages will be sent to |
| 109 | +// The address can contain the following macros that will be expanded as follows: |
| 110 | +// %u is replaced with the username (from the session info) |
| 111 | +// %l is replaced with the local part of the username (if the username is an email address) |
| 112 | +// %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not) |
| 113 | +// %i is replaced with the email address from the user's default identity |
| 114 | +// If you do not want to send an email set this to null |
| 115 | +$config['markasjunk_email_spam'] = null; |
| 116 | + |
| 117 | +// The email address that ham messages will be sent to |
| 118 | +// The address can contain the following macros that will be expanded as follows: |
| 119 | +// %u is replaced with the username (from the session info) |
| 120 | +// %l is replaced with the local part of the username (if the username is an email address) |
| 121 | +// %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not) |
| 122 | +// %i is replaced with the email address from the user's default identity |
| 123 | +// If you do not want to send an email set this to null |
| 124 | +$config['markasjunk_email_ham'] = null; |
| 125 | + |
| 126 | +// Should the spam/ham message be sent as an attachment |
| 127 | +$config['markasjunk_email_attach'] = true; |
| 128 | + |
| 129 | +// The email subject (when sending as attachment) |
| 130 | +// The subject can contain the following macros that will be expanded as follows: |
| 131 | +// %u is replaced with the username (from the session info) |
| 132 | +// %l is replaced with the local part of the username (if the username is an email address) |
| 133 | +// %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not) |
| 134 | +// %t is replaced with the type of message (spam/ham) |
| 135 | +$config['markasjunk_email_subject'] = 'learn this message as %t'; |
| 136 | + |
| 137 | +// sa_blacklist Driver options |
| 138 | +// --------------------------- |
| 139 | +// Path to SAUserPrefs config file |
| 140 | +$config['markasjunk_sauserprefs_config'] = '../sauserprefs/config.inc.php'; |
| 141 | + |
| 142 | +// amavis_blacklist Driver options |
| 143 | +// --------------------------- |
| 144 | +// Path to amacube config file |
| 145 | +$config['markasjunk_amacube_config'] = '../amacube/config.inc.php'; |
| 146 | + |
| 147 | +// edit_headers Driver options |
| 148 | +// --------------------------- |
| 149 | +// Patterns to match and replace headers for spam messages |
| 150 | +// Replacement method uses preg_replace - http://www.php.net/manual/function.preg-replace.php |
| 151 | +// WARNING: Be sure to match the entire header line, including the name of the header, also use ^ and $ and the 'm' flag |
| 152 | +// see the README for an example |
| 153 | +// TEST CAREFULLY BEFORE USE ON REAL MESSAGES |
| 154 | +$config['markasjunk_spam_patterns'] = array( |
| 155 | + 'patterns' => array(), |
| 156 | + 'replacements' => array() |
| 157 | +); |
| 158 | + |
| 159 | +// Patterns to match and replace headers for spam messages |
| 160 | +// Replacement method uses preg_replace - http://www.php.net/manual/function.preg-replace.php |
| 161 | +// WARNING: Be sure to match the entire header line, including the name of the header, also use ^ and $ and the 'm' flag |
| 162 | +// see the README for an example |
| 163 | +// TEST CAREFULLY BEFORE USE ON REAL MESSAGES |
| 164 | +$config['markasjunk_ham_patterns'] = array( |
| 165 | + 'patterns' => array(), |
| 166 | + 'replacements' => array() |
| 167 | +); |
0 commit comments