- Fixed bug #1032366, remove NUL characters in text attachments on sent.
- URL Encode required for string being passed in mailto: links to pass on
additional values (cc, body, subject etc).
+ - Fixed bug #801060. Removed option for INBOX in filters plugin as source
+ is always INBOX.
Version 1.5.0
--------------------
$should_expunge) {
global $languages, $squirrelmail_language, $allow_charset_search, $imap_server_type;
+ if (strtolower($where_to) == 'inbox') {
+ return array();
+ }
+
+
if ($user_scan == 'new') {
$category = 'UNSEEN';
} else {
echo $string;
echo "</font></p>\n";
}
-?>
\ No newline at end of file
+?>
$filter_what = str_replace("\\\"", '"', $filter_what);
$filter_what = str_replace('"', '"', $filter_what);
+ if (empty($filter_what)) {
+ do_error(_("WARNING! You must enter something to search for."));
+ $action = 'edit';
+ }
+
if (($filter_where == 'Header') && (strchr($filter_what,':') == '')) {
do_error(_("WARNING! Header filters should be of the format "Header: value""));
$action = 'edit';
}
+ if ($action != 'edit') {
setPref($data_dir, $username, 'filter'.$theid, $filter_where.','.$filter_what.','.$filter_folder);
+ }
$filters[$theid]['where'] = $filter_where;
$filters[$theid]['what'] = $filter_what;
$filters[$theid]['folder'] = $filter_folder;
$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
$boxes = sqimap_mailbox_list($imapConnection);
+
+ for ($a = 0, $cnt = count($boxes); $a < $cnt; $a++) {
+ if (strtolower($boxes[$a]['formatted']) == 'inbox') {
+ unset($boxes[$a]);
+ }
+ }
+
sqimap_logout($imapConnection);
if ( !isset($theid) ) {
$theid = count($filters);