tweaks, fixed some misspellings, added a few hooks
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 14 Sep 2000 12:45:53 +0000 (12:45 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 14 Sep 2000 12:45:53 +0000 (12:45 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@741 7612ce4b-ef26-0410-bec9-ea0150e637f0

doc/plugin.txt
functions/imap_mailbox.php
functions/mailbox_display.php
functions/mime.php
index.php

index fd32cd2..2e8f354 100644 (file)
@@ -90,7 +90,7 @@ List of hooks
   * options_personal_save         src/options_personal.php
   * options_display_bottom        src/options_display.php
   * options_display_inside        src/options_display.php
-  * options_display_sav           src/options_display.php
+  * options_display_save          src/options_display.php
   * options_folders_bottom        src/options_folders.php
   * options_folders_inside        src/options_folders.php
   * options_folders_save          src/options_folders.php
@@ -100,6 +100,7 @@ List of hooks
   loading_prefs                   src/load_prefs.php
   mailbox_index_before            functions/mailbox_display.php
   mailbox_index_after             functions/mailbox_display.php
+  mailbox_form_before             functions/mailbox_display.php
   right_main_after_header         src/right_main.php
   right_main_bottom               src/right_main.php
   login_top                       src/login.php
@@ -114,6 +115,7 @@ List of hooks
   help_chapter                    src/help.php
   abook_html_search_below         src/addrbook_search_html.php
   addressbook_bottom              src/addressbook.php
+  attachment $type0/$type1        functions/mime.php
    
 (*) Options
 -----------
index 26d05d1..e7e4aad 100755 (executable)
@@ -43,6 +43,8 @@
     **  Selects a mailbox
     ******************************************************************************/
    function sqimap_mailbox_select ($imap_stream, $mailbox, $hide=true, $recent=false) {
+      global $auto_expunge;
+      
       fputs ($imap_stream, "a001 SELECT \"$mailbox\"\r\n");
        $read = sqimap_read_data($imap_stream, "a001", true, $response, $message);
       if ($recent) {
          }
          return $r[1];
       }
+      if ($auto_expunge) {
+         fputs ($imap_stream, "a001 EXPUNGE\r\n");
+         $tmp = sqimap_read_data($imap_stream, "a001", $a, $b, true);
+      }   
    }
 
    
index 8924617..87074a0 100644 (file)
       echo "<TR><TD BGCOLOR=\"$color[0]\">";
 
       echo "\n\n\n<FORM name=messageList method=post action=\"move_messages.php?msg=$msg&mailbox=$urlMailbox&startMessage=$startMessage\">";
+      do_hook("mailbox_form_before");
       echo "<TABLE BGCOLOR=\"$color[0]\" COLS=2 BORDER=0 cellpadding=0 cellspacing=0>\n";
       echo "   <TR>\n";
       echo "      <TD WIDTH=60% ALIGN=LEFT VALIGN=CENTER>\n";
index 3bae25a..29ad226 100644 (file)
                if ($message->header->description)
                   $body .= "&nbsp;&nbsp;<b>" . htmlspecialchars($message->header->description)."</b>";
                $body .= "&nbsp;(<a href=\"../src/download.php?absolute_dl=true&passed_id=$id&mailbox=$urlMailbox&passed_ent_id=$ent\">"._("download")."</a>)\n";     
+               do_hook("attachment $type0/$type1");
                $body .= "</TT><BR>";
                $num++;
             }
index 2e5cde8..436e8e2 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,5 +1,5 @@
 <?php
-   include "functions/strings.php";
+   include "./functions/strings.php";
 
    $location = get_location();
    header("Location: $location/src/login.php\n\n");