Ignore:
Timestamp:
03/10/08 09:19:01 (16 years ago)
Author:
niltonneto
Message:

ver Ticket #154 e #155;
Otimizar verificação do Fora de Escritório;
Otimizar código que salva as preferências;

File:
1 edited

Legend:

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

    r197 r206  
    1616                        cExecute ("$this.imap_functions.automatic_trash_cleanness&before_date="+preferences.delete_trash_messages_after_n_days+"&cyrus_delimiter="+cyrus_delimiter, handler_automatic_trash_cleanness); 
    1717 
     18                if(preferences.outoffice) 
     19                        write_msg(get_lang("Attention, you are in out of office mode."), true); 
    1820                ConstructMenuTools(); 
    1921                cExecute ("$this.imap_functions.get_folders_list", update_menu); 
     
    3537        cExecute ("$this.functions.get_preferences", save_preferences); 
    3638        setTimeout('auto_refresh()', time_refresh); 
    37          
    38         var handler_sieve = function(data){ 
    39                 if(data.vacation && data.vacation[0]) { 
    40                         var vacation =  data.vacation[0].split("&&"); 
    41                         if(vacation[4].replace("\n","") == "on"){ 
    42                                 write_msg(get_lang("Attention, you are in out of office mode."), true); 
    43                         } 
    44                 } 
    45         } 
    46         cExecute("$this.ScriptS.init_a",handler_sieve); 
    4739} 
    4840 
     
    5042        if(!verify_session(msg_info)) 
    5143                return; 
     44         
     45        if (msg_info.status_get_msg_info == 'false') 
     46        { 
     47                write_msg(get_lang("Problems reading your message")+ "."); 
     48                return; 
     49        } 
     50         
    5251        var handler_sendNotification = function(data){ 
    5352                if (data) 
Note: See TracChangeset for help on using the changeset viewer.