Changeset 2064 for trunk/expressoMail1_2
- Timestamp:
- 02/24/10 15:24:07 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/mail_sync.js
r2062 r2064 145 145 if(folder_to_sync[3]) { //Em caso de arquivamento normal, pode ser que a pasta inbox ainda não tenha sido criada. 146 146 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()) { 148 148 expresso_mail_sync.dbGears.execute("insert into folder (folder,uid_usuario) values (?,?)",["Inbox",account_id]); 149 149 } … … 344 344 } 345 345 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'"); 348 348 if(rs.isValidRow()) 349 349 return true;
Note: See TracChangeset
for help on using the changeset viewer.