tags 625732 patch
thanks

  Hi again,

On Thu, 5 May 2011 18:33:33 +0200
Pierre Habouzit <madco...@debian.org> wrote:

> What claws does:
> 
>     $ telnet localhost 119
>     Trying ::1...
>     Connected to apollon.madism.org.
>     Escape character is '^]'.
>     200 server.example.net InterNetNews server INN 2.5.3 (20110413
> snapshot) ready (transit mode) AUTHINFO USER test
>     502 Authentication will fail

  Can you try rebuilding claws-mail with the attached patch?

  regards,
-- 
 Ricardo Mones
 http://people.debian.org/~mones
 «If more of us valued food and cheer and song above hoarded gold, it 
 would be a merrier world. -- J.R.R. Tolkien»
Index: src/etpan/nntp-thread.c
===================================================================
RCS file: //claws/src/etpan/Attic/nntp-thread.c,v
retrieving revision 1.1.2.13
diff -u -r1.1.2.13 nntp-thread.c
--- src/etpan/nntp-thread.c	16 Feb 2011 07:16:19 -0000	1.1.2.13
+++ src/etpan/nntp-thread.c	9 May 2011 15:50:09 -0000
@@ -592,10 +592,13 @@
 	mailstream_debug = 0;
 #endif
 
-	r = newsnntp_authinfo_username(param->nntp, param->login);
-	if (r == NEWSNNTP_NO_ERROR || 
-	    r == NEWSNNTP_WARNING_REQUEST_AUTHORIZATION_PASSWORD) {
-		r = newsnntp_authinfo_password(param->nntp, param->password);
+	r = newsnntp_mode_reader(param->nntp);
+	if (r == NEWSNNTP_NO_ERROR) {
+		r = newsnntp_authinfo_username(param->nntp, param->login);
+		if (r == NEWSNNTP_NO_ERROR || 
+		    r == NEWSNNTP_WARNING_REQUEST_AUTHORIZATION_PASSWORD) {
+			r = newsnntp_authinfo_password(param->nntp, param->password);
+		}
 	}
 	
 

Attachment: signature.asc
Description: PGP signature

Reply via email to