From 8376509a9019635a63283531e5b4bc8d820f992a Mon Sep 17 00:00:00 2001 From: Brian Date: Sun, 27 Jan 2002 03:16:02 +0000 Subject: [PATCH] * Fixed bug: Forgetting to exclude ' ' while parsing headers. D'oh!! :) --- libCxClient/src/messages.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libCxClient/src/messages.c b/libCxClient/src/messages.c index 6250157f1..a7ef4db0e 100644 --- a/libCxClient/src/messages.c +++ b/libCxClient/src/messages.c @@ -152,40 +152,40 @@ int rc, message_contents = 0, line_width; if(strstr(buf,"From:") && !message_contents) { - strcpy(toret->author, buf+5); + strcpy(toret->author, buf+6); } else if((strstr(buf,"To:") == (char *)&buf) && !message_contents) { - strcpy(toret->rcpt, buf+3); + strcpy(toret->rcpt, buf+4); } else if(strstr(buf,"X-UIDL:") && !message_contents) { - DPF((DFA,"Message ID: %s",buf+7)); - toret->message_id = atoi(buf+7); + DPF((DFA,"Message ID: %s",buf+8)); + toret->message_id = atoi(buf+8); } else if(strstr(buf,"X-Citadel-Room:") && !message_contents) { - DPF((DFA,"Room: %s",buf+15)); - strcpy(toret->room, buf+15); + DPF((DFA,"Room: %s",buf+16)); + strcpy(toret->room, buf+16); toret->room[ strlen(toret->room)-1 ] = 0; } else if(strstr(buf,"Subject:") && !message_contents) { - strcpy(toret->subject, buf+8); + strcpy(toret->subject, buf+9); } else if(strstr(buf,"Path:") && !message_contents) { - strcpy(toret->path, buf+5); + strcpy(toret->path, buf+6); } else if(strstr(buf,"Node:") && !message_contents) { - strcpy(toret->node, buf+5); + strcpy(toret->node, buf+6); } else if((strstr(buf,"Date:") == (char *)&buf) && !message_contents) { - strcpy(toret->date, buf+5); + strcpy(toret->date, buf+6); } else if((buf[0] == 0) || (buf[0] == '\r') || message_contents) { -- 2.39.2