Changeset 207
- Timestamp:
- 09/17/07 23:01:20 (16 months ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
ChangeLog (modified) (1 diff)
-
includes/sites/user_spam.php (modified) (2 diffs)
-
system_scripts/create_mailfilters.pl (modified) (1 diff)
-
templates/error_messages.tpl (modified) (1 diff)
-
templates/user_spam.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r206 r207 1 1 CpVES 0.10 YYYY-MM-DD - Jonas Genannt - <jonas.genannt@brachium-system.net> 2 2 o Improved: sa_learn.pl no longer debug output 3 o Improved: move_spam does not display INBOX 3 4 o Added: display mailbox size per domain 5 o Added: forward spam to another mailbox (frontend + backend) (#29) 4 6 o Fixed: superadmin web_lang to short (#35) 5 7 CpVES 0.09 2007-09-15 - Jonas Genannt - <jonas.genannt@brachium-system.net> -
trunk/includes/sites/user_spam.php
r205 r207 79 79 } 80 80 //save move_spam 81 if ($_POST['move_spam']==0) { 81 if (isset($_POST['spam_fwd_active']) && $_POST['spam_fwd_active']==1 && $_POST['move_spam']==1) { 82 $smarty->assign('error_msg', 'y'); 83 $smarty->assign('move_spam_active_and_spam_fwd', 1); 84 } 85 elseif ($_POST['move_spam']==0) { 82 86 $sql=sprintf("UPDATE users SET move_spam=NULL WHERE id='%d'", 83 87 $db->escapeSimple($_SESSION['uid'])); … … 125 129 update_email_options($_SESSION['uid'],'del_known_spam','0',0); 126 130 } 127 if (isset($_POST['spam_fwd_active']) && $_POST['spam_fwd_active']==1 ) { 131 132 if (isset($_POST['spam_fwd_active']) && $_POST['spam_fwd_active']==1 && $_POST['move_spam']==1) { 133 $smarty->assign('error_msg', 'y'); 134 $smarty->assign('move_spam_active_and_spam_fwd', 1); 135 } 136 elseif (isset($_POST['spam_fwd_active']) && $_POST['spam_fwd_active']==1 ) { 128 137 if (Validate::email($_POST['spam_fwd_mail'])) { 129 138 update_email_options($_SESSION['uid'],'spam_fwd_active','1',0); -
trunk/system_scripts/create_mailfilters.pl
r181 r207 206 206 $del_known_spam_value); 207 207 } 208 if (get_email_option($id,'spam_fwd_active','0') eq "1") { 209 $mailfilter = sprintf("%s\nexception {\nif (/^X-Spam-Flag: Yes/ || /^X-Bogosity: Spam, tests=bogofilter/)\n to \"!%s\"\n}\n", 210 $mailfilter, 211 get_email_option($id,'spam_fwd_mail','')); 212 } 208 213 } 209 214 if ( $type eq "autoresponder") { -
trunk/templates/error_messages.tpl
r195 r207 87 87 {elseif $ml_email_there == 'y'} 88 88 {t}email address is already on the list!{/t} 89 {elseif $move_spam_active_and_spam_fwd == 1} 90 {t}move known spam and forward known spam is active!{/t}<br/> 91 {t}You could either use move or forward option!{/t} 89 92 {/if} -
trunk/templates/user_spam.tpl
r205 r207 61 61 <option value="{$row.name}" selected="selected">{$row.name_display}</option> 62 62 {/if} 63 {else }63 {elseif $row.type!='inbox'} 64 64 {if $row.type == 'spam'} 65 65 <option style="font-weight:bold;" value="{$row.name}">{$row.name_display}</option>
