Discussion:
IMAP mailboxes in the sidebar
Felix Finch
2018-09-16 18:48:18 UTC
Permalink
Ubuntu 18.04, Mutt 1.9.4.

set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
set sidebar_new_mail_only=no
set sidebar_visible=yes

The sidebar shows only INBOX. All other mailboxes are absent. The same mutt sidebar is fine for local maildirs with a different muttrc.

I tried setting

sidebar_whitelist =INBOX "=All Mail"

and that makes no difference. I can change to that mailbox using "=All<tab>", so mutt knows it's a valid name, just can't see it in the sidebar.

I can only guess it's something to do with IMAP or Lookout (it's a Lookout IMAP server).
--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & wood chipper / ***@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
Arturo
2018-09-16 23:54:51 UTC
Permalink
Post by Felix Finch
Ubuntu 18.04, Mutt 1.9.4.
set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
set sidebar_new_mail_only=no
set sidebar_visible=yes
The sidebar shows only INBOX. All other mailboxes are absent. The same mutt sidebar is fine for local maildirs with a different muttrc.
I tried setting
sidebar_whitelist =INBOX "=All Mail"
and that makes no difference. I can change to that mailbox using "=All<tab>", so mutt knows it's a valid name, just can't see it in the sidebar.
I can only guess it's something to do with IMAP or Lookout (it's a Lookout IMAP server).
--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
Does it work if you put the full path?

sidebar_whitelist imaps://imap.gmail.com:993/Devel imaps://imap.gmail.com:993/Family imaps://imap.gmail.com:993/[Gmail]/Starred
Felix Finch
2018-09-17 00:09:15 UTC
Permalink
Post by Arturo
Post by Felix Finch
Ubuntu 18.04, Mutt 1.9.4.
set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
set sidebar_new_mail_only=no
set sidebar_visible=yes
The sidebar shows only INBOX. All other mailboxes are absent. The same mutt sidebar is fine for local maildirs with a different muttrc.
I tried setting
sidebar_whitelist =INBOX "=All Mail"
and that makes no difference. I can change to that mailbox using "=All<tab>", so mutt knows it's a valid name, just can't see it in the sidebar.
I can only guess it's something to do with IMAP or Lookout (it's a Lookout IMAP server).
Does it work if you put the full path?
sidebar_whitelist imaps://imap.gmail.com:993/Devel imaps://imap.gmail.com:993/Family imaps://imap.gmail.com:993/[Gmail]/Starred
I tried variations on that, no difference. But if it can pick up =INBOX, why would it need the full path to others?
--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & wood chipper / ***@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
Arturo
2018-09-17 00:22:55 UTC
Permalink
Post by Felix Finch
Post by Arturo
Post by Felix Finch
Ubuntu 18.04, Mutt 1.9.4.
set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
set sidebar_new_mail_only=no
set sidebar_visible=yes
The sidebar shows only INBOX. All other mailboxes are absent. The same mutt sidebar is fine for local maildirs with a different muttrc.
I tried setting
sidebar_whitelist =INBOX "=All Mail"
and that makes no difference. I can change to that mailbox using "=All<tab>", so mutt knows it's a valid name, just can't see it in the sidebar.
I can only guess it's something to do with IMAP or Lookout (it's a Lookout IMAP server).
Does it work if you put the full path?
sidebar_whitelist imaps://imap.gmail.com:993/Devel imaps://imap.gmail.com:993/Family imaps://imap.gmail.com:993/[Gmail]/Starred
I tried variations on that, no difference. But if it can pick up =INBOX, why would it need the full path to others?
Well I had a similar issue. IIRC, INBOX was always there regardless for me,
but I had to use the full path to get anything else to work. There was a
bug (since fixed) in NeoMutt where it wasnt' expanding = or + to
the full path. Sounds like the same issue to me here in Mutt.

https://github.com/neomutt/neomutt/issues/485
Felix Finch
2018-09-17 01:11:43 UTC
Permalink
Post by Arturo
Post by Felix Finch
Post by Arturo
Post by Felix Finch
Ubuntu 18.04, Mutt 1.9.4.
set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
set sidebar_new_mail_only=no
set sidebar_visible=yes
The sidebar shows only INBOX. All other mailboxes are absent. The same mutt sidebar is fine for local maildirs with a different muttrc.
I tried setting
sidebar_whitelist =INBOX "=All Mail"
and that makes no difference. I can change to that mailbox using "=All<tab>", so mutt knows it's a valid name, just can't see it in the sidebar.
I can only guess it's something to do with IMAP or Lookout (it's a Lookout IMAP server).
Does it work if you put the full path?
sidebar_whitelist imaps://imap.gmail.com:993/Devel imaps://imap.gmail.com:993/Family imaps://imap.gmail.com:993/[Gmail]/Starred
I tried variations on that, no difference. But if it can pick up =INBOX, why would it need the full path to others?
Well I had a similar issue. IIRC, INBOX was always there regardless for me,
but I had to use the full path to get anything else to work. There was a
bug (since fixed) in NeoMutt where it wasnt' expanding = or + to
the full path. Sounds like the same issue to me here in Mutt.
https://github.com/neomutt/neomutt/issues/485
I guess I'll try again, and differently :-)
--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & wood chipper / ***@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
Felix Finch
2018-09-17 01:56:41 UTC
Permalink
Post by Felix Finch
Post by Arturo
Post by Felix Finch
Post by Arturo
Post by Felix Finch
Ubuntu 18.04, Mutt 1.9.4.
set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
set sidebar_new_mail_only=no
set sidebar_visible=yes
The sidebar shows only INBOX. All other mailboxes are absent. The same mutt sidebar is fine for local maildirs with a different muttrc.
I tried setting
sidebar_whitelist =INBOX "=All Mail"
and that makes no difference. I can change to that mailbox using "=All<tab>", so mutt knows it's a valid name, just can't see it in the sidebar.
I can only guess it's something to do with IMAP or Lookout (it's a Lookout IMAP server).
Does it work if you put the full path?
sidebar_whitelist imaps://imap.gmail.com:993/Devel imaps://imap.gmail.com:993/Family imaps://imap.gmail.com:993/[Gmail]/Starred
I tried variations on that, no difference. But if it can pick up =INBOX, why would it need the full path to others?
Well I had a similar issue. IIRC, INBOX was always there regardless for me,
but I had to use the full path to get anything else to work. There was a
bug (since fixed) in NeoMutt where it wasnt' expanding = or + to
the full path. Sounds like the same issue to me here in Mutt.
https://github.com/neomutt/neomutt/issues/485
I guess I'll try again, and differently :-)
I tried every combination I could think of, including putting my username and password in the URL. Crickets.

I also tried eliminating the sidebar_whitelist command altogether. Nomatter what I do, the sidebar shows "INBOX 10" and nothing else.

About the only reaction I got as deliberate syntax errors, such as "set sidebar_whitelist ...". Otherwise it acts like that line is not even present.
--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & wood chipper / ***@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
Kevin J. McCarthy
2018-09-17 05:14:18 UTC
Permalink
Post by Arturo
Well I had a similar issue. IIRC, INBOX was always there regardless for me,
but I had to use the full path to get anything else to work. There was a
bug (since fixed) in NeoMutt where it wasnt' expanding = or + to
the full path. Sounds like the same issue to me here in Mutt.
https://github.com/neomutt/neomutt/issues/485
The commit there was pulled over _from_ Mutt into NeoMutt, and is in
Mutt versions 1.8.1 and later.
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
Arturo
2018-09-17 05:46:31 UTC
Permalink
Post by Kevin J. McCarthy
Post by Arturo
Well I had a similar issue. IIRC, INBOX was always there regardless for me,
but I had to use the full path to get anything else to work. There was a
bug (since fixed) in NeoMutt where it wasnt' expanding = or + to
the full path. Sounds like the same issue to me here in Mutt.
https://github.com/neomutt/neomutt/issues/485
The commit there was pulled over _from_ Mutt into NeoMutt, and is in
Mutt versions 1.8.1 and later.
Oh yeah! Thanks for the reminder and the fix! I had a glance at the
archive just now... I reached out to those guys after not getting any
reponse here for a couple of days. I thought the list was dead.
Kevin J. McCarthy
2018-09-17 05:26:24 UTC
Permalink
Post by Felix Finch
Ubuntu 18.04, Mutt 1.9.4.
set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
set sidebar_new_mail_only=no
set sidebar_visible=yes
The sidebar shows only INBOX. All other mailboxes are absent. The
same mutt sidebar is fine for local maildirs with a different muttrc.
Forgive me for asking what may be a stupid question, but have you
*listed* all the mailboxes in question with a 'mailboxes' command in
your muttrc?

If so, is there any chance you have something running under a hook that
is calling unmailboxes? What happens if you add 'mailboxes foo' to your
muttrc?

Alternatively you could try enabling $imap_check_subscribed and make
sure all the relevant mailboxes are subscribed to.
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
Felix Finch
2018-09-17 12:44:34 UTC
Permalink
Post by Kevin J. McCarthy
Forgive me for asking what may be a stupid question, but have you
*listed* all the mailboxes in question with a 'mailboxes' command in
your muttrc?
If so, is there any chance you have something running under a hook that
is calling unmailboxes? What happens if you add 'mailboxes foo' to your
muttrc?
Alternatively you could try enabling $imap_check_subscribed and make
sure all the relevant mailboxes are subscribed to.
That does it -- sort of:

mailboxes +INBOX +'All Mail'

It does show those two in teh sidebar. But "mailboxes" is only for incoming mail:

This command specifies folders which can receive mail and which will be checked for new messages periodically.

I want all the mailboxes available, as determined by Lookout, in the sidebar, but only INBOX needs to be checked for new mail. I've tried all combinations of yes and no for these two variables, along with defining "mailboxes" or not, and the only one which matters is "mailboxes".

set imap_check_subscribed
When set, mutt will fetch the set of subscribed folders from your server on connection, and add them to the set of mailboxes it polls for new mail just as if you had issued individual “mailboxes” commands.

set imap_list_subscribed
This variable configures whether IMAP folder browsing will look for only subscribed folders or all folders.

imap_check_subscribed is not clear to me. I like the "fetch the set of subscribed folder", but they don't need to be checked for new mail (only INBOX does).

Maybe it is this "subscription" jargon which is tripping me up. When I use Lookout itself (ugh!), it shows about a dozen mailboxes. That's what I want mutt to show.
--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & wood chipper / ***@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
Kevin J. McCarthy
2018-09-17 16:15:00 UTC
Permalink
Post by Felix Finch
This command specifies folders which can receive mail and which
will be checked for new messages periodically.
I want all the mailboxes available, as determined by Lookout, in the
sidebar, but only INBOX needs to be checked for new mail.
Sorry, that's how the sidebar is built - it piggybacks on the
'mailboxes' list for determining what to display.
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
Felix Finch
2018-09-17 18:00:39 UTC
Permalink
Post by Kevin J. McCarthy
Post by Felix Finch
This command specifies folders which can receive mail and which
will be checked for new messages periodically.
I want all the mailboxes available, as determined by Lookout, in the
sidebar, but only INBOX needs to be checked for new mail.
Sorry, that's how the sidebar is built - it piggybacks on the
'mailboxes' list for determining what to display.
Nothing to be apologize for :-) but is there no way for Mutt to ask the server what mailboxes exist?
--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & wood chipper / ***@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
Continue reading on narkive:
Search results for 'IMAP mailboxes in the sidebar' (Questions and Answers)
3
replies
what is protocal?
started 2007-04-24 22:25:12 UTC
computer networking
Loading...