Просмотр исходного кода

Made the handle_errors flag to sqimap_mailbox_expunge default to true.

Tyler Akins 24 лет назад
Родитель
Сommit
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 
     **  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);
       sqimap_mailbox_select ($imap_stream, $mailbox);
       fputs ($imap_stream, "a001 EXPUNGE\r\n");
       fputs ($imap_stream, "a001 EXPUNGE\r\n");
       $read = sqimap_read_data($imap_stream, "a001", $handle_errors, $response, $message);
       $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 **/
    /** Returns an array of email addresses **/
+   /* Be cautious of "user@host.com" */
    function parseAddrs($text) {
    function parseAddrs($text) {
       if (trim($text) == "")
       if (trim($text) == "")
          return;
          return;