Changeset 2064


Ignore:
Timestamp:
02/24/10 15:24:07 (14 years ago)
Author:
eduardoalex
Message:

Ticket #889 - Correção do problema descrito no ticket em questão.

File:
1 edited

Legend:

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

    r2062 r2064  
    145145                if(folder_to_sync[3]) { //Em caso de arquivamento normal, pode ser que a pasta inbox ainda não tenha sido criada. 
    146146                        expresso_mail_sync.open_conn() 
    147                         if(!expresso_mail_sync.has_local_mails()) { 
     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                        } 
     
    344344        } 
    345345         
    346         mail_sync.prototype.has_local_mails = function() {//This function considers that the connection with base is already opened. 
    347                 var rs = this.dbGears.execute("select rowid from folder limit 0,1"); 
     346        mail_sync.prototype.has_inbox_folder = function() {//This function considers that the connection with base is already opened. 
     347                var rs = this.dbGears.execute("select rowid from folder where folder='Inbox'"); 
    348348                if(rs.isValidRow()) 
    349349                        return true; 
Note: See TracChangeset for help on using the changeset viewer.