diff --git a/ChangeLog b/ChangeLog index a19d27b9..7dd16c48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -102,8 +102,8 @@ v0.91.5 18-Feb-2007 - 05-Mar-2007 archives. mbnntp: - Reading news outputs UTF-8 coded articles. - TODO: test posting and fix if needed. + Reading news outputs UTF-8 coded articles. Posting is done + with the client side charset and translated when needed. mbtask: Fixed a too low memory allocation in clencode. diff --git a/mbnntp/commands.c b/mbnntp/commands.c index e698647d..7bfeb06f 100644 --- a/mbnntp/commands.c +++ b/mbnntp/commands.c @@ -290,6 +290,15 @@ void command_group(char *cmd) */ if (msgs.Active && (msgs.Type == ECHOMAIL) && strlen(msgs.Newsgroup) && (strcasecmp(opt, msgs.Newsgroup) == 0) && Access(usrconfig.Security, msgs.RDSec)) { + /* + * Returns: + * 211 n f l s group selected + * (n = estimated number of articles in group, + * f = first article number in the group, + * l = last article number in the group, + * s = name of the group.) + * 411 no such news group + */ if (Msg_Open(msgs.Base)) { Msg_Number(); Msg_Highest(); diff --git a/mbnntp/mbnntp.c b/mbnntp/mbnntp.c index 0e748175..2677bda4 100644 --- a/mbnntp/mbnntp.c +++ b/mbnntp/mbnntp.c @@ -265,7 +265,7 @@ void nntp(void) if (len == 0) continue; - if (strcasecmp(buf, (char*)"AUTHINFO PASS")) { + if (strcasestr(buf, "AUTHINFO PASS") == NULL) { Syslog('n', "< \"%s\"", printable(buf, 0)); } else { Syslog('n', "< \"AUTHINFO PASS ********\"");