X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fmessages.c;h=8a12605f7b896a10d8f257c4c3223ed2d2c45553;hb=d159f2a1a8cf9efccb8f733d7e2452c5f7cfbf64;hp=a9a07345e708ded32c5b8338b9a7aef2b049de80;hpb=dcf8a338cfd0f7b058f4ad81e6c6eaa479839d6a;p=citadel.git diff --git a/webcit/messages.c b/webcit/messages.c index a9a07345e..8a12605f7 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -103,6 +103,11 @@ void fetchname_parsed_vcard(struct vCard *v, char *storename) { if (v->numprops) for (i=0; i<(v->numprops); ++i) { if (!strcasecmp(v->prop[i].name, "n")) { strcpy(storename, v->prop[i].value); + if ((strlen(storename)>0) && (storename[0] != ';')) { + while(storename[strlen(storename)-1] == ';') { + storename[strlen(storename)-1] = 0; + } + } } } } @@ -142,10 +147,11 @@ void display_parsed_vcard(struct vCard *v, int full) { if (!full) { wprintf("
\n");
/* begin message header table */
@@ -381,7 +388,7 @@ void read_message(long msgnum) {
while (serv_gets(buf), strcasecmp(buf, "text")) {
if (!strcmp(buf, "000")) {
- wprintf("unexpected end of message \n"); + wprintf("unexpected end of message \n"); wprintf("\n"); return; } @@ -447,7 +454,7 @@ void read_message(long msgnum) { "TARGET=\"wc.%ld.%s\">" "\n" - "Part %s: %s (%s, %d bytes) \n", + "Part %s: %s (%s, %d bytes) \n", msgnum, mime_partnum, msgnum, mime_partnum, mime_partnum, mime_filename, @@ -498,51 +505,46 @@ void read_message(long msgnum) { wprintf("****"); } - wprintf(" | ");
+ wprintf("");
+ if (strlen(m_subject) > 0) {
+ wprintf("\n"
- "
| \n");
-
- if (strlen(m_subject) > 0) {
- wprintf("|
" - " | " - "
"); - wprintf("Confirm move of message\n"); - wprintf(" |
"); + wprintf("Confirm move of message\n"); + wprintf(" |