Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cannot cd to a dir "[Gmail]/" with imap #4745

@scottkosty

Description

@scottkosty

NeoMutt Version

NeoMutt 20251211-16-cbaf4a
Copyright (C) 2015-2025 Richard Russon and friends
NeoMutt comes with ABSOLUTELY NO WARRANTY; for details type 'neomutt -vv'.
NeoMutt is free software, and you are welcome to redistribute it
under certain conditions; type 'neomutt -vv' for details.

System: Linux 6.14.0-37-generic (x86_64)
ncurses: ncurses 6.5.20250216 (compiled with 6.5.20250216)
libidn2: 2.3.8 (compiled with 2.3.8)
OpenSSL: OpenSSL 3.4.1 11 Feb 2025
libnotmuch: 5.6.0
storage: tokyocabinet

Configure options: --ssl --sasl --enable-notmuch --enable-debug --tokyocabinet --asan --prefix=/usr/local

Compilation CFLAGS: -std=c11 -fno-delete-null-pointer-checks -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -D_XOPEN_SOURCE_EXTENDED -I/usr/local/include -DNCURSES_WIDECHAR -fsanitize=address -fno-omit-frame-pointer -fno-common -g -O0

Compile options:
  -autocrypt +fcntl -flock -fmemopen +futimens +getaddrinfo -gnutls -gpgme 
  -gsasl -gss +hcache -homespool +idn +inotify -locales_hack -lua +nls +notmuch 
  +openssl +pgp +regex +sasl +smime -sqlite +truecolor 

Devel options:
  asan 

MAILPATH="/var/mail"
PKGDATADIR="/usr/local/share/neomutt"
SENDMAIL="/usr/sbin/sendmail"
SYSCONFDIR="/usr/local/etc"

To learn more about NeoMutt, visit: https://neomutt.org
If you find a bug in NeoMutt, please raise an issue at:
    https://github.com/neomutt/neomutt/issues
or send an email to: <[email protected]>

Expected Behaviour

If I do c<tab> and then choose "[Gmail]/", I expect to be given the usual list of subdirs to choose from (e.g., SPAM).

Actual Behaviour

neomutt does not cd and reports the following:

[NONEXISTENT] Unknown Mailbox: [Gmail] (Failure)

Steps to Reproduce

I type c then <tab> then select "[Gmail]/", then press <enter>.

Here is a minimal config that I can reproduce with:

set realname = 'Scott Kostyshak'
set imap_user = '[email protected]'
set imap_pass = "<not-my-real-password>"

set smtp_url = "smtp://[email protected]:587/"
set smtp_pass = $imap_pass

## for muttlive:
## first, delete the corresponding ones above
set spoolfile = imaps://imap.gmail.com:993/INBOX
set folder = "imaps://imap.gmail.com:993"

How often does this happen?

  • Always

When did it start to happen?

A bisect leads to 41dbc2a.

  • Is your email local (maildir) or remote (IMAP)?

IMAP.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions