Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document IMAP extensions config option #548

Open
amitbha opened this issue Jan 23, 2025 · 2 comments
Open

Document IMAP extensions config option #548

amitbha opened this issue Jan 23, 2025 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@amitbha
Copy link

amitbha commented Jan 23, 2025

General informations

  • system: CachyOS
  • himalaya v1.1.0 +smtp +wizard +pgp-gpg +notmuch +sendmail +imap +maildir +pgp-commands build: linux gnu x86_64
  • server name: imap.126.com

Logs

$ himalaya envelope list --debug
2025-01-23T02:21:57.902304Z  INFO himalaya::email::envelope::command::list: executing list envelopes command
2025-01-23T02:21:57.902353Z DEBUG email::imap: building 1 IMAP clients
2025-01-23T02:21:57.927991Z DEBUG client::build: rustls::client::hs: No cached session for DnsName("imap.126.com")
2025-01-23T02:21:57.928054Z DEBUG client::build: rustls::client::hs: Not resuming any session
2025-01-23T02:21:57.933595Z DEBUG client::build: rustls::webpki::anchors: add_parsable_certificates processed 149 valid and 0 invalid certs
2025-01-23T02:21:57.933605Z DEBUG client::build: rustls_platform_verifier::verification::others: Loaded 149 CA certificates from the system
2025-01-23T02:21:57.959565Z DEBUG client::build: rustls::client::hs: Using ciphersuite TLS13_AES_256_GCM_SHA384
2025-01-23T02:21:57.959606Z DEBUG client::build: rustls::client::tls13: Not resuming
2025-01-23T02:21:57.959765Z DEBUG client::build: rustls::client::tls13: TLS1.3 encrypted extensions: []
2025-01-23T02:21:57.959775Z DEBUG client::build: rustls::client::hs: ALPN protocol is None
2025-01-23T02:21:58.032629Z DEBUG client::build: email::imap: using password authentication
2025-01-23T02:21:58.032657Z  INFO client::build: process::command: run shell command cmd="xxxx"
2025-01-23T02:21:58.032669Z DEBUG client::build: process::command: inherit stdin from parent
2025-01-23T02:21:58.032680Z DEBUG client::build: process::command: stdout piped
2025-01-23T02:21:58.032686Z DEBUG client::build: process::command: stderr piped
2025-01-23T02:21:58.051684Z DEBUG client::build: process::command: shell command gracefully exited code=0
2025-01-23T02:21:58.051719Z DEBUG client::build: email::imap: supported auth mechanisms mechanisms=[XOAuth2]
2025-01-23T02:21:58.051749Z DEBUG client::build: email::imap: trying auth mechanism… mechanism=XOAuth2
2025-01-23T02:21:58.051758Z DEBUG client::build: email::imap: trying login…
2025-01-23T02:21:58.139956Z DEBUG client::build: email::imap: login succeeded!
2025-01-23T02:21:58.140220Z  INFO email::email::envelope::list::imap: listing IMAP envelopes from mailbox INBOX
2025-01-23T02:21:58.140236Z DEBUG email::imap: client 1/1 is free, locking it
2025-01-23T02:21:58.140259Z DEBUG email::email::envelope::list::imap: UTF7-encoded mailbox name="INBOX"
Error:
   0: cannot select IMAP mailbox
   1: cannot resolve IMAP task
   2: unexpected NO response: SELECT Unsafe Login. Please contact [email protected] for help

Location:
   /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pimalaya-tui-0.2.2/src/himalaya/backend.rs:513

efforts

@amitbha amitbha marked this as a duplicate of #549 Jan 23, 2025
@soywod
Copy link
Member

soywod commented Jan 23, 2025

Someone already reported this issue (which is unfortunately not available anymore as it was on the previous bug tracker), and a non-documented fix already exists: just add backend.extensions.id.send-after-auth = true to your config file. See modern-email/defects#25 for more context about this defect.

@soywod soywod closed this as completed Jan 23, 2025
@soywod
Copy link
Member

soywod commented Jan 23, 2025

Let's keep this issue open for documenting this option.

@soywod soywod reopened this Jan 23, 2025
@soywod soywod changed the title Unsafe login error with server 'imap.126.com' Document IMAP extensions config option Jan 23, 2025
@soywod soywod added the documentation Improvements or additions to documentation label Jan 23, 2025
@soywod soywod added this to Pimalaya Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: No status
Development

No branches or pull requests

2 participants