- Timestamp:
- 09/12/08 17:02:14 (16 years ago)
- Location:
- trunk/expressoMail1_2/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r413 r426 326 326 $return['cc'] = ""; 327 327 } 328 328 329 ## 330 # @AUTHOR Rodrigo Souza dos Santos 331 # @DATE 2008/09/12 332 # @BRIEF Adding the BCC field. 333 ## 334 $bcc = $header->bcc; 335 $return['bcc'] = ""; 336 if (!empty($bcc)) 337 { 338 foreach ($bcc as $tmp_bcc) 339 { 340 if (!empty($tmp_bcc->personal)) 341 { 342 $personal_tmp_bcc = imap_mime_header_decode($tmp_bcc->personal); 343 $return['bcc'] .= '"' . $personal_tmp_bcc[0]->text . '"'; 344 $return['bcc'] .= " "; 345 $return['bcc'] .= "<"; 346 $return['bcc'] .= $tmp_bcc->mailbox . "@" . $tmp_bcc->host; 347 $return['bcc'] .= ">"; 348 $return['bcc'] .= ", "; 349 } 350 else 351 { 352 $return['bcc'] .= $tmp_bcc->mailbox . "@" . $tmp_bcc->host; 353 $return['bcc'] .= ", "; 354 } 355 } 356 $return['bcc'] = $this->del_last_two_caracters($return['bcc']); 357 } 358 else 359 { 360 $return['bcc'] = ""; 361 } 362 329 363 $reply_to = $header->reply_to; 330 364 $return['reply_to'] = ""; … … 1304 1338 $fileContent = imap_fetchbody($mbox_stream, $msg_number, $msg_part, FT_UID); 1305 1339 if($encoding == 'base64') 1306 $fileContent = imap_base64($fileContent); 1340 # The function imap_base64 adds a new line 1341 # at ASCII text, with CRLF line terminators. 1342 # So is being exchanged for base64_decode. 1343 # 1344 #$fileContent = imap_base64($fileContent); 1345 $fileContent = base64_decode($fileContent); 1307 1346 else if($encoding == 'quoted-printable') 1308 1347 $fileContent = quoted_printable_decode($fileContent); … … 1962 2001 $toaddress = $params['notificationto']; 1963 2002 1964 $subject = 'Confirma ção de leitura: ' . $params['subject'];2003 $subject = 'Confirmaᅵᅵo de leitura: ' . $params['subject']; 1965 2004 $body = 'Sua mensagem: ' . $params['subject'] . '<br>'; 1966 2005 $body .= 'foi lida por: ' . $_SESSION['phpgw_info']['expressomail']['user']['fullname'] . ' <' . $_SESSION['phpgw_info']['expressomail']['user']['email'] . '> em ' . date("d/m/Y H:i"); … … 2109 2148 function remove_accents($string) { 2110 2149 return strtr($string, 2111 "? Ó??ó?Ý?úÁÀÃÂÄÇÉÈÊËÍÌ?ÎÏÑÕÔÓÒÖÚÙ?ÛÜ?áàãâäçéèêëíì?îïñóòõôöúù?ûüýÿ",2150 "?ï¿œ??ï¿œ?ï¿œ?ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ?ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ?ᅵᅵ?ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ?ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ?ᅵᅵᅵᅵ", 2112 2151 "SOZsozYYuAAAAACEEEEIIIIINOOOOOUUUUUsaaaaaceeeeiiiiinooooouuuuuyy"); 2113 2152 } -
trunk/expressoMail1_2/inc/class.phpmailer.php
r399 r426 541 541 } 542 542 $mbox_stream = imap_open("{".$imap_server.":".$imap_port.$imap_options."}".$this->SaveMessageInFolder, $username, $password); 543 544 ## 545 # @AUTHOR Rodrigo Souza dos Santos 546 # @DATE 2008/09/11 547 # @BRIEF Adding arbitrarily the BCC field. You may need to 548 # check if this field already exists in the header. 549 ## 550 if ( count($this->bcc) > 0 ) 551 { 552 $target = stripos($header, 'subject'); 553 $header = substr($header, 0, $target) . $this->AddrAppend("Bcc", $this->bcc) . substr($header, $target); 554 } 543 555 544 556 $new_header = str_replace("\n", "\r\n", $header);
Note: See TracChangeset
for help on using the changeset viewer.