From: lkehresman Date: Thu, 10 Aug 2000 15:10:16 +0000 (+0000) Subject: fixed some bugs in the sqimap_mailbox_close() function X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=c95df3808257297105d60595ab869357359a89e7 fixed some bugs in the sqimap_mailbox_close() function git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@697 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/ChangeLog b/ChangeLog index 6d511260..e10cd641 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ Version 0.5pre2 -- DEVELOPMENT ------------------------------ +- Fixed some buggy IMAP handling - Improved word wrapping - Made message highlighting not case sensative - Added French translation from Ali Nedjimi diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 38458263..422638ed 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -36,7 +36,7 @@ ******************************************************************************/ function sqimap_mailbox_close ($imap_stream) { fputs ($imap_stream, "a001 CLOSE\r\n"); - $tmp = sqimap_read_data($imap_stream, "a001", close, $response, $message); + $tmp = sqimap_read_data($imap_stream, "a001", false, $response, $message); } /****************************************************************************** diff --git a/functions/smtp.php b/functions/smtp.php index 8402f282..eecd74fa 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -472,15 +472,16 @@ sqimap_mailbox_select ($imap_stream, $mailbox); sqimap_messages_flag ($imap_stream, $reply_id, $reply_id, "Answered"); - // Insert In-Reply-To and References headers if the - // message-id of the message we reply to is set (longer than "<>") - // The References header should really be the old Referenced header - // with the message ID appended, but it can be only the message ID too. - $hdr = sqimap_get_small_header ($imap_stream, $reply_id, false); - if(strlen($hdr->message_id) > 2) { - $more_headers["In-Reply-To"] = $hdr->message_id; - $more_headers["References"] = $hdr->message_id; - } + // Insert In-Reply-To and References headers if the + // message-id of the message we reply to is set (longer than "<>") + // The References header should really be the old Referenced header + // with the message ID appended, but it can be only the message ID too. + $hdr = sqimap_get_small_header ($imap_stream, $reply_id, false); + if(strlen($hdr->message_id) > 2) { + $more_headers["In-Reply-To"] = $hdr->message_id; + $more_headers["References"] = $hdr->message_id; + } + sqimap_mailbox_close($imap_stream); } if ($useSendmail==true) { @@ -495,7 +496,6 @@ writeBody ($imap_stream, $body); sqimap_append_done ($imap_stream); } - sqimap_mailbox_close($imap_stream); sqimap_logout($imap_stream); // Delete the files uploaded for attaching (if any). deleteAttachments(); diff --git a/src/compose.php b/src/compose.php index e77b3a87..92e4c245 100644 --- a/src/compose.php +++ b/src/compose.php @@ -153,8 +153,8 @@ echo "// -->\n\n"; } - echo "\n
\n"; - //echo "\n\n"; + //echo "\n\n"; + echo "\n\n"; if ($reply_id) { echo "\n"; }