I have Gnus set up to get mail via nnimap and it works fine, except for one small problem: It shows all directories twice, once with a slash as the separator, once with a dot as the separator. So I have a list that looks roughly like this:

12: Test/INBOX/Stackexchange
 *: Test.INBOX.Stackexchange

The directories with a dot as the separator are not subscribed, so at least I don't always see them, but they also cannot be opened (Emacs says they do not exist) and so they're pretty annoying. Is there a way to get rid of them? Maybe I need to delete some sort of cache to fix the problem. I tried gnus-group-clear-data-on-native-groups, but that didn't help.

1 Answer 1


Test.INBOX.Stackexchange is the cached directory item stored at ~/.newsrc.eld.

You could delete the ~/.newsrc.eld and re-subscribe the mail folders from the scratch.

Personally I don't like ~/.newsrc.eld. I prefer explicitly specify the folders I want to subscribe in ~/.gnus.el.

So there is another solution by using gnus topics.

Insert below code into ~/.gnus.el

(add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
(eval-after-load 'gnus-topic
     (setq gnus-message-archive-group '((format-time-string "sent.%Y")))
     (setq gnus-topic-topology '(("Gnus" visible)
                                 (("misc" visible))
                                 (("hotmail" visible nil nil))
                                 (("gmail" visible nil nil))))

     (setq gnus-topic-alist '(("hotmail" ; the key of topic
                              ("gmail" ; the key of topic
                               "[Gmail]/Sent Mail"
                              ("misc" ; the key of topic

BTW, you can check https://github.com/redguardtoo/mastering-emacs-in-one-year-guide/blob/master/gnus-guide-en.org

  • I deleted .newsrc as well for good measure (it contained the wrong directories as well).
    – Soong
    Mar 7, 2016 at 18:22
  • .newsrc contains the statistics for each directory, it's OK to delete it too.
    – chen bin
    Mar 8, 2016 at 1:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.