Subject: bug#23342: 25.0.92; Gnus doesn't honor nnimap-address

From: Live System User <[email-masked]>
Date: Sat, 23 Apr 2016 07:06:47 -0400

Andreas Schwab <[email-masked]> writes:

> Does this patch help?

Unfortunately no.

1. I first start up Gnus and I get dialog box to put in my passphrase
   for my authinfo.gpg file.

2. I then get an *Error* buffer error from "gpg2"

   Error while decrypting with "gpg2":

          gpg: CAST5 encrypted data
          gpg: encrypted with 1 passphrase
          gpg: DBG: cleared passphrase cached with ID: XXXXXXXXXXXXXXXXX
          gpg: decryption failed: Bad session key

   Probably because it was encrypted with "gpg"

3. I then get hostname resolve error as posted previously..

Thanks for looking into this.

>
> Andreas.
>
> Index: emacs-25.0.92/lisp/gnus/gnus-group.el
> ===================================================================
> --- emacs-25.0.92.orig/lisp/gnus/gnus-group.el
> +++ emacs-25.0.92/lisp/gnus/gnus-group.el
> @@ -4109,9 +4109,14 @@ If DONT-SCAN is non-nil, scan non-activa
>        (gnus-group-remove-mark group)
>        ;; Bypass any previous denials from the server.
>        (gnus-remove-denial (setq method (gnus-find-method-for-group group)))
> -      (if (or (and (not dont-scan)
> -		   (gnus-request-group-scan group (gnus-get-info group)))
> -	      (gnus-activate-group group (if dont-scan nil 'scan) nil method))
> +      (if (if (and (not dont-scan)
> +		   ;; Prefer request-group-scan if the backend supports it.
> +		   (gnus-check-backend-function 'request-group-scan group))
> +	      (progn
> +		;; Ensure that the server is already open.
> +		(gnus-activate-group group nil nil method)
> +		(gnus-request-group-scan group (gnus-get-info group)))
> +	    (gnus-activate-group group (if dont-scan nil 'scan) nil method))
>  	  (let ((info (gnus-get-info group))
>  		(active (gnus-active group)))
>  	    (when info