Ignore:
Timestamp:
03/25/08 15:21:49 (16 years ago)
Author:
niltonneto
Message:

Ver o ticket #161 do Trac.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/filter.js

    r206 r246  
    313313                if(confirm(get_lang("Do you want to block this e-mail?"))){ 
    314314                        new_r = "&&ENABLED&&" + email + "&&&&&&discard&&&&0&&&&&&0"; 
    315                         setTimeout("filter.e_newrule('" + new_r + "')",2000);            
    316                         this.email_deny.push(email); 
    317                         write_msg(get_lang("The sender was blocked"));                                                   
     315//                      setTimeout("filter.e_newrule('" + new_r + "')",2000);            
     316                        if (filter.e_newrule(new_r)){ 
     317                                this.email_deny.push(email); 
     318                                write_msg(get_lang("This sender was blocked"));                                                  
     319                        }else 
     320                                write_msg(get_lang("You have reached the maximum number of rules")); 
    318321                } 
    319322        } 
     
    322325 
    323326                var new_rl = ""; 
     327                if (this.rulest.length >= rules_limit) 
     328                        return false; 
     329                         
    324330                if(this.rulest.length == 0){ 
    325331                        new_rl = "#rule&&1" + nw_rule; 
     
    330336                this.rulest.push(new_rl); 
    331337                this.saved_all(); 
     338                return true; 
    332339        } 
    333340         
Note: See TracChangeset for help on using the changeset viewer.