From c9829b5b6156a48988ad2af40c25fb1f445df01e Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 5 Jul 2002 13:53:52 +0000 Subject: [PATCH] added uid support git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3046 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/smtp.php b/functions/smtp.php index e5f634fc..8caa33be 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -162,10 +162,10 @@ function attachFiles ($fp, $session, $rn="\r\n") { * Check if the last line has newline ($rn) in it * and append if it doesn't. */ - if ($file && feof($file) && !strstr($tmp, "$rn")){ + if ($file && feof($fp) && !strstr($tmp, "$rn")){ $tmp .= $rn; } - if ($fp) { + if ($fp) { fputs($fp, $tmp); } $length += strlen($tmp); @@ -779,7 +779,7 @@ function sendMessage($t, $c, $b, $subject, $body, $reply_id, $MDN, global $useSendmail, $msg_id, $is_reply, $mailbox, $onetimepad, $data_dir, $username, $domain, $key, $version, $sent_folder, $imapServerAddress, $imapPort, $default_use_priority, $more_headers, - $request_mdn, $request_dr; + $request_mdn, $request_dr, $uid_support; $more_headers = Array(); @@ -797,7 +797,7 @@ function sendMessage($t, $c, $b, $subject, $body, $reply_id, $MDN, * The References header should really be the old Referenced header * with the message ID appended, and now it is (jmunro) */ - $sid = sqimap_session_id(); + $sid = sqimap_session_id($uid_support); $query = "$sid FETCH $reply_id (BODY.PEEK[HEADER.FIELDS (Message-Id In-Reply-To)])\r\n"; fputs ($imap_stream, $query); $read = sqimap_read_data($imap_stream, $sid, true, $response, $message); -- 2.25.1