瀏覽代碼

added another fix for the odd addition of newlines

Luke Ehresman 24 年之前
父節點
當前提交
89609943b2
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      functions/smtp.php

+ 2 - 1
functions/smtp.php

@@ -491,7 +491,7 @@
 
       $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 1);
 
-      if ($reply_id) {
+      if ($reply_id = trim($reply_id)) {
          sqimap_mailbox_select ($imap_stream, $mailbox);
          sqimap_messages_flag ($imap_stream, $reply_id, $reply_id, 'Answered');
 
@@ -523,6 +523,7 @@
          $length = sendSMTP($t, $c, $b, $subject, $body, $more_headers);
       }
 
+      $sent_folder = trim($sent_folder);
       if (sqimap_mailbox_exists ($imap_stream, $sent_folder)) {
          sqimap_append ($imap_stream, $sent_folder, $length);
          write822Header ($imap_stream, $t, $c, $b, $subject, $more_headers);