Quellcode durchsuchen

Made the handle_errors flag to sqimap_mailbox_expunge default to true.

Tyler Akins vor 24 Jahren
Ursprung
Commit
be38c8215d
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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;