瀏覽代碼

Made the handle_errors flag to sqimap_mailbox_expunge default to true.

Tyler Akins 24 年之前
父節點
當前提交
be38c8215d
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      functions/imap_mailbox.php
  2. 1 0
      functions/strings.php

+ 1 - 1
functions/imap_mailbox.php

@@ -8,7 +8,7 @@
    /******************************************************************************
     **  Expunges a mailbox 
     ******************************************************************************/
-   function sqimap_mailbox_expunge ($imap_stream, $mailbox,$handle_errors) {
+   function sqimap_mailbox_expunge ($imap_stream, $mailbox,$handle_errors = true) {
       sqimap_mailbox_select ($imap_stream, $mailbox);
       fputs ($imap_stream, "a001 EXPUNGE\r\n");
       $read = sqimap_read_data($imap_stream, "a001", $handle_errors, $response, $message);

+ 1 - 0
functions/strings.php

@@ -106,6 +106,7 @@
    
 
    /** Returns an array of email addresses **/
+   /* Be cautious of "user@host.com" */
    function parseAddrs($text) {
       if (trim($text) == "")
          return;