Something I've done but not yet identified has hosed my working-for-years Gnus<->offlineimap<->GMail setup. Gnus gives me a bunch of errors like:

Warning - invalid active: [Gmail].Starred 26 2 y

for each of the 8 standard GMail folders being synced (Sent, Important, Trash, Spam, All Mail, Bin, Starred, and Drafts) and presents a *Group* buffer consisting of nothing but:

4: nndraft:drafts

instead of the dozens of subscribed groups (mail folders) I expect to see.

I find no relevant matches for 'invalid' in the Gnus manual, nor anything in multiple web searches.

One piece of context: after this first happened, I checked my offlineimap logs and found there were a lot of folder UID errors, so I completely rebuilt my offlineimap local repo from scratch, which took almost 48 hours.

Possibly relevant Gnus user options:

         ((not gnus-article-sort-by-number))))
'(gnus-check-new-newsgroups nil)
     (quote mail-extract-address-components))
'(gnus-home-directory "~/.emacs.d/gnus/")
'(gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\( \\|$\\)\\|^[\"]\"[#'()]")
'(gnus-init-file "~/.emacs.d/.gnus.el")
'(gnus-large-newsgroup nil)
              (visible . t))
                 (display . 75))
             ("All Mail"
                 (display . 75)))))
'(gnus-read-active-file nil)
'(gnus-read-newsrc-file nil)
'(gnus-save-killed-list nil)
'(gnus-save-newsrc-file nil)
         (nnmaildir "GMail"
             (directory "~/GMail/")
             (directory-files nnheader-directory-files-safe)
             (get-new-mail nil))))
         (ph/gnus-redisplay-groups ph/setup-bbdb)))
     (quote gnus-subscribe-alphabetically))
         ((not gnus-thread-sort-by-number)
             (not gnus-thread-sort-by-date))))
'(gnus-use-scoring nil)

gnus-version is "Gnus v5.13" and emacs-version is "24.5.1"

  • Have you tried running offlineimap in a terminal without using gnus to see if the problem is unrelated to Emacs?
    – lawlist
    May 27, 2016 at 14:19
  • Sorry if it wasn't clear, but yes I have, that's what the para starting 'One piece of context' describes. offlineimap is now running clean. May 27, 2016 at 16:05
  • Found the relevant source, but don't understand it: line 2208 of gnus-start.el, function gnus-active-to-gnus-format. No docstring but the following comment: ;; Read an active file and place the results in 'gnus-active-hashtb'. May 27, 2016 at 16:21


You must log in to answer this question.

Browse other questions tagged .