Changeset 3722 for branches/2.2/expressoMail1_2/js/search.js
- Timestamp:
- 01/26/11 11:10:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/js/search.js
r3711 r3722 427 427 var tr = document.createElement("TR"); 428 428 tr.style.height = preferences.line_height; 429 430 if (false && nw_array[i].match(/.*--.*--\w*--\d{2}\/\d{2}\/\d{4}--\d+? \w*b--.*--\d*$/g) != null) //subject with "--" 431 { 432 var aux1 = nw_array[i].match(/\d{2}\/\d{2}\/\d{4}--\d+? \w*b--.*--\d*$/g); 433 aux1 = aux1[0].split("--"); 434 nw_array[i] = nw_array[i].substr(0, nw_array[i].indexOf(aux1[0])-2); 435 436 var aux = []; 437 438 aux[0] = nw_array[i].substr(0, nw_array[i].indexOf('--')); 439 nw_array[i] = nw_array[i].substr(nw_array[i].indexOf('--')+2); 440 aux[3] = nw_array[i].substr(0, nw_array[i].indexOf('--')); 441 nw_array[i] = nw_array[i].substr(nw_array[i].indexOf('--')+2); 442 aux[1] = nw_array[i].substr(0, nw_array[i].indexOf('--')); 443 aux[2] = nw_array[i].substr(nw_array[i].indexOf('--')+2); 444 aux = aux.concat(aux1); 445 } 446 else 447 { 448 var aux = nw_array[i].split("--"); 449 aux.splice(4,0,aux[1]); 450 var mailbox = aux.shift(); 451 aux.splice(0,1,mailbox); 452 } 453 429 nw_array[i] = url_decode(unescape(nw_array[i])); 430 431 var aux1; 432 aux1 = nw_array[i].match(/\d{2}\/\d{2}\/\d{4}--\d+? \w*b--.*--\d*$/g); 433 /* 434 * E-mails do dia estão vindo com o horário em mensagens locais. 435 * Caso isso seja "corrigido" essa condicional não será mais necessária 436 */ 437 if(aux1==null) 438 aux1 = nw_array[i].match(/\d{2}:\d{2}--\d+? \w*b--.*--\d*$/g); 439 aux1 = aux1[0].split("--"); 440 nw_array[i] = nw_array[i].substr(0, nw_array[i].indexOf(aux1[0])-2); 441 442 var aux = []; 443 var mailbox = ""; 444 aux[0] = mailbox = nw_array[i].substr(0, nw_array[i].indexOf('--')); 445 nw_array[i] = nw_array[i].substr(nw_array[i].indexOf('--')+2); 446 aux[3] = nw_array[i].substr(0, nw_array[i].indexOf('--')); 447 nw_array[i] = nw_array[i].substr(nw_array[i].indexOf('--')+2); 448 aux[1] = nw_array[i].substr(0, nw_array[i].indexOf('--')); 449 aux[2] = nw_array[i].substr(nw_array[i].indexOf('--')+2); 450 aux = aux.concat(aux1); 451 452 454 453 var mailbox_name = aux[0]; 455 454 var mailbox_id = aux[3]; … … 529 528 { 530 529 var td1 = this.aux_local_folder_display(td1); 531 aux[2] =tr.name = aux[0]; // precisa trocar pelo nome real no banco do gears.530 tr.name = aux[0]; // precisa trocar pelo nome real no banco do gears. 532 531 } 533 532 else
Note: See TracChangeset
for help on using the changeset viewer.