Small fix posting news

This commit is contained in:
Michiel Broek 2007-03-10 14:35:03 +00:00
parent 1f9ffdbb42
commit aebb30039f
3 changed files with 12 additions and 3 deletions

View File

@ -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.

View File

@ -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();

View File

@ -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 ********\"");