Changeset 2066 for branches/2.1
- Timestamp:
- 02/24/10 16:09:22 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/expressoMail1_2/js/mail_sync.js
r1857 r2066 144 144 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 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()) { 148 148 expresso_mail_sync.dbGears.execute("insert into folder (folder,uid_usuario) values (?,?)",["Inbox",account_id]); 149 149 } … … 345 345 } 346 346 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'"); 349 349 if(rs.isValidRow()) 350 350 return true;
Note: See TracChangeset
for help on using the changeset viewer.