]> code.citadel.org Git - citadel.git/commitdiff
* Added the ability to enter a Subject: line in messages
authorArt Cancro <ajc@citadel.org>
Sun, 24 Feb 2002 07:02:44 +0000 (07:02 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 24 Feb 2002 07:02:44 +0000 (07:02 +0000)
* Go to the Mail room when user clicks on the new mail alert icon

webcit/ChangeLog
webcit/messages.c
webcit/roomops.c

index 53ef7e1571c680ec28df63c6a6cc8741e41f6788..adfcf0adc212bba78b840193f1ec57c86a2f5c25 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
+Revision 323.4  2002/02/24 07:02:44  ajc
+* Added the ability to enter a Subject: line in messages
+* Go to the Mail room when user clicks on the new mail alert icon
+
 Revision 323.3  2002/02/13 22:47:51  ajc
 * Added some rudimentary support for displaying vCards as card-looking things
 
@@ -719,3 +723,4 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index 09b031c39e0c68860cb4ae715e777b310efde520..e5a1b2a0173ecfbb1e29172de2b0ffa04ef6c0b7 100644 (file)
@@ -348,7 +348,7 @@ void read_message(long msgnum, int is_summary) {
 
 
        if (strlen(m_subject) > 0) {
-               wprintf("<TR><TD><FONT COLOR=\"FFFFFF\">"
+               wprintf("<TR><TD><FONT COLOR=\"0000FF\">"
                        "Subject: %s</FONT>"
                        "</TD><TD>&nbsp;</TD></TR>\n", m_subject);
        }
@@ -570,7 +570,9 @@ void post_message(void)
                wprintf("Automatically cancelled because you have already "
                        "saved this message.<BR>\n");
        } else {
-               sprintf(buf, "ENT0 1|%s|0|0", bstr("recp"));
+               sprintf(buf, "ENT0 1|%s|0|0|%s",
+                       bstr("recp"),
+                       bstr("subject") );
                serv_puts(buf);
                serv_gets(buf);
                if (buf[0] == '4') {
@@ -639,7 +641,10 @@ void display_enter(void)
                bstr("recp"));
        wprintf("<INPUT TYPE=\"hidden\" NAME=\"postseq\" VALUE=\"%ld\">\n",
                now);
-       wprintf("<INPUT TYPE=\"submit\" NAME=\"sc\" VALUE=\"Save message\">"
+       wprintf("<FONT SIZE=-1>Subject (optional):</FONT>"
+               "<INPUT TYPE=\"text\" NAME=\"subject\" MAXLENGTH=70>"
+               "&nbsp;&nbsp;&nbsp;"
+               "<INPUT TYPE=\"submit\" NAME=\"sc\" VALUE=\"Save message\">"
                "<INPUT TYPE=\"submit\" NAME=\"sc\" VALUE=\"Cancel\"><BR>\n");
 
        wprintf("<TEXTAREA NAME=\"msgtext\" wrap=soft ROWS=30 COLS=80 "
index 5d47a99c2b4b1b72b102ba4f684489ffb56b661c..424f23c6b3b45ab85112e8cbc0391a4f6a4a76c1 100644 (file)
@@ -328,10 +328,11 @@ void embed_room_graphic(void) {
 void embed_newmail_button(void) {
        if ( (WC->new_mail > WC->remember_new_mail) && (WC->new_mail>0) ) {
                wprintf("<TD VALIGN=TOP>"
+                       "<A HREF=\"/dotgoto?room=_MAIL_\">"
                        "<IMG SRC=\"/static/mail.gif\" border=0 "
                        "ALT=\"You have new mail\">"
                        "<BR><BLINK>%d</BLINK>", WC->new_mail);
-               wprintf("<FONT SIZE=-2> new mail messages</FONT></TD>");
+               wprintf("<FONT SIZE=-2> new mail messages</FONT></A></TD>");
                WC->remember_new_mail = WC->new_mail;
        }
 }