- Timestamp:
- 01/04/13 17:43:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/main.js
r7697 r7705 3290 3290 * Se houver, retorna a primeira ocorrência encontrada de words, caso contrário retorna false. 3291 3291 */ 3292 function verifyBodyWords(body, words) { 3293 for(i = 0; i < words.length; i++) { 3292 function verifyBodyWords(body, words) 3293 { 3294 var forwStartPT = body.search(/\<div\>\n*\s*---------- Mensagem encaminhada ----------/); 3295 if(forwStartPT >= 0) 3296 body = body.substr(0,forwStartPT); 3297 3298 var forwStartEN = body.search(/\<div\>\n*\s*---------- Forwarded message ----------/); 3299 if(forwStartEN >= 0) 3300 body = body.substr(0,forwStartEN); 3301 3302 var forwStartES = body.search(/\<div\>\n*\s*---------- Mensaje reenviada ----------/); 3303 if(forwStartES >= 0) 3304 body = body.substr(0,forwStartES); 3305 3306 var replyStartPT = body.search(/\<div\>\n*\s*Em (\d{1,2})\/(\d{1,2})\/(\d{4}) \à\;s (\d{1,2}):(\d{1,2}) horas, (.)+ escreveu:/); 3307 if(replyStartPT >= 0) 3308 body = body.substr(0,replyStartPT); 3309 3310 var replyStartEN = body.search(/\<div\>\n*\s*At (\d{1,2})\/(\d{1,2})\/(\d{4}), (\d{1,2}):(\d{1,2}) hours, (.)+ wrote:/); 3311 if(replyStartEN >= 0) 3312 body = body.substr(0,replyStartEN); 3313 3314 var replyStartES = body.search(/\<div\>\n*\s*En (\d{1,2})\/(\d{1,2})\/(\d{4}) las (\d{1,2}):(\d{1,2}) horas, (.)+ escribi\ó\;:/); 3315 if(replyStartES >= 0) 3316 body = body.substr(0,replyStartES); 3317 3318 for(i = 0; i < words.length; i++) { 3294 3319 if(body.search(words[i]) != -1) { 3295 3320 return words[i]; 3296 3321 } 3297 3322 } 3323 3298 3324 return false; 3299 3325 }
Note: See TracChangeset
for help on using the changeset viewer.