Changeset 2844 for trunk/expressoMail1_2/inc/class.imap_functions.inc.php
- Timestamp:
- 05/24/10 17:49:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r2829 r2844 366 366 $headertemp = explode("\n",imap_fetchheader($this->mbox, imap_msgno($this->mbox, $params["msg_num"]))); 367 367 foreach($headertemp as $head) {//Se eu colocar todo o header do email dá pau no append, então procuro apenas o que interessa. 368 369 if ( (strtoupper($head1[0]) == "TO") || 370 (strtoupper($head1[0]) == "FROM") || 368 $head1 = explode(":",$head); 369 if ( (strtoupper($head1[0]) == "TO") || 370 (strtoupper($head1[0]) == "FROM") || 371 371 (strtoupper($head1[0]) == "SUBJECT") || 372 (strtoupper($head1[0]) == "DATE") ) 373 $header .= $head."\r\n"; 372 (strtoupper($head1[0]) == "DATE") || 373 (strtoupper($head1[0]) == "CONTENT-TYPE")) { 374 375 if(strtoupper($head1[0]) == "CONTENT-TYPE"){ 376 $head = str_replace("multipart/mixed","text/html",$head); 377 } 378 $header .= $head."\n"; 379 } 374 380 } 375 381
Note: See TracChangeset
for help on using the changeset viewer.