Commit 544b9969 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen
Browse files

Only save .newsrc file if the native method is NNTP

* lisp/gnus/gnus-start.el (gnus-save-newsrc-file): Only save
the .newsrc file if the native select method is NNTP
(bug#18198).  This avoids problems with invalid IMAP group
names and the like in the .newsrc file.
parent 7a7c0b17
......@@ -2801,8 +2801,13 @@ If FORCE is non-nil, the .newsrc file is read."
(gnus-run-hooks 'gnus-save-newsrc-hook)
(if gnus-slave
;; Save .newsrc.
(when gnus-save-newsrc-file
;; Save .newsrc only if the select method is an NNTP method.
;; The .newsrc file is for interoperability with other
;; newsreaders, so saving non-NNTP groups there doesn't make
;; much sense.
(when (and gnus-save-newsrc-file
(eq (car (gnus-server-to-method gnus-select-method))
(gnus-message 8 "Saving %s..." gnus-current-startup-file)
(gnus-message 8 "Saving %s...done" gnus-current-startup-file))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment