Hello,

On Tue 16 Dec 2025 at 04:12am -08, Xiyue Deng wrote:

> Hi,
>
> I have been using nnmaildir together with offlineimap and notmuch for my
> Gmail and Outlook email accounts.  This turns out to work reasonably
> well (even though slower than notmuch.el but bearable.)  However a small
> annoyance is that nnmaildir does not subscribe to the Gmail specific
> folders by default, e.g. "[Gmail].Sent Mail", "[Gmail].Spam", etc.  With
> some initial digging I found that they are given group level 9 which I
> think is the reason.
>
> I then tried to use `gnus-subscribe-group' to manually subscribe them.
> This kind of worked and those folders did show up in the topic buffer.
> But then they are not scanned for new messages by default until I
> manually checked them (by hitting RET on each one.) And this state is
> reset next time I launch Gnus, which is cumbersome.
>
> Note that this is happening on nnmaildir backend.  When using nnimap
> those folders are subscribed by default, which I think means that they
> are given a lower group level value in nnimap.
>
> So I wonder how a group level is determined in nnmaildir and why it's
> different than in nnimap?  Hopefully this can help me understand the
> internals of Gnus better so that I can change the settings to meet my
> expectations better.

My knowledge of the internals is not strong, but my strategy is to
programmatically set subscription levels in a function added to
gnus-started-hook.

Also, if you're not aware of gnus-activate-level, take a look, that
might be why things aren't being scanned when you expect them to be.

-- 
Sean Whitton

Reply via email to