Changeset 4626
- Timestamp:
- 06/20/11 10:29:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/inc/class.imap_functions.inc.php
r4622 r4626 456 456 $body_part_to_show = '1'; 457 457 458 $status = imap_append($this->mbox, 459 "{".$this->imap_server.":".$this->imap_port.$this->imap_options."}".$params["folder"], 460 $header. 461 "Content-Type: ".$all_body_type."; charset = \"".$all_body_charset."\"". 462 "\r\n". 463 "Content-Transfer-Encoding: ".$all_body_encoding. 464 "\r\n". 465 "\r\n". 466 str_replace("\n","\r\n",$this->decodeBody( 467 imap_fetchbody($this->mbox,imap_msgno($this->mbox, $params["msg_num"]),$body_part_to_show), 468 $all_body_encoding, $all_body_charset 469 ) 470 ), "\\Seen"); //Append do novo email, só com header e conteúdo sem anexos. 458 if (($all_body_charset == "utf-8") && ($all_body_encoding == "base64")){ 459 $status = imap_append($this->mbox, 460 "{".$this->imap_server.":".$this->imap_port.$this->imap_options."}".$params["folder"], 461 $header. 462 "Content-Type: ".$all_body_type."; charset = \"iso-8859-1\"". 463 "\r\n". 464 "Content-Transfer-Encoding: quoted-printable". 465 "\r\n". 466 "\r\n". 467 str_replace("\n","\r\n",$this->decodeBody( 468 imap_fetchbody($this->mbox,imap_msgno($this->mbox, $params["msg_num"]),$body_part_to_show), 469 $all_body_encoding, $all_body_charset 470 ) 471 ) 472 , "\\Seen"); //Append do novo email, só com header e conteúdo sem anexos. 473 }else{ 474 $status = imap_append($this->mbox, 475 "{".$this->imap_server.":".$this->imap_port.$this->imap_options."}".$params["folder"], 476 $header. 477 "Content-Type: ".$all_body_type."; charset = \"".$all_body_charset."\"". 478 "\r\n". 479 "Content-Transfer-Encoding: ".$all_body_encoding. 480 "\r\n". 481 "\r\n". 482 str_replace("\n","\r\n",$this->decodeBody( 483 imap_fetchbody($this->mbox,imap_msgno($this->mbox, $params["msg_num"]),$body_part_to_show), 484 $all_body_encoding, $all_body_charset 485 ) 486 ) 487 , "\\Seen"); //Append do novo email, só com header e conteúdo sem anexos. 488 } 471 489 472 490 if(!$status)
Note: See TracChangeset
for help on using the changeset viewer.