Changeset 830
- Timestamp:
- 05/11/09 15:23:21 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r828 r830 104 104 include_once("class.imap_attachment.inc.php"); 105 105 $imap_attachment = new imap_attachment(); 106 107 106 108 107 109 /*Como eu preciso do atributo Importance para saber se o email é … … 229 231 zip_close($zip); 230 232 } 231 }233 } 232 234 else if(substr($filename,strlen($filename)-4)==".eml") { 233 235 $email = implode("",file($params['FILES'][0]['tmp_name'])); … … 2009 2011 $body = $mail->CreateBody(); 2010 2012 2011 if ($_SESSION['phpgw_info']['expressomail']['email_server']['imapTLSEncryption'] == 'yes') 2012 { 2013 $imap_options = '/tls/novalidate-cert'; 2014 } 2015 else 2016 { 2017 $imap_options = '/notls/novalidate-cert'; 2018 } 2019 $username = $_SESSION['phpgw_info']['expressomail']['user']['userid']; 2020 $password = $_SESSION['phpgw_info']['expressomail']['user']['passwd']; 2021 $imap_server = $_SESSION['phpgw_info']['expressomail']['email_server']['imapServer']; 2022 $imap_port = $_SESSION['phpgw_info']['expressomail']['email_server']['imapPort']; 2023 $mbox_stream = imap_open("{".$imap_server.":".$imap_port.$imap_options."}".$folder, $username, $password); 2024 2013 $mbox_stream = $this->open_mbox($folder); 2025 2014 $new_header = str_replace("\n", "\r\n", $header); 2026 2015 $new_body = str_replace("\n", "\r\n", $body); 2027 2028 $return['append'] = imap_append($mbox_stream, "{".$imap_server.":".$imap_port."}".$folder, $new_header . $new_body, "\\Seen \\Draft"); 2016 $return['append'] = imap_append($mbox_stream, "{".$this->imap_server.":".$this->imap_port."}".$folder, $new_header . $new_body, "\\Seen \\Draft"); 2029 2017 $status = imap_status($mbox_stream, "{".$this->imap_server.":".$this->imap_port."}".$folder, SA_UIDNEXT); 2030 2018 $return['msg_no'] = $status->uidnext - 1;
Note: See TracChangeset
for help on using the changeset viewer.