Ignore:
Timestamp:
10/20/09 15:24:08 (15 years ago)
Author:
eduardoalex
Message:

Ticket #656 - funcionalidade de arquivamento programado no expressoMail

File:
1 edited

Legend:

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

    r1443 r1518  
    2424                ConstructMenuTools(); 
    2525 
     26                if ((preferences.use_local_messages==1) && (!window.google || !google.gears)) { 
     27                        temp = confirm(get_lang("To use local messages you have to install google gears. Would you like to be redirected to gears installation page?")); 
     28                        if (temp) { 
     29                                location.href = "http://gears.google.com/?action=install&message="+ 
     30                                "Para utilizar o recurso de mensagens locais, instale o google gears&return=" + document.location.href; 
     31                        } 
     32                        else { 
     33                                preferences.use_local_messages=0; 
     34                        } 
     35                } 
     36 
    2637        // Insere a applet de criptografia 
    2738        if (preferences.use_signature_digital_cripto == '1'){ 
     
    5162        cExecute ("$this.functions.get_preferences", save_preferences); 
    5263        setTimeout('auto_refresh()', time_refresh); 
    53         if(window.google && google.gears) 
    54                 if(expresso_local_messages.is_offline_installed()) 
     64        if (window.google && google.gears) { 
     65                setTimeout('auto_archiving()', 30000); 
     66                if (expresso_local_messages.is_offline_installed()) { 
    5567                        check_mail_in_queue(); 
     68                } 
     69        } 
    5670} 
    5771 
     
    357371        refresh(preferences.alert_new_msg); 
    358372        setTimeout('auto_refresh()', time_refresh); 
     373} 
     374 
     375function auto_archiving() { 
     376        expresso_mail_sync.start_sync(); 
     377        setTimeout('auto_archiving()',600000); 
    359378} 
    360379 
Note: See TracChangeset for help on using the changeset viewer.