pimalaya / himalaya

CLI to manage emails
https://pimalaya.org
MIT License
3.17k stars 95 forks source link

global keyring doesn't work on Windows #480

Closed djha-skin closed 3 weeks ago

djha-skin commented 1 month ago

Global keyring doesn't work on Windows.

10:50:56 C:\U\b\C\s\newone> himalaya
Himalaya could not find an already existing configuration file.
Would you like to create one with the wizard? yes

Configuring your first account:

✔ Account name · gmail
✔ Email address · REDACTED@gmail.com
✔ Full display name · Daniel Jay Haskin
✔ Email backend · IMAP
✔ IMAP host · imap.gmail.com
✔ IMAP security protocol · SSL/TLS
✔ IMAP port · 993
✔ IMAP login · REDACTED@gmail.com
✔ IMAP authentication mechanism · Password
✔ IMAP authentication strategy · Ask my password, then save it in my system's global keyring
✔ IMAP password · ********
✔ Email sender · SMTP
✔ SMTP host · smtp.gmail.com
✔ SMTP security protocol · SSL/TLS
✔ SMTP port · 465
✔ SMTP login · REDACTED@gmail.com
✔ SMTP authentication mechanism · Password
✔ SMTP authentication strategy · Ask the password, then save it in my system's global keyring
✔ SMTP password · ********
Would you like to configure another account? no
✔ Where would you like to save your configuration? · C:\Users\bhw\AppData\Roaming\himalaya\config.toml
Writing the configuration to "C:\\Users\\bhw\\AppData\\Roaming\\himalaya\\config.toml"…
Error: cannot get imap password from global keyring

Caused by:
    0: cannot get keyring entry secret for key gmail-imap-passwd
    1: No matching entry found in secure storage
soywod commented 1 month ago

It may be related to an issue that has already been fixed. Which version do you run?

soywod commented 3 weeks ago

There is some OS-specific issue going on keyring, I would advise to wait for #484 to resolve first. It should definitely fix your issue as well.