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

protonmail authentication failure #556

Open
y86-dev opened this issue Feb 5, 2025 · 3 comments
Open

protonmail authentication failure #556

y86-dev opened this issue Feb 5, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@y86-dev
Copy link

y86-dev commented Feb 5, 2025

I tried to connect to the protonmail-bridge, but it never connects and just hangs. Here is the trace:

$ himalaya --trace
2025-02-05T11:19:48.753102Z  INFO himalaya::email::envelope::command::list: executing list envelopes command
2025-02-05T11:19:48.753158Z DEBUG email::imap: building 1 IMAP clients
2025-02-05T11:19:48.753420Z TRACE client::build: imap_client::stream: more input needed
2025-02-05T11:19:48.753523Z TRACE client::build: imap_client::stream: read 127/1024 bytes
2025-02-05T11:19:48.753550Z DEBUG client::build: email::imap: using password authentication
2025-02-05T11:19:48.753554Z DEBUG client::build: email::imap: supported auth mechanisms mechanisms=[Plain]
2025-02-05T11:19:48.753563Z DEBUG client::build: email::imap: trying auth mechanism… mechanism=Plain
2025-02-05T11:19:48.753579Z TRACE client::build: imap_client::tasks: enqueue task command=Command { tag: Tag("0.0.BG62Pa2Z"), body: Authenticate { mechanism: Plain, initial_response: None } }
2025-02-05T11:19:48.753607Z TRACE client::build: imap_client::stream: wrote 33/33 bytes
2025-02-05T11:19:48.753689Z TRACE client::build: imap_client::stream: read 3/1024 bytes
2025-02-05T11:19:48.753698Z  WARN client::build: email::imap: authentication failed mechanism=Plain err=Stream(State(Flow(MalformedMessage { discarded_bytes: /* REDACTED */ })))
2025-02-05T11:19:48.753721Z DEBUG client::build: email::imap: trying login…
2025-02-05T11:19:48.753727Z TRACE client::build: imap_client::tasks: enqueue task command=Command { tag: Tag("0.1.2bwyznPq"), body: Login { username: Atom(AtomExt("[REDACTED]@proton.me")), password: /* REDACTED */ } }
2025-02-05T11:19:48.753734Z TRACE client::build: imap_client::stream: more input needed

My config is set up like the readme says:

[accounts.proton]
default = true
email = "[REDACTED]@proton.me"

[accounts.proton.backend]
type = "imap"
host = "127.0.0.1"
port = 1143
encryption.type = "none"
login = "[REDACTED]@proton.me"
auth.type = "password"
auth.raw = "****"

[accounts.proton.message.send.backend]
type = "smtp"
host = "127.0.0.1"
port = 1025
encryption.type = "none"
login = "[REDACTED]@proton.me"
auth.type = "password"
auth.raw = "****"

I have no idea why this doesn't work, since thunderbird does just fine. I am on nixos.

$ himalaya --version
himalaya v1.1.0 +wizard +pgp-commands +maildir +smtp +sendmail +imap
build: linux gnu x86_64
git: unknown, rev unknown
@soywod
Copy link
Member

soywod commented Feb 5, 2025

There are so many issues with Proton bridge that I will have to create an account and test myself. Thank you for the report!

@soywod soywod added the bug Something isn't working label Feb 5, 2025
@soywod soywod added this to Pimalaya Feb 5, 2025
@soywod soywod moved this to Todo in Pimalaya Feb 5, 2025
@soywod soywod self-assigned this Feb 5, 2025
@soywod
Copy link
Member

soywod commented Feb 7, 2025

Good news, may be related to #546 (comment)

@gl-yziquel
Copy link
Contributor

@y86-dev I had the proton-bridge working with lower versions of both himalaya and the proton-bridge. Only problem was the paging behaviour. Just so you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

3 participants