Browse Source

This commit contains several syntax fix.

- Pontus: Don't use tabs 8-)
- Jason, please pay atention at the changes. Mostly
  internationalization stuff and " to ' changes. Also
  leave E_ALL only in PHP.INI into the reporting error options.
  That way you'll get on screen all the compilation warnings
  in order to remove them.
philippe_mingo 23 years ago
parent
commit
8bc0e5a3fb

+ 43 - 42
functions/imap_search.php

@@ -26,26 +26,28 @@ function sqimap_search($imapConnection,$search_where,$search_what,$mailbox,$colo
 
 
     $urlMailbox = urlencode($mailbox);
     $urlMailbox = urlencode($mailbox);
 
 
-    /* Construct the Search QuERY */
+    /*
+        Construct the Search QuERY
 
 
-#  account for multiple search terms
+        account for multiple search terms
+    */
 
 
-        $multi_search = array ();
-        $search_what = ereg_replace("[ ]{2,}", ' ', $search_what);
-        $multi_search = split (' ', $search_what);
-        if (count($multi_search)==1) {
-                $search_string = $search_where . ' ' . '"' . $multi_search[0] . '"';
-        }
-        else {
-                $search_string = '';
-        $count = count($multi_search);
-                for ($x=0;$x<$count;$x++) {
-                	$search_string = $search_string . ' ' . $search_where . " " . '"' . $multi_search[$x] . '" ';
-                }
-        }
-	$search_string = trim($search_string);
+    $multi_search = array ();
+    $search_what = ereg_replace("[ ]{2,}", ' ', $search_what);
+    $multi_search = split (' ', $search_what);
+    if (count($multi_search)==1) {
+            $search_string = $search_where . ' ' . '"' . $multi_search[0] . '"';
+    }
+    else {
+            $search_string = '';
+    $count = count($multi_search);
+            for ($x=0;$x<$count;$x++) {
+                $search_string = $search_string . ' ' . $search_where . ' "' . $multi_search[$x] . '" ';
+            }
+    }
+    $search_string = trim($search_string);
 
 
-# now use $search_string in the imap search
+    /* now use $search_string in the imap search */
 
 
     if (isset($languages[$squirrelmail_language]['CHARSET']) &&
     if (isset($languages[$squirrelmail_language]['CHARSET']) &&
         $languages[$squirrelmail_language]['CHARSET']) {
         $languages[$squirrelmail_language]['CHARSET']) {
@@ -62,7 +64,9 @@ function sqimap_search($imapConnection,$search_where,$search_what,$mailbox,$colo
         $readin = sqimap_run_command ($imapConnection, $ss, true, $result, $message);
         $readin = sqimap_run_command ($imapConnection, $ss, true, $result, $message);
     }
     }
 
 
-    unset($messagelist); $msgs=""; $c = 0;
+    unset($messagelist);
+    $msgs = '';
+    $c = 0;
 
 
     /* Keep going till we find the SEARCH responce */
     /* Keep going till we find the SEARCH responce */
     while ($c < count( $readin )) {
     while ($c < count( $readin )) {
@@ -79,18 +83,15 @@ function sqimap_search($imapConnection,$search_where,$search_what,$mailbox,$colo
 
 
     /* If nothing is found * SEARCH should be the first error else echo errors */
     /* If nothing is found * SEARCH should be the first error else echo errors */
     if (isset($errors) && strstr($errors,"* SEARCH")) {
     if (isset($errors) && strstr($errors,"* SEARCH")) {
-		if ($search_all != "all") {
-        echo '<br><CENTER>' . _("No Messages Found") . '</CENTER>';
-        return;
-		}
-		else {
-        return;
-		}
+        if ($search_all != "all") {
+            echo '<br><CENTER>' . _("No Messages Found") . '</CENTER>';
+            return;
+        }
+        else {
+            return;
+        }
     }
     }
-//	else if ($search_all == 'all') {
-//		return;
-//	}
-	else if (isset($errors)) {
+    else if (isset($errors)) {
         echo "<!-- ".$errors." -->";
         echo "<!-- ".$errors." -->";
     }
     }
 
 
@@ -155,7 +156,7 @@ function sqimap_search($imapConnection,$search_where,$search_what,$mailbox,$colo
     $i = 0;
     $i = 0;
     $j = 0;
     $j = 0;
     while ($j < count($messagelist)) {
     while ($j < count($messagelist)) {
-        if (isset($messages[$j]["FLAG_DELETED"]) && $messages[$j]["FLAG_DELETED"] == true) {
+        if (isset($messages[$j]['FLAG_DELETED']) && $messages[$j]['FLAG_DELETED']) {
             $j++;
             $j++;
             continue;
             continue;
         }
         }
@@ -170,16 +171,16 @@ function sqimap_search($imapConnection,$search_where,$search_what,$mailbox,$colo
 
 
     if (count($messagelist) > 0) {
     if (count($messagelist) > 0) {
         $j=0;
         $j=0;
-        if (!isset ($msg)) { 
-            $msg = ''; 
+        if (!isset ($msg)) {
+            $msg = '';
         }
         }
         if ($search_all != 'all') {
         if ($search_all != 'all') {
-	    if ( !isset( $start_msg ) ) {
-	        $start_msg =0;
-	    }
-	    if ( !isset( $sort ) ) {
-                $sort = 0;
-	    }
+            if ( !isset( $start_msg ) ) {
+                $start_msg =0;
+            }
+            if ( !isset( $sort ) ) {
+                    $sort = 0;
+            }
             mail_message_listing_beginning( $imapConnection,
             mail_message_listing_beginning( $imapConnection,
                 "move_messages.php?msg=$msg&mailbox=$urlMailbox&pos=$pos&where=" . urlencode($search_where) . "&what=".urlencode($search_what),
                 "move_messages.php?msg=$msg&mailbox=$urlMailbox&pos=$pos&where=" . urlencode($search_where) . "&what=".urlencode($search_what),
             $mailbox,
             $mailbox,
@@ -194,16 +195,16 @@ function sqimap_search($imapConnection,$search_where,$search_what,$mailbox,$colo
                 -1,
                 -1,
                 '<b>' . _("Found") . ' ' . count($messagelist) . ' ' . _("messages") . '</b></tr><tr>');
                 '<b>' . _("Found") . ' ' . count($messagelist) . ' ' . _("messages") . '</b></tr><tr>');
         }
         }
-		echo "<b><big>Folder: $mailbox</big></b>";
+        echo '<b><big>' . _("Folder:") . " $mailbox</big></b>";
         while ($j < count($msgs)) {
         while ($j < count($msgs)) {
             printMessageInfo($imapConnection, $msgs[$j]["ID"], 0, $j, $mailbox, '', 0, $search_where, $search_what);
             printMessageInfo($imapConnection, $msgs[$j]["ID"], 0, $j, $mailbox, '', 0, $search_where, $search_what);
             $j++;
             $j++;
-			echo '</td></tr>';
+            echo '</td></tr>';
         }
         }
         echo '</table></td></tr></table></form>';
         echo '</table></td></tr></table></form>';
-		$count_all = count($msgs);
+        $count_all = count($msgs);
     }
     }
-		return $count_all;
+    return $count_all;
 }
 }
 
 
 ?>
 ?>

BIN
locale/es_ES/LC_MESSAGES/squirrelmail.mo


+ 117 - 93
locale/es_ES/LC_MESSAGES/squirrelmail.po

@@ -5,8 +5,8 @@
 msgid ""
 msgid ""
 msgstr ""
 msgstr ""
 "Project-Id-Version: $Id$\n"
 "Project-Id-Version: $Id$\n"
-"POT-Creation-Date: 2002-02-09 19:45+0100\n"
-"PO-Revision-Date: 2002-02-09 19:48GMT+1\n"
+"POT-Creation-Date: 2002-02-10 09:57+0100\n"
+"PO-Revision-Date: 2002-02-10 09:58GMT+1\n"
 "Last-Translator: Philippe Mingo <philippe@squirrelmail.org>\n"
 "Last-Translator: Philippe Mingo <philippe@squirrelmail.org>\n"
 "Language-Team: Spanish <squirrelmail-i18n@lists.sourceforge.net>\n"
 "Language-Team: Spanish <squirrelmail-i18n@lists.sourceforge.net>\n"
 "MIME-Version: 1.0\n"
 "MIME-Version: 1.0\n"
@@ -48,13 +48,13 @@ msgstr "Origen"
 #: squirrelmail/src/download.php:139
 #: squirrelmail/src/download.php:139
 #: squirrelmail/src/options_highlight.php:325
 #: squirrelmail/src/options_highlight.php:325
 #: squirrelmail/src/printer_friendly_bottom.php:96
 #: squirrelmail/src/printer_friendly_bottom.php:96
-#: squirrelmail/src/search.php:339
+#: squirrelmail/src/search.php:344
 msgid "To"
 msgid "To"
 msgstr "Para"
 msgstr "Para"
 
 
 #: squirrelmail/plugins/filters/options.php:91
 #: squirrelmail/plugins/filters/options.php:91
 #: squirrelmail/src/addrbook_search_html.php:84
 #: squirrelmail/src/addrbook_search_html.php:84
-#: squirrelmail/src/options_highlight.php:328 squirrelmail/src/search.php:338
+#: squirrelmail/src/options_highlight.php:328 squirrelmail/src/search.php:343
 msgid "Cc"
 msgid "Cc"
 msgstr "Cc"
 msgstr "Cc"
 
 
@@ -88,7 +88,10 @@ msgstr "Todos los libros de direcciones"
 #: squirrelmail/functions/page_header.php:130
 #: squirrelmail/functions/page_header.php:130
 #: squirrelmail/src/addrbook_search.php:191
 #: squirrelmail/src/addrbook_search.php:191
 #: squirrelmail/src/addrbook_search_html.php:151
 #: squirrelmail/src/addrbook_search_html.php:151
-#: squirrelmail/src/search.php:202
+#: squirrelmail/src/search.php:178 squirrelmail/src/search.php:189
+#: squirrelmail/src/search.php:207 squirrelmail/src/search.php:348
+#: squirrelmail/src/search.php:373 squirrelmail/src/search.php:394
+#: squirrelmail/src/search.php:404
 msgid "Search"
 msgid "Search"
 msgstr "Buscar"
 msgstr "Buscar"
 
 
@@ -210,7 +213,7 @@ msgstr "Mensaje Original"
 #: squirrelmail/src/options_highlight.php:334
 #: squirrelmail/src/options_highlight.php:334
 #: squirrelmail/src/options_order.php:40
 #: squirrelmail/src/options_order.php:40
 #: squirrelmail/src/printer_friendly_bottom.php:101
 #: squirrelmail/src/printer_friendly_bottom.php:101
-#: squirrelmail/src/search.php:336
+#: squirrelmail/src/search.php:341
 msgid "Subject"
 msgid "Subject"
 msgstr "Asunto"
 msgstr "Asunto"
 
 
@@ -221,7 +224,7 @@ msgstr "Asunto"
 #: squirrelmail/src/options_highlight.php:322
 #: squirrelmail/src/options_highlight.php:322
 #: squirrelmail/src/options_order.php:38
 #: squirrelmail/src/options_order.php:38
 #: squirrelmail/src/printer_friendly_bottom.php:95
 #: squirrelmail/src/printer_friendly_bottom.php:95
-#: squirrelmail/src/search.php:337
+#: squirrelmail/src/search.php:342
 msgid "From"
 msgid "From"
 msgstr "De"
 msgstr "De"
 
 
@@ -233,90 +236,98 @@ msgid "Date"
 msgstr "Fecha"
 msgstr "Fecha"
 
 
 #: squirrelmail/plugins/listcommands/mailout.php:50
 #: squirrelmail/plugins/listcommands/mailout.php:50
-#: squirrelmail/src/compose.php:465 squirrelmail/src/read_body.php:712
+#: squirrelmail/src/compose.php:465 squirrelmail/src/read_body.php:710
 msgid "From:"
 msgid "From:"
 msgstr "De:"
 msgstr "De:"
 
 
-#: squirrelmail/src/compose.php:492 squirrelmail/src/read_body.php:183
-#: squirrelmail/src/read_body.php:729
+#: squirrelmail/src/compose.php:493 squirrelmail/src/read_body.php:181
+#: squirrelmail/src/read_body.php:727
 msgid "To:"
 msgid "To:"
 msgstr "Para:"
 msgstr "Para:"
 
 
-#: squirrelmail/src/compose.php:500
+#: squirrelmail/src/compose.php:501
 msgid "CC:"
 msgid "CC:"
 msgstr "CC:"
 msgstr "CC:"
 
 
-#: squirrelmail/src/compose.php:508
+#: squirrelmail/src/compose.php:509
 msgid "BCC:"
 msgid "BCC:"
 msgstr "BCC:"
 msgstr "BCC:"
 
 
-#: squirrelmail/src/compose.php:515 squirrelmail/src/read_body.php:184
-#: squirrelmail/src/read_body.php:683
+#: squirrelmail/src/compose.php:516 squirrelmail/src/read_body.php:182
+#: squirrelmail/src/read_body.php:681
 msgid "Subject:"
 msgid "Subject:"
 msgstr "Asunto:"
 msgstr "Asunto:"
 
 
-#: squirrelmail/src/compose.php:560 squirrelmail/src/compose.php:623
+#: squirrelmail/src/compose.php:561 squirrelmail/src/compose.php:644
 msgid "Send"
 msgid "Send"
 msgstr "Enviar"
 msgstr "Enviar"
 
 
-#: squirrelmail/src/compose.php:566
+#: squirrelmail/src/compose.php:567
 msgid "Attach:"
 msgid "Attach:"
 msgstr "Adjunto:"
 msgstr "Adjunto:"
 
 
-#: squirrelmail/src/compose.php:571 squirrelmail/src/options_order.php:126
+#: squirrelmail/src/compose.php:572 squirrelmail/src/options_order.php:126
 msgid "Add"
 msgid "Add"
 msgstr "Agregar"
 msgstr "Agregar"
 
 
-#: squirrelmail/src/compose.php:587
+#: squirrelmail/src/compose.php:589
 msgid "Delete selected attachments"
 msgid "Delete selected attachments"
 msgstr "Borrar Adjuntos Seleccionados"
 msgstr "Borrar Adjuntos Seleccionados"
 
 
-#: squirrelmail/functions/page_header.php:124 squirrelmail/src/compose.php:613
-#: squirrelmail/src/compose.php:617 squirrelmail/src/compose.php:621
-msgid "Addresses"
-msgstr "Direcciones"
-
-#: squirrelmail/src/compose.php:626
-msgid "Save Draft"
-msgstr "Guardar Borrador"
-
-#: squirrelmail/src/compose.php:632 squirrelmail/src/read_body.php:759
+#: squirrelmail/src/compose.php:616 squirrelmail/src/read_body.php:757
 msgid "Priority"
 msgid "Priority"
 msgstr "Prioridad"
 msgstr "Prioridad"
 
 
 #: squirrelmail/plugins/administrator/defines.php:191
 #: squirrelmail/plugins/administrator/defines.php:191
 #: squirrelmail/plugins/calendar/functions.php:98
 #: squirrelmail/plugins/calendar/functions.php:98
-#: squirrelmail/src/compose.php:633 squirrelmail/src/read_body.php:570
+#: squirrelmail/src/compose.php:617 squirrelmail/src/read_body.php:568
 msgid "High"
 msgid "High"
 msgstr "Alta"
 msgstr "Alta"
 
 
 #: squirrelmail/plugins/calendar/functions.php:97
 #: squirrelmail/plugins/calendar/functions.php:97
-#: squirrelmail/src/compose.php:634 squirrelmail/src/read_body.php:583
+#: squirrelmail/src/compose.php:618 squirrelmail/src/read_body.php:581
 msgid "Normal"
 msgid "Normal"
 msgstr "Normal"
 msgstr "Normal"
 
 
 #: squirrelmail/plugins/administrator/defines.php:188
 #: squirrelmail/plugins/administrator/defines.php:188
-#: squirrelmail/src/compose.php:635 squirrelmail/src/read_body.php:576
+#: squirrelmail/src/compose.php:619 squirrelmail/src/read_body.php:574
 msgid "Low"
 msgid "Low"
 msgstr "Baja"
 msgstr "Baja"
 
 
-#: squirrelmail/src/compose.php:642
-msgid "Confirm reading:"
-msgstr "Confirmar lectura:"
+#: squirrelmail/src/compose.php:625
+msgid "Receipt"
+msgstr "Confirmación"
 
 
-#: squirrelmail/src/compose.php:664
+#: squirrelmail/src/compose.php:626
+msgid "On read"
+msgstr "De lectura"
+
+#: squirrelmail/src/compose.php:627
+msgid "On Delivery"
+msgstr "De entrega"
+
+#: squirrelmail/functions/page_header.php:124 squirrelmail/src/compose.php:634
+#: squirrelmail/src/compose.php:638 squirrelmail/src/compose.php:642
+msgid "Addresses"
+msgstr "Direcciones"
+
+#: squirrelmail/src/compose.php:647
+msgid "Save Draft"
+msgstr "Guardar Borrador"
+
+#: squirrelmail/src/compose.php:666
 msgid "You have not filled in the \"To:\" field."
 msgid "You have not filled in the \"To:\" field."
 msgstr "No ha completado el campo \"Para:\""
 msgstr "No ha completado el campo \"Para:\""
 
 
-#: squirrelmail/src/compose.php:749
+#: squirrelmail/src/compose.php:751
 msgid "said"
 msgid "said"
 msgstr "dijo"
 msgstr "dijo"
 
 
-#: squirrelmail/src/compose.php:752
+#: squirrelmail/src/compose.php:754
 msgid "quote"
 msgid "quote"
 msgstr "cita"
 msgstr "cita"
 
 
-#: squirrelmail/src/compose.php:752
+#: squirrelmail/src/compose.php:754
 msgid "who"
 msgid "who"
 msgstr "quien"
 msgstr "quien"
 
 
@@ -326,7 +337,7 @@ msgstr "Ver un texto adosado"
 
 
 #: squirrelmail/src/download.php:34 squirrelmail/src/download.php:36
 #: squirrelmail/src/download.php:34 squirrelmail/src/download.php:36
 #: squirrelmail/src/image.php:31 squirrelmail/src/image.php:35
 #: squirrelmail/src/image.php:31 squirrelmail/src/image.php:35
-#: squirrelmail/src/read_body.php:306 squirrelmail/src/vcard.php:35
+#: squirrelmail/src/read_body.php:304 squirrelmail/src/vcard.php:35
 #: squirrelmail/src/vcard.php:39
 #: squirrelmail/src/vcard.php:39
 msgid "View message"
 msgid "View message"
 msgstr "Ver el mensaje"
 msgstr "Ver el mensaje"
@@ -415,7 +426,7 @@ msgstr "Borrar Carpeta"
 #: squirrelmail/plugins/mail_fetch/options.php:170
 #: squirrelmail/plugins/mail_fetch/options.php:170
 #: squirrelmail/src/folders.php:190 squirrelmail/src/options_highlight.php:76
 #: squirrelmail/src/folders.php:190 squirrelmail/src/options_highlight.php:76
 #: squirrelmail/src/options_identities.php:305
 #: squirrelmail/src/options_identities.php:305
-#: squirrelmail/src/read_body.php:619
+#: squirrelmail/src/read_body.php:617
 msgid "Delete"
 msgid "Delete"
 msgstr "Borrar"
 msgstr "Borrar"
 
 
@@ -482,7 +493,7 @@ msgstr "Tabla de Contenidos"
 #: squirrelmail/plugins/delete_move_next/setup.php:149
 #: squirrelmail/plugins/delete_move_next/setup.php:149
 #: squirrelmail/plugins/delete_move_next/setup.php:151
 #: squirrelmail/plugins/delete_move_next/setup.php:151
 #: squirrelmail/src/help.php:185 squirrelmail/src/help.php:189
 #: squirrelmail/src/help.php:185 squirrelmail/src/help.php:189
-#: squirrelmail/src/read_body.php:641 squirrelmail/src/read_body.php:643
+#: squirrelmail/src/read_body.php:639 squirrelmail/src/read_body.php:641
 msgid "Previous"
 msgid "Previous"
 msgstr "Anterior"
 msgstr "Anterior"
 
 
@@ -492,7 +503,7 @@ msgstr "Anterior"
 #: squirrelmail/plugins/delete_move_next/setup.php:154
 #: squirrelmail/plugins/delete_move_next/setup.php:154
 #: squirrelmail/plugins/delete_move_next/setup.php:156
 #: squirrelmail/plugins/delete_move_next/setup.php:156
 #: squirrelmail/src/help.php:193 squirrelmail/src/help.php:196
 #: squirrelmail/src/help.php:193 squirrelmail/src/help.php:196
-#: squirrelmail/src/read_body.php:647 squirrelmail/src/read_body.php:649
+#: squirrelmail/src/read_body.php:645 squirrelmail/src/read_body.php:647
 msgid "Next"
 msgid "Next"
 msgstr "Siguiente"
 msgstr "Siguiente"
 
 
@@ -508,7 +519,7 @@ msgstr "Viendo una imagen adjunta"
 #: squirrelmail/functions/page_header.php:103
 #: squirrelmail/functions/page_header.php:103
 #: squirrelmail/plugins/mail_fetch/options.php:137
 #: squirrelmail/plugins/mail_fetch/options.php:137
 #: squirrelmail/plugins/mail_fetch/options.php:214
 #: squirrelmail/plugins/mail_fetch/options.php:214
-#: squirrelmail/src/left_main.php:73 squirrelmail/src/search.php:305
+#: squirrelmail/src/left_main.php:73 squirrelmail/src/search.php:310
 msgid "INBOX"
 msgid "INBOX"
 msgstr "ENTRADA"
 msgstr "ENTRADA"
 
 
@@ -1186,52 +1197,56 @@ msgstr "Cerrar Ventana"
 msgid "View Printable Version"
 msgid "View Printable Version"
 msgstr "Vista Preliminar"
 msgstr "Vista Preliminar"
 
 
-#: squirrelmail/src/read_body.php:182
+#: squirrelmail/src/read_body.php:180
 msgid "Your message"
 msgid "Your message"
 msgstr "Su mensaje"
 msgstr "Su mensaje"
 
 
-#: squirrelmail/src/read_body.php:185
+#: squirrelmail/src/read_body.php:183
 msgid "Sent:"
 msgid "Sent:"
 msgstr "Enviado:"
 msgstr "Enviado:"
 
 
-#: squirrelmail/src/read_body.php:187
+#: squirrelmail/src/read_body.php:185
 #, c-format
 #, c-format
 msgid "Was displayed on %s"
 msgid "Was displayed on %s"
 msgstr "Se mostró el %s"
 msgstr "Se mostró el %s"
 
 
-#: squirrelmail/src/read_body.php:298
+#: squirrelmail/src/read_body.php:222
+msgid "Read:"
+msgstr "Leído:"
+
+#: squirrelmail/src/read_body.php:296
 msgid "Viewing Full Header"
 msgid "Viewing Full Header"
 msgstr "Ver Encabezados Completos"
 msgstr "Ver Encabezados Completos"
 
 
-#: squirrelmail/src/read_body.php:434
+#: squirrelmail/src/read_body.php:432
 msgid "more"
 msgid "more"
 msgstr "mas"
 msgstr "mas"
 
 
-#: squirrelmail/src/read_body.php:435
+#: squirrelmail/src/read_body.php:433
 msgid "less"
 msgid "less"
 msgstr "menos"
 msgstr "menos"
 
 
-#: squirrelmail/src/read_body.php:611
+#: squirrelmail/src/read_body.php:609
 msgid "Message List"
 msgid "Message List"
 msgstr "Lista de Mensajes"
 msgstr "Lista de Mensajes"
 
 
-#: squirrelmail/src/read_body.php:623
+#: squirrelmail/src/read_body.php:621
 msgid "Resume Draft"
 msgid "Resume Draft"
 msgstr "Recuperar Borrador"
 msgstr "Recuperar Borrador"
 
 
-#: squirrelmail/src/read_body.php:660
+#: squirrelmail/src/read_body.php:658
 msgid "Forward"
 msgid "Forward"
 msgstr "Reenviar"
 msgstr "Reenviar"
 
 
-#: squirrelmail/src/read_body.php:665
+#: squirrelmail/src/read_body.php:663
 msgid "Reply"
 msgid "Reply"
 msgstr "Responder"
 msgstr "Responder"
 
 
-#: squirrelmail/src/read_body.php:670
+#: squirrelmail/src/read_body.php:668
 msgid "Reply All"
 msgid "Reply All"
 msgstr "Responder a Todos"
 msgstr "Responder a Todos"
 
 
-#: squirrelmail/src/read_body.php:694 squirrelmail/src/read_body.php:697
+#: squirrelmail/src/read_body.php:692 squirrelmail/src/read_body.php:695
 msgid "View Full Header"
 msgid "View Full Header"
 msgstr "Ver Encabezado Completo"
 msgstr "Ver Encabezado Completo"
 
 
@@ -1240,47 +1255,47 @@ msgstr "Ver Encabezado Completo"
 #: squirrelmail/plugins/calendar/event_edit.php:35
 #: squirrelmail/plugins/calendar/event_edit.php:35
 #: squirrelmail/plugins/calendar/event_edit.php:93
 #: squirrelmail/plugins/calendar/event_edit.php:93
 #: squirrelmail/plugins/calendar/event_edit.php:106
 #: squirrelmail/plugins/calendar/event_edit.php:106
-#: squirrelmail/src/read_body.php:720
+#: squirrelmail/src/read_body.php:718
 msgid "Date:"
 msgid "Date:"
 msgstr "Fecha:"
 msgstr "Fecha:"
 
 
-#: squirrelmail/src/read_body.php:774
+#: squirrelmail/src/read_body.php:772
 msgid "Mailer"
 msgid "Mailer"
 msgstr "Cliente"
 msgstr "Cliente"
 
 
-#: squirrelmail/src/read_body.php:812 squirrelmail/src/read_body.php:822
-#: squirrelmail/src/read_body.php:833 squirrelmail/src/read_body.php:845
-#: squirrelmail/src/read_body.php:870 squirrelmail/src/read_body.php:905
-#: squirrelmail/src/read_body.php:913 squirrelmail/src/read_body.php:927
+#: squirrelmail/src/read_body.php:810 squirrelmail/src/read_body.php:820
+#: squirrelmail/src/read_body.php:831 squirrelmail/src/read_body.php:843
+#: squirrelmail/src/read_body.php:868 squirrelmail/src/read_body.php:903
+#: squirrelmail/src/read_body.php:911 squirrelmail/src/read_body.php:925
 msgid "Read receipt"
 msgid "Read receipt"
 msgstr "Confirmación de lectura"
 msgstr "Confirmación de lectura"
 
 
-#: squirrelmail/src/read_body.php:815 squirrelmail/src/read_body.php:824
-#: squirrelmail/src/read_body.php:907 squirrelmail/src/read_body.php:915
+#: squirrelmail/src/read_body.php:813 squirrelmail/src/read_body.php:822
+#: squirrelmail/src/read_body.php:905 squirrelmail/src/read_body.php:913
 msgid "send"
 msgid "send"
 msgstr "enviada"
 msgstr "enviada"
 
 
-#: squirrelmail/src/read_body.php:816 squirrelmail/src/read_body.php:907
+#: squirrelmail/src/read_body.php:814 squirrelmail/src/read_body.php:905
 msgid "Remove MDN flag"
 msgid "Remove MDN flag"
 msgstr "Eliminar señal de envio"
 msgstr "Eliminar señal de envio"
 
 
-#: squirrelmail/src/read_body.php:835 squirrelmail/src/read_body.php:847
-#: squirrelmail/src/read_body.php:872 squirrelmail/src/read_body.php:929
+#: squirrelmail/src/read_body.php:833 squirrelmail/src/read_body.php:845
+#: squirrelmail/src/read_body.php:870 squirrelmail/src/read_body.php:927
 msgid "requested"
 msgid "requested"
 msgstr "solicitada"
 msgstr "solicitada"
 
 
-#: squirrelmail/src/read_body.php:848 squirrelmail/src/read_body.php:873
-#: squirrelmail/src/read_body.php:930
+#: squirrelmail/src/read_body.php:846 squirrelmail/src/read_body.php:871
+#: squirrelmail/src/read_body.php:928
 msgid "Send read receipt now"
 msgid "Send read receipt now"
 msgstr "Emitir confirmación de lectura"
 msgstr "Emitir confirmación de lectura"
 
 
-#: squirrelmail/src/read_body.php:860
+#: squirrelmail/src/read_body.php:858
 msgid ""
 msgid ""
 "The message sender has requested a response to indicate that you have read "
 "The message sender has requested a response to indicate that you have read "
 "this message. Would you like to send a receipt?"
 "this message. Would you like to send a receipt?"
 msgstr ""
 msgstr ""
-"El emisor del mensaje ha solicitado una contestación que indique que ha leido este mensaje. "
-"¿Desea mandarla ahora?"
+"El emisor del mensaje ha solicitado una contestación que indique que ha "
+"leido este mensaje. ¿Desea mandarla ahora?"
 
 
 #: squirrelmail/functions/auth.php:33 squirrelmail/src/redirect.php:60
 #: squirrelmail/functions/auth.php:33 squirrelmail/src/redirect.php:60
 #: squirrelmail/src/redirect.php:64
 #: squirrelmail/src/redirect.php:64
@@ -1299,43 +1314,43 @@ msgstr "Se ha producido un error contactando con el servidor."
 msgid "Contact your administrator for help."
 msgid "Contact your administrator for help."
 msgstr "Contacte con su administrador."
 msgstr "Contacte con su administrador."
 
 
-#: squirrelmail/src/search.php:237
+#: squirrelmail/src/search.php:242
 msgid "edit"
 msgid "edit"
 msgstr "editar"
 msgstr "editar"
 
 
-#: squirrelmail/src/search.php:244 squirrelmail/src/search.php:283
+#: squirrelmail/src/search.php:249 squirrelmail/src/search.php:288
 msgid "search"
 msgid "search"
 msgstr "buscar"
 msgstr "buscar"
 
 
-#: squirrelmail/src/search.php:247
+#: squirrelmail/src/search.php:252
 msgid "delete"
 msgid "delete"
 msgstr "borrar"
 msgstr "borrar"
 
 
-#: squirrelmail/src/search.php:275
+#: squirrelmail/src/search.php:280
 msgid "save"
 msgid "save"
 msgstr "guardar"
 msgstr "guardar"
 
 
-#: squirrelmail/src/search.php:286
+#: squirrelmail/src/search.php:291
 msgid "forget"
 msgid "forget"
 msgstr "olvidar"
 msgstr "olvidar"
 
 
-#: squirrelmail/src/search.php:295
+#: squirrelmail/src/search.php:300
 msgid "Current Search"
 msgid "Current Search"
 msgstr "Búsqueda Actual"
 msgstr "Búsqueda Actual"
 
 
-#: squirrelmail/src/search.php:334
+#: squirrelmail/src/search.php:339
 msgid "Body"
 msgid "Body"
 msgstr "Cuerpo"
 msgstr "Cuerpo"
 
 
-#: squirrelmail/src/search.php:335
+#: squirrelmail/src/search.php:340
 msgid "Everywhere"
 msgid "Everywhere"
 msgstr "Todos lados"
 msgstr "Todos lados"
 
 
-#: squirrelmail/src/search.php:362 squirrelmail/src/search.php:391
+#: squirrelmail/src/search.php:367 squirrelmail/src/search.php:396
 msgid "Search Results"
 msgid "Search Results"
 msgstr "Resultado de la búsqueda"
 msgstr "Resultado de la búsqueda"
 
 
-#: squirrelmail/src/search.php:382
+#: squirrelmail/src/search.php:387
 msgid "No Messages found"
 msgid "No Messages found"
 msgstr "No se encontraron mensajes"
 msgstr "No se encontraron mensajes"
 
 
@@ -1649,7 +1664,7 @@ msgid "Preference database error (%s). Exiting abnormally"
 msgstr "Archivo de preferencias %s no encontrado. Saliendo anormalmente."
 msgstr "Archivo de preferencias %s no encontrado. Saliendo anormalmente."
 
 
 #: squirrelmail/functions/display_messages.php:28
 #: squirrelmail/functions/display_messages.php:28
-#: squirrelmail/functions/imap_general.php:245
+#: squirrelmail/functions/imap_general.php:249
 msgid "Unknown user or password incorrect."
 msgid "Unknown user or password incorrect."
 msgstr "Usuario o contraseña incorrecto."
 msgstr "Usuario o contraseña incorrecto."
 
 
@@ -1711,36 +1726,41 @@ msgid "ERROR : Could not complete request."
 msgstr "ERROR: No se pudo completar el pedido."
 msgstr "ERROR: No se pudo completar el pedido."
 
 
 #: squirrelmail/functions/imap_general.php:158
 #: squirrelmail/functions/imap_general.php:158
+#: squirrelmail/functions/imap_general.php:169
+msgid "Query:"
+msgstr "Consulta:"
+
+#: squirrelmail/functions/imap_general.php:160
 #: squirrelmail/plugins/filters/filters.php:91
 #: squirrelmail/plugins/filters/filters.php:91
 msgid "Reason Given: "
 msgid "Reason Given: "
 msgstr "Razón dada: "
 msgstr "Razón dada: "
 
 
-#: squirrelmail/functions/imap_general.php:165
+#: squirrelmail/functions/imap_general.php:167
 #: squirrelmail/plugins/filters/filters.php:98
 #: squirrelmail/plugins/filters/filters.php:98
 msgid "ERROR : Bad or malformed request."
 msgid "ERROR : Bad or malformed request."
 msgstr "ERROR: pedido erroneo o con formato erroneo."
 msgstr "ERROR: pedido erroneo o con formato erroneo."
 
 
-#: squirrelmail/functions/imap_general.php:167
+#: squirrelmail/functions/imap_general.php:171
 #: squirrelmail/plugins/filters/filters.php:100
 #: squirrelmail/plugins/filters/filters.php:100
 msgid "Server responded: "
 msgid "Server responded: "
 msgstr "El servidor respondió: "
 msgstr "El servidor respondió: "
 
 
-#: squirrelmail/functions/imap_general.php:204
+#: squirrelmail/functions/imap_general.php:208
 #, c-format
 #, c-format
 msgid "Error connecting to IMAP server: %s."
 msgid "Error connecting to IMAP server: %s."
 msgstr "Error conectando al servidor IMAP: %s."
 msgstr "Error conectando al servidor IMAP: %s."
 
 
-#: squirrelmail/functions/imap_general.php:220
+#: squirrelmail/functions/imap_general.php:224
 #, c-format
 #, c-format
 msgid "Bad request: %s"
 msgid "Bad request: %s"
 msgstr "Pedido Erroneo: %s"
 msgstr "Pedido Erroneo: %s"
 
 
-#: squirrelmail/functions/imap_general.php:222
+#: squirrelmail/functions/imap_general.php:226
 #, c-format
 #, c-format
 msgid "Unknown error: %s"
 msgid "Unknown error: %s"
 msgstr "Error desconocido: %s"
 msgstr "Error desconocido: %s"
 
 
-#: squirrelmail/functions/imap_general.php:224
+#: squirrelmail/functions/imap_general.php:228
 msgid "Read data:"
 msgid "Read data:"
 msgstr "Leer datos:"
 msgstr "Leer datos:"
 
 
@@ -1778,20 +1798,24 @@ msgstr "Sin destinatario"
 msgid "(unknown sender)"
 msgid "(unknown sender)"
 msgstr "(remitente desconocido)"
 msgstr "(remitente desconocido)"
 
 
-#: squirrelmail/functions/imap_search.php:83
+#: squirrelmail/functions/imap_search.php:87
 msgid "No Messages Found"
 msgid "No Messages Found"
 msgstr "No se Encontraron Mensajes"
 msgstr "No se Encontraron Mensajes"
 
 
-#: squirrelmail/functions/imap_search.php:187
-#: squirrelmail/functions/imap_search.php:195
+#: squirrelmail/functions/imap_search.php:188
+#: squirrelmail/functions/imap_search.php:196
 msgid "Found"
 msgid "Found"
 msgstr "Encontrado"
 msgstr "Encontrado"
 
 
-#: squirrelmail/functions/imap_search.php:187
-#: squirrelmail/functions/imap_search.php:195
+#: squirrelmail/functions/imap_search.php:188
+#: squirrelmail/functions/imap_search.php:196
 msgid "messages"
 msgid "messages"
 msgstr "mensajes"
 msgstr "mensajes"
 
 
+#: squirrelmail/functions/imap_search.php:198
+msgid "Folder:"
+msgstr "Carpeta:"
+
 #: squirrelmail/functions/mailbox_display.php:156
 #: squirrelmail/functions/mailbox_display.php:156
 msgid "A"
 msgid "A"
 msgstr "C"
 msgstr "C"

+ 113 - 89
po/squirrelmail.po

@@ -6,7 +6,7 @@
 msgid ""
 msgid ""
 msgstr ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2002-02-09 19:45+0100\n"
+"POT-Creation-Date: 2002-02-10 09:57+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -48,13 +48,13 @@ msgstr ""
 #: squirrelmail/src/download.php:139
 #: squirrelmail/src/download.php:139
 #: squirrelmail/src/options_highlight.php:325
 #: squirrelmail/src/options_highlight.php:325
 #: squirrelmail/src/printer_friendly_bottom.php:96
 #: squirrelmail/src/printer_friendly_bottom.php:96
-#: squirrelmail/src/search.php:339
+#: squirrelmail/src/search.php:344
 msgid "To"
 msgid "To"
 msgstr ""
 msgstr ""
 
 
 #: squirrelmail/plugins/filters/options.php:91
 #: squirrelmail/plugins/filters/options.php:91
 #: squirrelmail/src/addrbook_search_html.php:84
 #: squirrelmail/src/addrbook_search_html.php:84
-#: squirrelmail/src/options_highlight.php:328 squirrelmail/src/search.php:338
+#: squirrelmail/src/options_highlight.php:328 squirrelmail/src/search.php:343
 msgid "Cc"
 msgid "Cc"
 msgstr ""
 msgstr ""
 
 
@@ -88,7 +88,10 @@ msgstr ""
 #: squirrelmail/functions/page_header.php:130
 #: squirrelmail/functions/page_header.php:130
 #: squirrelmail/src/addrbook_search.php:191
 #: squirrelmail/src/addrbook_search.php:191
 #: squirrelmail/src/addrbook_search_html.php:151
 #: squirrelmail/src/addrbook_search_html.php:151
-#: squirrelmail/src/search.php:202
+#: squirrelmail/src/search.php:178 squirrelmail/src/search.php:189
+#: squirrelmail/src/search.php:207 squirrelmail/src/search.php:348
+#: squirrelmail/src/search.php:373 squirrelmail/src/search.php:394
+#: squirrelmail/src/search.php:404
 msgid "Search"
 msgid "Search"
 msgstr ""
 msgstr ""
 
 
@@ -210,7 +213,7 @@ msgstr ""
 #: squirrelmail/src/options_highlight.php:334
 #: squirrelmail/src/options_highlight.php:334
 #: squirrelmail/src/options_order.php:40
 #: squirrelmail/src/options_order.php:40
 #: squirrelmail/src/printer_friendly_bottom.php:101
 #: squirrelmail/src/printer_friendly_bottom.php:101
-#: squirrelmail/src/search.php:336
+#: squirrelmail/src/search.php:341
 msgid "Subject"
 msgid "Subject"
 msgstr ""
 msgstr ""
 
 
@@ -221,7 +224,7 @@ msgstr ""
 #: squirrelmail/src/options_highlight.php:322
 #: squirrelmail/src/options_highlight.php:322
 #: squirrelmail/src/options_order.php:38
 #: squirrelmail/src/options_order.php:38
 #: squirrelmail/src/printer_friendly_bottom.php:95
 #: squirrelmail/src/printer_friendly_bottom.php:95
-#: squirrelmail/src/search.php:337
+#: squirrelmail/src/search.php:342
 msgid "From"
 msgid "From"
 msgstr ""
 msgstr ""
 
 
@@ -233,90 +236,98 @@ msgid "Date"
 msgstr ""
 msgstr ""
 
 
 #: squirrelmail/plugins/listcommands/mailout.php:50
 #: squirrelmail/plugins/listcommands/mailout.php:50
-#: squirrelmail/src/compose.php:465 squirrelmail/src/read_body.php:712
+#: squirrelmail/src/compose.php:465 squirrelmail/src/read_body.php:710
 msgid "From:"
 msgid "From:"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/compose.php:492 squirrelmail/src/read_body.php:183
-#: squirrelmail/src/read_body.php:729
+#: squirrelmail/src/compose.php:493 squirrelmail/src/read_body.php:181
+#: squirrelmail/src/read_body.php:727
 msgid "To:"
 msgid "To:"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/compose.php:500
+#: squirrelmail/src/compose.php:501
 msgid "CC:"
 msgid "CC:"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/compose.php:508
+#: squirrelmail/src/compose.php:509
 msgid "BCC:"
 msgid "BCC:"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/compose.php:515 squirrelmail/src/read_body.php:184
-#: squirrelmail/src/read_body.php:683
+#: squirrelmail/src/compose.php:516 squirrelmail/src/read_body.php:182
+#: squirrelmail/src/read_body.php:681
 msgid "Subject:"
 msgid "Subject:"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/compose.php:560 squirrelmail/src/compose.php:623
+#: squirrelmail/src/compose.php:561 squirrelmail/src/compose.php:644
 msgid "Send"
 msgid "Send"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/compose.php:566
+#: squirrelmail/src/compose.php:567
 msgid "Attach:"
 msgid "Attach:"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/compose.php:571 squirrelmail/src/options_order.php:126
+#: squirrelmail/src/compose.php:572 squirrelmail/src/options_order.php:126
 msgid "Add"
 msgid "Add"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/compose.php:587
+#: squirrelmail/src/compose.php:589
 msgid "Delete selected attachments"
 msgid "Delete selected attachments"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/functions/page_header.php:124 squirrelmail/src/compose.php:613
-#: squirrelmail/src/compose.php:617 squirrelmail/src/compose.php:621
-msgid "Addresses"
-msgstr ""
-
-#: squirrelmail/src/compose.php:626
-msgid "Save Draft"
-msgstr ""
-
-#: squirrelmail/src/compose.php:632 squirrelmail/src/read_body.php:759
+#: squirrelmail/src/compose.php:616 squirrelmail/src/read_body.php:757
 msgid "Priority"
 msgid "Priority"
 msgstr ""
 msgstr ""
 
 
 #: squirrelmail/plugins/administrator/defines.php:191
 #: squirrelmail/plugins/administrator/defines.php:191
 #: squirrelmail/plugins/calendar/functions.php:98
 #: squirrelmail/plugins/calendar/functions.php:98
-#: squirrelmail/src/compose.php:633 squirrelmail/src/read_body.php:570
+#: squirrelmail/src/compose.php:617 squirrelmail/src/read_body.php:568
 msgid "High"
 msgid "High"
 msgstr ""
 msgstr ""
 
 
 #: squirrelmail/plugins/calendar/functions.php:97
 #: squirrelmail/plugins/calendar/functions.php:97
-#: squirrelmail/src/compose.php:634 squirrelmail/src/read_body.php:583
+#: squirrelmail/src/compose.php:618 squirrelmail/src/read_body.php:581
 msgid "Normal"
 msgid "Normal"
 msgstr ""
 msgstr ""
 
 
 #: squirrelmail/plugins/administrator/defines.php:188
 #: squirrelmail/plugins/administrator/defines.php:188
-#: squirrelmail/src/compose.php:635 squirrelmail/src/read_body.php:576
+#: squirrelmail/src/compose.php:619 squirrelmail/src/read_body.php:574
 msgid "Low"
 msgid "Low"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/compose.php:642
-msgid "Confirm reading:"
+#: squirrelmail/src/compose.php:625
+msgid "Receipt"
+msgstr ""
+
+#: squirrelmail/src/compose.php:626
+msgid "On read"
+msgstr ""
+
+#: squirrelmail/src/compose.php:627
+msgid "On Delivery"
+msgstr ""
+
+#: squirrelmail/functions/page_header.php:124 squirrelmail/src/compose.php:634
+#: squirrelmail/src/compose.php:638 squirrelmail/src/compose.php:642
+msgid "Addresses"
+msgstr ""
+
+#: squirrelmail/src/compose.php:647
+msgid "Save Draft"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/compose.php:664
+#: squirrelmail/src/compose.php:666
 msgid "You have not filled in the \"To:\" field."
 msgid "You have not filled in the \"To:\" field."
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/compose.php:749
+#: squirrelmail/src/compose.php:751
 msgid "said"
 msgid "said"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/compose.php:752
+#: squirrelmail/src/compose.php:754
 msgid "quote"
 msgid "quote"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/compose.php:752
+#: squirrelmail/src/compose.php:754
 msgid "who"
 msgid "who"
 msgstr ""
 msgstr ""
 
 
@@ -326,7 +337,7 @@ msgstr ""
 
 
 #: squirrelmail/src/download.php:34 squirrelmail/src/download.php:36
 #: squirrelmail/src/download.php:34 squirrelmail/src/download.php:36
 #: squirrelmail/src/image.php:31 squirrelmail/src/image.php:35
 #: squirrelmail/src/image.php:31 squirrelmail/src/image.php:35
-#: squirrelmail/src/read_body.php:306 squirrelmail/src/vcard.php:35
+#: squirrelmail/src/read_body.php:304 squirrelmail/src/vcard.php:35
 #: squirrelmail/src/vcard.php:39
 #: squirrelmail/src/vcard.php:39
 msgid "View message"
 msgid "View message"
 msgstr ""
 msgstr ""
@@ -415,7 +426,7 @@ msgstr ""
 #: squirrelmail/plugins/mail_fetch/options.php:170
 #: squirrelmail/plugins/mail_fetch/options.php:170
 #: squirrelmail/src/folders.php:190 squirrelmail/src/options_highlight.php:76
 #: squirrelmail/src/folders.php:190 squirrelmail/src/options_highlight.php:76
 #: squirrelmail/src/options_identities.php:305
 #: squirrelmail/src/options_identities.php:305
-#: squirrelmail/src/read_body.php:619
+#: squirrelmail/src/read_body.php:617
 msgid "Delete"
 msgid "Delete"
 msgstr ""
 msgstr ""
 
 
@@ -480,7 +491,7 @@ msgstr ""
 #: squirrelmail/plugins/delete_move_next/setup.php:149
 #: squirrelmail/plugins/delete_move_next/setup.php:149
 #: squirrelmail/plugins/delete_move_next/setup.php:151
 #: squirrelmail/plugins/delete_move_next/setup.php:151
 #: squirrelmail/src/help.php:185 squirrelmail/src/help.php:189
 #: squirrelmail/src/help.php:185 squirrelmail/src/help.php:189
-#: squirrelmail/src/read_body.php:641 squirrelmail/src/read_body.php:643
+#: squirrelmail/src/read_body.php:639 squirrelmail/src/read_body.php:641
 msgid "Previous"
 msgid "Previous"
 msgstr ""
 msgstr ""
 
 
@@ -490,7 +501,7 @@ msgstr ""
 #: squirrelmail/plugins/delete_move_next/setup.php:154
 #: squirrelmail/plugins/delete_move_next/setup.php:154
 #: squirrelmail/plugins/delete_move_next/setup.php:156
 #: squirrelmail/plugins/delete_move_next/setup.php:156
 #: squirrelmail/src/help.php:193 squirrelmail/src/help.php:196
 #: squirrelmail/src/help.php:193 squirrelmail/src/help.php:196
-#: squirrelmail/src/read_body.php:647 squirrelmail/src/read_body.php:649
+#: squirrelmail/src/read_body.php:645 squirrelmail/src/read_body.php:647
 msgid "Next"
 msgid "Next"
 msgstr ""
 msgstr ""
 
 
@@ -506,7 +517,7 @@ msgstr ""
 #: squirrelmail/functions/page_header.php:103
 #: squirrelmail/functions/page_header.php:103
 #: squirrelmail/plugins/mail_fetch/options.php:137
 #: squirrelmail/plugins/mail_fetch/options.php:137
 #: squirrelmail/plugins/mail_fetch/options.php:214
 #: squirrelmail/plugins/mail_fetch/options.php:214
-#: squirrelmail/src/left_main.php:73 squirrelmail/src/search.php:305
+#: squirrelmail/src/left_main.php:73 squirrelmail/src/search.php:310
 msgid "INBOX"
 msgid "INBOX"
 msgstr ""
 msgstr ""
 
 
@@ -1171,52 +1182,56 @@ msgstr ""
 msgid "View Printable Version"
 msgid "View Printable Version"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:182
+#: squirrelmail/src/read_body.php:180
 msgid "Your message"
 msgid "Your message"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:185
+#: squirrelmail/src/read_body.php:183
 msgid "Sent:"
 msgid "Sent:"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:187
+#: squirrelmail/src/read_body.php:185
 #, c-format
 #, c-format
 msgid "Was displayed on %s"
 msgid "Was displayed on %s"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:298
+#: squirrelmail/src/read_body.php:222
+msgid "Read:"
+msgstr ""
+
+#: squirrelmail/src/read_body.php:296
 msgid "Viewing Full Header"
 msgid "Viewing Full Header"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:434
+#: squirrelmail/src/read_body.php:432
 msgid "more"
 msgid "more"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:435
+#: squirrelmail/src/read_body.php:433
 msgid "less"
 msgid "less"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:611
+#: squirrelmail/src/read_body.php:609
 msgid "Message List"
 msgid "Message List"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:623
+#: squirrelmail/src/read_body.php:621
 msgid "Resume Draft"
 msgid "Resume Draft"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:660
+#: squirrelmail/src/read_body.php:658
 msgid "Forward"
 msgid "Forward"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:665
+#: squirrelmail/src/read_body.php:663
 msgid "Reply"
 msgid "Reply"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:670
+#: squirrelmail/src/read_body.php:668
 msgid "Reply All"
 msgid "Reply All"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:694 squirrelmail/src/read_body.php:697
+#: squirrelmail/src/read_body.php:692 squirrelmail/src/read_body.php:695
 msgid "View Full Header"
 msgid "View Full Header"
 msgstr ""
 msgstr ""
 
 
@@ -1225,41 +1240,41 @@ msgstr ""
 #: squirrelmail/plugins/calendar/event_edit.php:35
 #: squirrelmail/plugins/calendar/event_edit.php:35
 #: squirrelmail/plugins/calendar/event_edit.php:93
 #: squirrelmail/plugins/calendar/event_edit.php:93
 #: squirrelmail/plugins/calendar/event_edit.php:106
 #: squirrelmail/plugins/calendar/event_edit.php:106
-#: squirrelmail/src/read_body.php:720
+#: squirrelmail/src/read_body.php:718
 msgid "Date:"
 msgid "Date:"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:774
+#: squirrelmail/src/read_body.php:772
 msgid "Mailer"
 msgid "Mailer"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:812 squirrelmail/src/read_body.php:822
-#: squirrelmail/src/read_body.php:833 squirrelmail/src/read_body.php:845
-#: squirrelmail/src/read_body.php:870 squirrelmail/src/read_body.php:905
-#: squirrelmail/src/read_body.php:913 squirrelmail/src/read_body.php:927
+#: squirrelmail/src/read_body.php:810 squirrelmail/src/read_body.php:820
+#: squirrelmail/src/read_body.php:831 squirrelmail/src/read_body.php:843
+#: squirrelmail/src/read_body.php:868 squirrelmail/src/read_body.php:903
+#: squirrelmail/src/read_body.php:911 squirrelmail/src/read_body.php:925
 msgid "Read receipt"
 msgid "Read receipt"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:815 squirrelmail/src/read_body.php:824
-#: squirrelmail/src/read_body.php:907 squirrelmail/src/read_body.php:915
+#: squirrelmail/src/read_body.php:813 squirrelmail/src/read_body.php:822
+#: squirrelmail/src/read_body.php:905 squirrelmail/src/read_body.php:913
 msgid "send"
 msgid "send"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:816 squirrelmail/src/read_body.php:907
+#: squirrelmail/src/read_body.php:814 squirrelmail/src/read_body.php:905
 msgid "Remove MDN flag"
 msgid "Remove MDN flag"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:835 squirrelmail/src/read_body.php:847
-#: squirrelmail/src/read_body.php:872 squirrelmail/src/read_body.php:929
+#: squirrelmail/src/read_body.php:833 squirrelmail/src/read_body.php:845
+#: squirrelmail/src/read_body.php:870 squirrelmail/src/read_body.php:927
 msgid "requested"
 msgid "requested"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:848 squirrelmail/src/read_body.php:873
-#: squirrelmail/src/read_body.php:930
+#: squirrelmail/src/read_body.php:846 squirrelmail/src/read_body.php:871
+#: squirrelmail/src/read_body.php:928
 msgid "Send read receipt now"
 msgid "Send read receipt now"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/read_body.php:860
+#: squirrelmail/src/read_body.php:858
 msgid ""
 msgid ""
 "The message sender has requested a response to indicate that you have read "
 "The message sender has requested a response to indicate that you have read "
 "this message. Would you like to send a receipt?"
 "this message. Would you like to send a receipt?"
@@ -1282,43 +1297,43 @@ msgstr ""
 msgid "Contact your administrator for help."
 msgid "Contact your administrator for help."
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/search.php:237
+#: squirrelmail/src/search.php:242
 msgid "edit"
 msgid "edit"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/search.php:244 squirrelmail/src/search.php:283
+#: squirrelmail/src/search.php:249 squirrelmail/src/search.php:288
 msgid "search"
 msgid "search"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/search.php:247
+#: squirrelmail/src/search.php:252
 msgid "delete"
 msgid "delete"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/search.php:275
+#: squirrelmail/src/search.php:280
 msgid "save"
 msgid "save"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/search.php:286
+#: squirrelmail/src/search.php:291
 msgid "forget"
 msgid "forget"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/search.php:295
+#: squirrelmail/src/search.php:300
 msgid "Current Search"
 msgid "Current Search"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/search.php:334
+#: squirrelmail/src/search.php:339
 msgid "Body"
 msgid "Body"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/search.php:335
+#: squirrelmail/src/search.php:340
 msgid "Everywhere"
 msgid "Everywhere"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/search.php:362 squirrelmail/src/search.php:391
+#: squirrelmail/src/search.php:367 squirrelmail/src/search.php:396
 msgid "Search Results"
 msgid "Search Results"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/src/search.php:382
+#: squirrelmail/src/search.php:387
 msgid "No Messages found"
 msgid "No Messages found"
 msgstr ""
 msgstr ""
 
 
@@ -1632,7 +1647,7 @@ msgid "Preference database error (%s). Exiting abnormally"
 msgstr ""
 msgstr ""
 
 
 #: squirrelmail/functions/display_messages.php:28
 #: squirrelmail/functions/display_messages.php:28
-#: squirrelmail/functions/imap_general.php:245
+#: squirrelmail/functions/imap_general.php:249
 msgid "Unknown user or password incorrect."
 msgid "Unknown user or password incorrect."
 msgstr ""
 msgstr ""
 
 
@@ -1692,36 +1707,41 @@ msgid "ERROR : Could not complete request."
 msgstr ""
 msgstr ""
 
 
 #: squirrelmail/functions/imap_general.php:158
 #: squirrelmail/functions/imap_general.php:158
+#: squirrelmail/functions/imap_general.php:169
+msgid "Query:"
+msgstr ""
+
+#: squirrelmail/functions/imap_general.php:160
 #: squirrelmail/plugins/filters/filters.php:91
 #: squirrelmail/plugins/filters/filters.php:91
 msgid "Reason Given: "
 msgid "Reason Given: "
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/functions/imap_general.php:165
+#: squirrelmail/functions/imap_general.php:167
 #: squirrelmail/plugins/filters/filters.php:98
 #: squirrelmail/plugins/filters/filters.php:98
 msgid "ERROR : Bad or malformed request."
 msgid "ERROR : Bad or malformed request."
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/functions/imap_general.php:167
+#: squirrelmail/functions/imap_general.php:171
 #: squirrelmail/plugins/filters/filters.php:100
 #: squirrelmail/plugins/filters/filters.php:100
 msgid "Server responded: "
 msgid "Server responded: "
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/functions/imap_general.php:204
+#: squirrelmail/functions/imap_general.php:208
 #, c-format
 #, c-format
 msgid "Error connecting to IMAP server: %s."
 msgid "Error connecting to IMAP server: %s."
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/functions/imap_general.php:220
+#: squirrelmail/functions/imap_general.php:224
 #, c-format
 #, c-format
 msgid "Bad request: %s"
 msgid "Bad request: %s"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/functions/imap_general.php:222
+#: squirrelmail/functions/imap_general.php:226
 #, c-format
 #, c-format
 msgid "Unknown error: %s"
 msgid "Unknown error: %s"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/functions/imap_general.php:224
+#: squirrelmail/functions/imap_general.php:228
 msgid "Read data:"
 msgid "Read data:"
 msgstr ""
 msgstr ""
 
 
@@ -1759,20 +1779,24 @@ msgstr ""
 msgid "(unknown sender)"
 msgid "(unknown sender)"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/functions/imap_search.php:83
+#: squirrelmail/functions/imap_search.php:87
 msgid "No Messages Found"
 msgid "No Messages Found"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/functions/imap_search.php:187
-#: squirrelmail/functions/imap_search.php:195
+#: squirrelmail/functions/imap_search.php:188
+#: squirrelmail/functions/imap_search.php:196
 msgid "Found"
 msgid "Found"
 msgstr ""
 msgstr ""
 
 
-#: squirrelmail/functions/imap_search.php:187
-#: squirrelmail/functions/imap_search.php:195
+#: squirrelmail/functions/imap_search.php:188
+#: squirrelmail/functions/imap_search.php:196
 msgid "messages"
 msgid "messages"
 msgstr ""
 msgstr ""
 
 
+#: squirrelmail/functions/imap_search.php:198
+msgid "Folder:"
+msgstr ""
+
 #: squirrelmail/functions/mailbox_display.php:156
 #: squirrelmail/functions/mailbox_display.php:156
 msgid "A"
 msgid "A"
 msgstr ""
 msgstr ""

+ 16 - 18
src/compose.php

@@ -603,30 +603,29 @@ function showInputForm () {
 }
 }
 
 
 
 
-function showComposeButtonRow()
-{
+function showComposeButtonRow() {
     global $use_javascript_addr_book, $save_as_draft,
     global $use_javascript_addr_book, $save_as_draft,
-           $default_use_priority, $mailprio, $default_use_mdn,
-           $data_dir, $username;
-    
+        $default_use_priority, $mailprio, $default_use_mdn,
+        $data_dir, $username;
+
     echo "  <TR><TD>\n</TD><TD>\n";
     echo "  <TR><TD>\n</TD><TD>\n";
     if ($default_use_priority) {
     if ($default_use_priority) {
         if(!isset($mailprio)) {
         if(!isset($mailprio)) {
             $mailprio = "3";
             $mailprio = "3";
-	}
-	echo _("Priority") .':<select name="mailprio">'.
-             "<option value=1".($mailprio=='1'?' selected':'').'>'. _("High") .'</option>'.
-             "<option value=3".($mailprio=='3'?' selected':'').'>'. _("Normal") .'</option>'.
-             "<option value=5".($mailprio=='5'?' selected':'').'>'. _("Low").'</option>'.
-             "</select>";
+    }
+    echo _("Priority") .': <select name="mailprio">'.
+         '<option value="1"'.($mailprio=='1'?' selected':'').'>'. _("High") .'</option>'.
+         '<option value="3"'.($mailprio=='3'?' selected':'').'>'. _("Normal") .'</option>'.
+         '<option value="5"'.($mailprio=='5'?' selected':'').'>'. _("Low").'</option>'.
+         "</select>";
     }
     }
     $mdn_user_support=getPref($data_dir, $username, 'mdn_user_support',$default_use_mdn);
     $mdn_user_support=getPref($data_dir, $username, 'mdn_user_support',$default_use_mdn);
     if ($default_use_mdn) {
     if ($default_use_mdn) {
-      if ($mdn_user_support) {
-          echo "\n\t". _("Receipt") .': '.
-	    '<input type="checkbox" name="request_mdn" value=1>'. _("On read").
-	    ' <input type="checkbox" name="request_dr" value=1>'. _("On Delivery");
-      }
+        if ($mdn_user_support) {
+            echo "\n\t". _("Receipt") .': '.
+            '<input type="checkbox" name="request_mdn" value=1>'. _("On read").
+            ' <input type="checkbox" name="request_dr" value=1>'. _("On Delivery");
+        }
     }
     }
 
 
     echo "   <TR><td>\n   </td><td>\n";
     echo "   <TR><td>\n   </td><td>\n";
@@ -653,8 +652,7 @@ function showComposeButtonRow()
     echo "   </TD></TR>\n\n";
     echo "   </TD></TR>\n\n";
 }
 }
 
 
-function checkInput ($show)
-{
+function checkInput ($show) {
     /*
     /*
      * I implemented the $show variable because the error messages
      * I implemented the $show variable because the error messages
      * were getting sent before the page header.  So, I check once
      * were getting sent before the page header.  So, I check once

+ 63 - 58
src/search.php

@@ -56,19 +56,19 @@ function get_saved($pref_name, $username, $data_dir) {
 
 
 /*  function to update recent pref arrays  */
 /*  function to update recent pref arrays  */
 function update_recent($what, $where, $mailbox, $username, $data_dir) {
 function update_recent($what, $where, $mailbox, $username, $data_dir) {
-    $what_array = get_recent("search_what", $username, $data_dir);
-    $where_array = get_recent("search_where", $username, $data_dir);
-    $folder_array = get_recent("search_folder", $username, $data_dir);
-    $dupe = "no";
+    $what_array = get_recent('search_what', $username, $data_dir);
+    $where_array = get_recent('search_where', $username, $data_dir);
+    $folder_array = get_recent('search_folder', $username, $data_dir);
+    $dupe = 'no';
     for ($i=0;$i<count($what_array);$i++) {
     for ($i=0;$i<count($what_array);$i++) {
         if ($what == $what_array[$i] &&
         if ($what == $what_array[$i] &&
             $where == $where_array[$i] &&
             $where == $where_array[$i] &&
             $mailbox == $folder_array[$i]) {
             $mailbox == $folder_array[$i]) {
-            
-            $dupe = "yes";
+
+            $dupe = 'yes';
         }
         }
     }
     }
-    if ($dupe == "no") {    
+    if ($dupe == 'no') {
     array_push ($what_array, $what);
     array_push ($what_array, $what);
     array_push ($where_array, $where);
     array_push ($where_array, $where);
     array_push ($folder_array, $mailbox);
     array_push ($folder_array, $mailbox);
@@ -78,9 +78,9 @@ function update_recent($what, $where, $mailbox, $username, $data_dir) {
     $recent_count = getPref($data_dir, $username, 'search_memory', 0);
     $recent_count = getPref($data_dir, $username, 'search_memory', 0);
     $n=0;
     $n=0;
     for ($i=1;$i<=$recent_count;$i++) {
     for ($i=1;$i<=$recent_count;$i++) {
-        setPref($data_dir, $username, "search_what" . "$i", $what_array[$n]);
-        setPref($data_dir, $username, "search_where" . "$i", $where_array[$n]);
-        setPref($data_dir, $username, "search_folder" . "$i", $folder_array[$n]);
+        setPref($data_dir, $username, "search_what$i", $what_array[$n]);
+        setPref($data_dir, $username, "search_where$i", $where_array[$n]);
+        setPref($data_dir, $username, "search_folder$i", $folder_array[$n]);
        $n++;
        $n++;
        }
        }
     }
     }
@@ -88,30 +88,30 @@ function update_recent($what, $where, $mailbox, $username, $data_dir) {
 
 
 /*  function to forget a recent search  */
 /*  function to forget a recent search  */
 function forget_recent($forget_index, $username, $data_dir) {
 function forget_recent($forget_index, $username, $data_dir) {
-    $what_array = get_recent("search_what", $username, $data_dir);
-    $where_array = get_recent("search_where", $username, $data_dir);
-    $folder_array = get_recent("search_folder", $username, $data_dir);
+    $what_array = get_recent('search_what', $username, $data_dir);
+    $where_array = get_recent('search_where', $username, $data_dir);
+    $folder_array = get_recent('search_folder', $username, $data_dir);
     array_splice($what_array, $forget_index, 1);
     array_splice($what_array, $forget_index, 1);
     array_splice($where_array, $forget_index, 1);
     array_splice($where_array, $forget_index, 1);
     array_splice($folder_array, $forget_index, 1);
     array_splice($folder_array, $forget_index, 1);
-    array_unshift($what_array, "");
-    array_unshift($where_array, "");
-    array_unshift($folder_array, "");
+    array_unshift($what_array, '');
+    array_unshift($where_array, '');
+    array_unshift($folder_array, '');
     $recent_count = getPref($data_dir, $username, 'search_memory', 0);
     $recent_count = getPref($data_dir, $username, 'search_memory', 0);
     $n=0;
     $n=0;
     for ($i=1;$i<=$recent_count;$i++) {
     for ($i=1;$i<=$recent_count;$i++) {
-        setPref($data_dir, $username, "search_what" . "$i", $what_array[$n]);
-        setPref($data_dir, $username, "search_where" . "$i", $where_array[$n]);
-        setPref($data_dir, $username, "search_folder" . "$i", $folder_array[$n]);
+        setPref($data_dir, $username, "search_what$i", $what_array[$n]);
+        setPref($data_dir, $username, "search_where$i", $where_array[$n]);
+        setPref($data_dir, $username, "search_folder$i", $folder_array[$n]);
         $n++;
         $n++;
     }
     }
 }
 }
 
 
 /*  function to delete a saved search  */
 /*  function to delete a saved search  */
 function delete_saved($delete_index, $username, $data_dir) {
 function delete_saved($delete_index, $username, $data_dir) {
-    $saved_what_array = get_saved("saved_what", $username, $data_dir); 
-    $saved_where_array = get_saved("saved_where", $username, $data_dir);
-    $saved_folder_array = get_saved("saved_folder", $username, $data_dir);
+    $saved_what_array = get_saved('saved_what', $username, $data_dir);
+    $saved_where_array = get_saved('saved_where', $username, $data_dir);
+    $saved_folder_array = get_saved('saved_folder', $username, $data_dir);
     array_splice($saved_what_array, $delete_index, 1);
     array_splice($saved_what_array, $delete_index, 1);
     array_splice($saved_where_array, $delete_index, 1);
     array_splice($saved_where_array, $delete_index, 1);
     array_splice($saved_folder_array, $delete_index, 1);
     array_splice($saved_folder_array, $delete_index, 1);
@@ -120,30 +120,30 @@ function delete_saved($delete_index, $username, $data_dir) {
     $last_element = $saved_count + 1;
     $last_element = $saved_count + 1;
     if ($last_element < 1) {
     if ($last_element < 1) {
         for ($i=1;$i<=$saved_count;$i++) {
         for ($i=1;$i<=$saved_count;$i++) {
-            setPref($data_dir, $username, "saved_what" . "$i", $saved_what_array[$n]);
-        setPref($data_dir, $username, "saved_where" . "$i", $saved_where_array[$n]);
-        setPref($data_dir, $username, "saved_folder" . "$i", $saved_folder_array[$n]);
+            setPref($data_dir, $username, "saved_what$i", $saved_what_array[$n]);
+        setPref($data_dir, $username, "saved_where$i", $saved_where_array[$n]);
+        setPref($data_dir, $username, "saved_folder$i", $saved_folder_array[$n]);
         $n++;
         $n++;
         }
         }
     }
     }
-    removePref($data_dir, $username, "saved_what" . "$last_element");
-    removePref($data_dir, $username, "saved_where" . "$last_element");
-    removePref($data_dir, $username, "saved_folder" . "$last_element");
-}    
+    removePref($data_dir, $username, "saved_what$last_element");
+    removePref($data_dir, $username, "saved_where$last_element");
+    removePref($data_dir, $username, "saved_folder$last_element");
+}
 
 
 /*  function to save a search from recent to saved  */
 /*  function to save a search from recent to saved  */
 function save_recent($save_index, $username, $data_dir) {
 function save_recent($save_index, $username, $data_dir) {
-    $what_array = get_recent("search_what", $username, $data_dir);
-    $where_array = get_recent("search_where", $username, $data_dir);
-    $folder_array = get_recent("search_folder", $username, $data_dir);
+    $what_array = get_recent('search_what', $username, $data_dir);
+    $where_array = get_recent('search_where', $username, $data_dir);
+    $folder_array = get_recent('search_folder', $username, $data_dir);
     $saved_what_once = array_slice($what_array, $save_index, 1);
     $saved_what_once = array_slice($what_array, $save_index, 1);
     $saved_where_once = array_slice($where_array, $save_index, 1);
     $saved_where_once = array_slice($where_array, $save_index, 1);
     $saved_folder_once = array_slice($folder_array, $save_index, 1);
     $saved_folder_once = array_slice($folder_array, $save_index, 1);
-    $saved_array = get_saved("saved_what", $username, $data_dir);
+    $saved_array = get_saved('saved_what', $username, $data_dir);
     $saved_count = (count($saved_array) + 1);
     $saved_count = (count($saved_array) + 1);
-    setPref($data_dir, $username, "saved_what" . "$saved_count", $saved_what_once[0]);
-    setPref($data_dir, $username, "saved_where" . "$saved_count", $saved_where_once[0]);
-    setPref($data_dir, $username, "saved_folder" . "$saved_count", $saved_folder_once[0]);
+    setPref($data_dir, $username, "saved_what$saved_count", $saved_what_once[0]);
+    setPref($data_dir, $username, "saved_where$saved_count", $saved_where_once[0]);
+    setPref($data_dir, $username, "saved_folder$saved_count", $saved_folder_once[0]);
 }
 }
 
 
 /* ------------------------ main ------------------------ */
 /* ------------------------ main ------------------------ */
@@ -155,34 +155,39 @@ $folder_array = array ();
 $saved_what_array = array ();
 $saved_what_array = array ();
 $saved_where_array = array ();
 $saved_where_array = array ();
 $saved_folder_array = array ();
 $saved_folder_array = array ();
-$search_all = "none";
+$search_all = 'none';
 $perbox_count = array ();
 $perbox_count = array ();
 
 
 /*  get mailbox names  */
 /*  get mailbox names  */
 $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 $boxes = sqimap_mailbox_list($imapConnection);
 $boxes = sqimap_mailbox_list($imapConnection);
 
 
-
 /*  set current mailbox to INBOX if none was selected or if page
 /*  set current mailbox to INBOX if none was selected or if page
     was called to search all folders.  */
     was called to search all folders.  */
 if ($mailbox == 'None' || $mailbox == '' ) {
 if ($mailbox == 'None' || $mailbox == '' ) {
     $mailbox = $boxes[0]['unformatted'];
     $mailbox = $boxes[0]['unformatted'];
 }
 }
 if ($mailbox == 'All Folders') {
 if ($mailbox == 'All Folders') {
-    $search_all = "all";
+    $search_all = 'all';
 }
 }
 
 
 displayPageHeader($color, $mailbox);
 displayPageHeader($color, $mailbox);
 
 
 /*  See how the page was called and fire off correct function  */
 /*  See how the page was called and fire off correct function  */
-//if ( !isset( $submit ) ) {
-//    $submit = '';
-//} else if ($submit == 'Search' && !empty($what)) {
 if ((!isset($submit) || empty($submit)) && !empty($what)) {
 if ((!isset($submit) || empty($submit)) && !empty($what)) {
-    $submit = 'Search';
+    $submit = _("Search");
 }
 }
-if ($submit == 'Search' && !empty($what)) {
-    update_recent($what, $where, $mailbox, $username, $data_dir); 
+if ( !isset( $submit ) ) {
+    /*
+        Jason, leave E_ALL only on error reporting in php.ini
+        Variables must contain a value befor to check them,
+        or else there are compilation slow down as PHP has
+        to guess.
+        Remove this comment once read 8-)
+    */
+    $submit = '';
+} else if ($submit == _("Search") && !empty($what)) {
+    update_recent($what, $where, $mailbox, $username, $data_dir);
 }
 }
 elseif ($submit == 'forget') {
 elseif ($submit == 'forget') {
     forget_recent($count, $username, $data_dir);
     forget_recent($count, $username, $data_dir);
@@ -204,13 +209,13 @@ echo "<BR>\n".
      "</TABLE>\n";
      "</TABLE>\n";
 
 
 /*  update the recent and saved searches from the pref files  */
 /*  update the recent and saved searches from the pref files  */
-$what_array = get_recent("search_what", $username, $data_dir);
-$where_array = get_recent("search_where", $username, $data_dir);
-$folder_array = get_recent("search_folder", $username, $data_dir);
+$what_array = get_recent('search_what', $username, $data_dir);
+$where_array = get_recent('search_where', $username, $data_dir);
+$folder_array = get_recent('search_folder', $username, $data_dir);
 $recent_count = getPref($data_dir, $username, 'search_memory', 0);
 $recent_count = getPref($data_dir, $username, 'search_memory', 0);
-$saved_what_array = get_saved("saved_what", $username, $data_dir);
-$saved_where_array = get_saved("saved_where", $username, $data_dir);
-$saved_folder_array = get_saved("saved_folder", $username, $data_dir);
+$saved_what_array = get_saved('saved_what', $username, $data_dir);
+$saved_where_array = get_saved('saved_where', $username, $data_dir);
+$saved_folder_array = get_saved('saved_folder', $username, $data_dir);
 $saved_count = count($saved_what_array);
 $saved_count = count($saved_what_array);
 $count_all = 0;
 $count_all = 0;
 
 
@@ -303,7 +308,7 @@ for ($i = 0; $i < count($boxes); $i++) {
         $box2 = str_replace(' ', '&nbsp;', $boxes[$i]['unformatted-disp']);
         $box2 = str_replace(' ', '&nbsp;', $boxes[$i]['unformatted-disp']);
         if( $box2 == 'INBOX' ) {
         if( $box2 == 'INBOX' ) {
             $box2 = _("INBOX");
             $box2 = _("INBOX");
-        }        
+        }
         if ($mailbox == $box) {
         if ($mailbox == $box) {
             echo "         <OPTION VALUE=\"$box\" SELECTED>$box2</OPTION>\n";
             echo "         <OPTION VALUE=\"$box\" SELECTED>$box2</OPTION>\n";
         }
         }
@@ -340,7 +345,7 @@ s_opt( 'TO', $where, _("To") );
 echo "         </SELECT>\n" .
 echo "         </SELECT>\n" .
      "        </TD>\n".
      "        </TD>\n".
      "       <TD COLSPAN=\"3\" ALIGN=\"CENTER\">\n".
      "       <TD COLSPAN=\"3\" ALIGN=\"CENTER\">\n".
-     "         <INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\"Search\">\n".
+     "         <INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\"" . _("Search") . "\">\n".
      "       </TD>\n".
      "       </TD>\n".
      "     </TR>\n".
      "     </TR>\n".
      "</FORM>\n".
      "</FORM>\n".
@@ -352,7 +357,7 @@ do_hook('search_after_form');
 
 
 /*
 /*
     search all folders option still in the works. returns a table for each
     search all folders option still in the works. returns a table for each
-    folder it finds a match in. 
+    folder it finds a match in.
 */
 */
 
 
 if ($search_all == 'all') {
 if ($search_all == 'all') {
@@ -365,7 +370,7 @@ if ($search_all == 'all') {
         if (!in_array('noselect', $boxes[$x]['flags'])) {
         if (!in_array('noselect', $boxes[$x]['flags'])) {
             $mailbox = $boxes[$x]['unformatted'];
             $mailbox = $boxes[$x]['unformatted'];
         }
         }
-        if (($submit == "Search" || $submit == "Search_no_update") && !empty($what)) {
+        if (($submit == _("Search") || $submit == 'Search_no_update') && !empty($what)) {
             sqimap_mailbox_select($imapConnection, $mailbox);
             sqimap_mailbox_select($imapConnection, $mailbox);
             $count_all = sqimap_search($imapConnection, $where, $what, $mailbox, $color, 0, $search_all, $count_all);
             $count_all = sqimap_search($imapConnection, $where, $what, $mailbox, $color, 0, $search_all, $count_all);
         array_push($perbox_count, $count_all);
         array_push($perbox_count, $count_all);
@@ -386,7 +391,7 @@ if ($search_all == 'all') {
 
 
 /*  search one folder option  */
 /*  search one folder option  */
 else {
 else {
-    if (($submit == 'Search' || $submit == 'Search_no_update') && !empty($what)) {
+    if (($submit == _("Search") || $submit == 'Search_no_update') && !empty($what)) {
         echo '<BR><CENTER><B>' .
         echo '<BR><CENTER><B>' .
              _("Search Results") .
              _("Search Results") .
              "</B></CENTER>\n";
              "</B></CENTER>\n";
@@ -396,11 +401,11 @@ else {
 }
 }
 
 
 /*  must have search terms to search  */
 /*  must have search terms to search  */
-if ($submit == 'Search' && empty($what)) {
+if ($submit == _("Search") && empty($what)) {
     echo "<BR><CENTER><B>Please enter something to search for</B></CENTER>\n";
     echo "<BR><CENTER><B>Please enter something to search for</B></CENTER>\n";
 }
 }
 
 
-do_hook("search_bottom");
+do_hook('search_bottom');
 sqimap_logout ($imapConnection);
 sqimap_logout ($imapConnection);
 echo '</body></html>';
 echo '</body></html>';