Added Pontus Ullgren's message priority code.
authorphutnick <phutnick@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 4 Sep 2001 00:43:08 +0000 (00:43 +0000)
committerphutnick <phutnick@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 4 Sep 2001 00:43:08 +0000 (00:43 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1483 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mailbox_display.php
src/compose.php

index 89ae5eb..825ce52 100644 (file)
                   echo "A\n";
                   $stuff = true;
                }
+               if (ereg('(5)',substr($msg['PRIORITY'],0,1))) {
+                  echo "<font color=$color[8]>v</font>\n";
+                  $stuff = true;
+               }
                if ($msg['TYPE0'] == 'multipart') {
                   echo "+\n";
                   $stuff = true;
index b0db9b7..f0334c1 100644 (file)
          echo "      <input type=submit name=\"html_addr_search\" value=\""._("Addresses")."\">";
       }   
       echo "\n    <INPUT TYPE=SUBMIT NAME=send VALUE=\"". _("Send") . "\">\n";
+      echo "\n    ". _("Priority") .":<select name=\"mailprio\">".
+           "\n                        <option value=1>". _("High") ."</option>".
+           "\n                        <option value=3 selected>". _("Normal") ."</option>".
+           "\n                        <option value=5>". _("Low") ."</option>".
+           "\n                      </select>";
       
       do_hook("compose_button_row");
 
         
          do_hook("compose_send");
 
-         if (! sendMessage($send_to, $send_to_cc, $send_to_bcc, $subject, $body, $reply_id)) {
+         if (! sendMessage($send_to, $send_to_cc, $send_to_bcc, $subject, $body, $reply_id, $mailprio)) {
            showInputForm(); 
            exit();
         }