]> code.citadel.org Git - citadel.git/blobdiff - webcit/messages.c
* Installed the final batch of new icons
[citadel.git] / webcit / messages.c
index d3525ae7f1a59ac08432f5db7046fd3d2b7abcdd..715c7849e3de67f7d64f3c06ec0bcd73f3546064 100644 (file)
@@ -333,7 +333,7 @@ void display_parsed_vcard(struct vCard *v, int full) {
                if (pass == 1) {
                        wprintf("<TR BGCOLOR=\"#AAAAAA\">"
                        "<TD COLSPAN=2 BGCOLOR=\"#FFFFFF\">"
-                       "<IMG ALIGN=CENTER SRC=\"/static/savecontact_48x.gif\">"
+                       "<IMG ALIGN=CENTER SRC=\"/static/viewcontacts_48x.gif\">"
                        "<FONT SIZE=+1><B>");
                        escputs(displayname);
                        wprintf("</B></FONT>");
@@ -517,7 +517,7 @@ void read_message(long msgnum) {
                                        "<A HREF=\"/output_mimepart?"
                                        "msgnum=%ld&partnum=%s\" "
                                        "TARGET=\"wc.%ld.%s\">"
-                                       "<IMG SRC=\"/static/attachment.gif\" "
+                                       "<IMG SRC=\"/static/diskette_24x.gif\" "
                                        "BORDER=0 ALIGN=MIDDLE>\n"
                                        "Part %s: %s (%s, %d bytes)</A><br />\n",
                                        msgnum, mime_partnum,
@@ -743,6 +743,9 @@ void summarize_message(long msgnum, int is_new) {
                if (!strncasecmp(buf, "subj=", 5)) {
                        if (strlen(&buf[5]) > 0) {
                                strcpy(summ.subj, &buf[5]);
+                               if (strlen(summ.subj) > 75) {
+                                       strcpy(&summ.subj[72], "...");
+                               }
                        }
                }
                /* if (!strncasecmp(buf, "rfca=", 5)) {
@@ -769,6 +772,10 @@ void summarize_message(long msgnum, int is_new) {
                        fmt_date(summ.date, atol(&buf[5]), 1);  /* brief */
                }
        }
+       
+       if (strlen(summ.from) > 25) {
+               strcpy(&summ.from[22], "...");
+       }
 
        wprintf("<TD>");
        if (is_new) wprintf("<B>");
@@ -1218,9 +1225,9 @@ void readloop(char *oper)
                        "<table border=0 cellspacing=0 "
                        "cellpadding=0 width=100%%>\n"
                        "<TR>"
-                       "<TD><I>Subject</I></TD>"
-                       "<TD><I>Sender</I></TD>"
-                       "<TD><I>Date</I></TD>"
+                       "<TD align=center><b><i>Subject</i></b></TD>"
+                       "<TD align=center><b><i>Sender</i></b></TD>"
+                       "<TD align=center><b><i>Date</i></b></TD>"
                        "<TD></TD>"
                        "</TR>\n"
                );
@@ -1338,11 +1345,13 @@ void readloop(char *oper)
                }
 
                wprintf("<A HREF=\"/%s?startmsg=%ld"
-                       "&maxmsgs=999999&summary=1\">"
+                       "&maxmsgs=%d&summary=1\">"
                        "Summary"
                        "</A>",
                        oper,
-                       WC->msgarr[0]);
+                       WC->msgarr[0],
+                       DEFAULT_MAXMSGS
+               );
 
                wprintf("</td></tr></table></div>\n");
            }
@@ -1380,7 +1389,7 @@ void readloop(char *oper)
                                lo, hi);
                }
                wprintf("<OPTION VALUE=\"/%s?startmsg=%ld"
-                       "&maxmsgs=999999&summary=%d\">"
+                       "&maxmsgs=9999999&summary=%d\">"
                        "ALL"
                        "</OPTION> ",
                        oper,
@@ -1455,7 +1464,7 @@ void post_mime_to_server(void) {
                serv_printf("--%s", boundary);
        }
 
-       serv_puts("Content-type: text/html");
+       serv_puts("Content-type: text/html; charset=utf-8");
        serv_puts("");
        serv_puts("<HTML><BODY>\n");
        text_to_server(bstr("msgtext"), 0);
@@ -1678,7 +1687,7 @@ void display_enter(void)
                now);
 
        wprintf("%s<br>\n", buf);       /* header bar */
-       wprintf("<img src=\"static/enter.gif\" align=middle alt=\" \">");
+       wprintf("<img src=\"static/newmess3_24x.gif\" align=middle alt=\" \">");
                /* "onLoad=\"document.enterform.msgtext.focus();\" " */
        wprintf("<font size=-1>Subject (optional):</font>"
                "<input type=\"text\" name=\"subject\" value=\"");
@@ -1714,7 +1723,7 @@ void display_enter(void)
                "</script></center><br />\n");
 
        /* Enumerate any attachments which are already in place... */
-       wprintf("<img src=\"/static/attachment.gif\" border=0 "
+       wprintf("<img src=\"/static/diskette_24x.gif\" border=0 "
                "align=middle height=16 width=16> Attachments: ");
        wprintf("<select name=\"which_attachment\" size=1>");
        for (att = WC->first_attachment; att != NULL; att = att->next) {