Changeset 2066


Ignore:
Timestamp:
02/24/10 16:09:22 (14 years ago)
Author:
eduardoalex
Message:

Ticket #889 - Replicando no branch 2.1 a correcao descrita no ticket em questao.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/expressoMail1_2/js/mail_sync.js

    r1857 r2066  
    144144                 
    145145                if(folder_to_sync[3]) { //Em caso de arquivamento normal, pode ser que a pasta inbox ainda não tenha sido criada. 
    146                         expresso_mail_sync.open_conn() 
    147                         if(!expresso_mail_sync.has_local_mails()) { 
     146                        expresso_mail_sync.open_conn(); 
     147                        if(folder_to_sync[1]=='Inbox' && !expresso_mail_sync.has_inbox_folder()) { 
    148148                                expresso_mail_sync.dbGears.execute("insert into folder (folder,uid_usuario) values (?,?)",["Inbox",account_id]); 
    149149                        } 
     
    345345        } 
    346346         
    347         mail_sync.prototype.has_local_mails = function() {//This function considers that the connection with base is already opened. 
    348                 var rs = this.dbGears.execute("select rowid from folder limit 0,1"); 
     347        mail_sync.prototype.has_inbox_folder = function() {//This function considers that the connection with base is already opened. 
     348                var rs = this.dbGears.execute("select rowid from folder where folder = 'Inbox'"); 
    349349                if(rs.isValidRow()) 
    350350                        return true; 
Note: See TracChangeset for help on using the changeset viewer.