X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=textclient%2Fmessages.c;h=447c3922567378a14473de3596961cc99c002183;hp=7fd9502df3831326b3c2afff2563fada38dc121b;hb=8933df1f26595cfa3d9bb77f9b5a18d6b806d159;hpb=d8569b016fa45a29156c30171237ad93558cc472 diff --git a/textclient/messages.c b/textclient/messages.c index 7fd9502df..447c39225 100644 --- a/textclient/messages.c +++ b/textclient/messages.c @@ -410,8 +410,6 @@ int read_message(CtdlIPC *ipc, char ch; int linelen; int final_line_is_blank = 0; - int is_local = 0; - has_images = 0; sigcaught = 0; @@ -445,18 +443,6 @@ int read_message(CtdlIPC *ipc, color(BRIGHT_CYAN); } - /* Determine if the message originated here on the local system. If it did we will suppress printing of email addresses */ - is_local = 0; - char *at = !IsEmptyStr(message->email) ? strchr(message->email,'@') : NULL; - if (at) { - if (!strcasecmp(++at, ipc->ServInfo.fqdn)) { - is_local = 1; - } - } - else { - is_local = 1; // no address means it couldn't have originated anywhere else - } - /* View headers only */ if (pagin == 2) { scr_printf("nhdr=%s\nfrom=%s\ntype=%d\nmsgn=%s\n", @@ -513,7 +499,7 @@ int read_message(CtdlIPC *ipc, strftime(now, sizeof now, "%F %R", &thetime); if (dest) { fprintf(dest, "%s from %s ", now, message->author); - if (!is_local) { + if (!message->is_local) { fprintf(dest, "<%s> ", message->email); } } @@ -524,7 +510,7 @@ int read_message(CtdlIPC *ipc, scr_printf("from "); color(BRIGHT_CYAN); scr_printf("%s ", message->author); - if (!is_local) { + if (!message->is_local) { color(DIM_WHITE); scr_printf("<"); color(BRIGHT_BLUE);