~soywod/pimalaya

3 3

Trying to get himalaya running on macOS

Details
Message ID
<01445FB3-49B5-4844-98DB-50D3806F31FE@gmail.com>
DKIM signature
pass
Download raw message
Hi,

I’ve recently came across himalaya from a comment on a HN thread.

I’m on macOS. Installed via Homebrew, added my account details in a ~/.himalayarc file as follows:

display-name = "Ilker Mutlu"
downloads-dir = "~/Downloads"
signature = "Thanks,\nIlker Mutlu"
email-listing-page-size = 30

[gmail]
default = true
email = "ilker.mutlu@gmail.com"

backend = "imap"
imap-host = "imap.gmail.com"
imap-port = 993
imap-login = "ilker.mutlu@gmail.com"
imap-passwd-cmd = "op item get Google --fields password"

sender = "smtp"
smtp-host = "smtp.gmail.com"
smtp-port = 465
smtp-login = "ilker.mutlu@gmail.com"
smtp-passwd-cmd = "op item get Google --fields password"

[gmail.folder-aliases]
inbox = "INBOX"
sent = "[Gmail]/Sent Mail"
drafts = "[Gmail]/Drafts"
trash = "[Gmail]/Trash"

Can confirm the imap-passwd-cmd is working as expected.

I have previously managed to get this account working on Mutt, so I’m guessing my Google security configuration should be ok.

Here’s the debug log when I try to run himalaya:

[2023-02-24T15:38:06Z DEBUG himalaya::config::config] path: None
[2023-02-24T15:38:06Z DEBUG himalaya_lib::process] running command: op item get Google --fields password
[2023-02-24T15:38:07Z DEBUG himalaya::domain::email::handlers] page size: 30
[2023-02-24T15:38:07Z INFO  himalaya_lib::backend::imap::backend] listing imap envelopes from folder INBOX
Error: cannot find session from pool at cursor 0

I’m pretty clueless what needs to be done. Any help would be much appreciated.

Thanks,
Ilker Mutlu
Details
Message ID
<dd898bc0-28a4-436c-9327-4c09005b87b8@aasrud.com>
In-Reply-To
<01445FB3-49B5-4844-98DB-50D3806F31FE@gmail.com> (view parent)
DKIM signature
pass
Download raw message
Hi Ilker, glad to have you here!

Gmail account passwords cannot be used directly. You'll need to create a 
password for third party accounts. We've written a guide on it in our 
[docs]. We hope to also have better error messages on this in the future.

The reason this is necessary is because Google is not willing to operate 
on common standards. They blame the workaround on OAuth, but this has 
never been an issue for me with other email providers. You should 
consider changing to another provider (though I get that the Google 
ecosystem can be hard to escape.)

[docs]: https://pimalaya.org/himalaya/docs/cli/configuration/gmail.html
Details
Message ID
<CE3CF918-A88F-4999-9216-04763EBD346C@gmail.com>
In-Reply-To
<dd898bc0-28a4-436c-9327-4c09005b87b8@aasrud.com> (view parent)
DKIM signature
pass
Download raw message
Thanks Knud!

I’ll have another go when I can.

Have a good weekend!

> On 24 Feb 2023, at 16:13, Knut Magnus Aasrud <km@aasrud.com> wrote:
> 
> Hi Ilker, glad to have you here!
> 
> Gmail account passwords cannot be used directly. You'll need to create a password for third party accounts. We've written a guide on it in our [docs]. We hope to also have better error messages on this in the future.
> 
> The reason this is necessary is because Google is not willing to operate on common standards. They blame the workaround on OAuth, but this has never been an issue for me with other email providers. You should consider changing to another provider (though I get that the Google ecosystem can be hard to escape.)
> 
> [docs]: https://pimalaya.org/himalaya/docs/cli/configuration/gmail.html
Details
Message ID
<222A562C-E842-45C5-ADE8-4AE2886C40A3@djha.skin>
In-Reply-To
<01445FB3-49B5-4844-98DB-50D3806F31FE@gmail.com> (view parent)
DKIM signature
pass
Download raw message
On February 24, 2023 8:46:51 AM MST, Ilker Mutlu <ilker.mutlu@gmail.com> wrote:
>Hi,
>
>I’ve recently came across himalaya from a comment on a HN thread.
>
>I’m on macOS. Installed via Homebrew, added my account details in a ~/.himalayarc file as follows:
>
>display-name = "Ilker Mutlu"
>downloads-dir = "~/Downloads"
>signature = "Thanks,\nIlker Mutlu"
>email-listing-page-size = 30
>
>[gmail]
>default = true
>email = "ilker.mutlu@gmail.com"
>
>backend = "imap"
>imap-host = "imap.gmail.com"
>imap-port = 993
>imap-login = "ilker.mutlu@gmail.com"
>imap-passwd-cmd = "op item get Google --fields password"
>
>sender = "smtp"
>smtp-host = "smtp.gmail.com"
>smtp-port = 465
>smtp-login = "ilker.mutlu@gmail.com"
>smtp-passwd-cmd = "op item get Google --fields password"
>
>[gmail.folder-aliases]
>inbox = "INBOX"
>sent = "[Gmail]/Sent Mail"
>drafts = "[Gmail]/Drafts"
>trash = "[Gmail]/Trash"
>
>Can confirm the imap-passwd-cmd is working as expected.
>
>I have previously managed to get this account working on Mutt, so I’m guessing my Google security configuration should be ok.
>
>Here’s the debug log when I try to run himalaya:
>
>[2023-02-24T15:38:06Z DEBUG himalaya::config::config] path: None
>[2023-02-24T15:38:06Z DEBUG himalaya_lib::process] running command: op item get Google --fields password
>[2023-02-24T15:38:07Z DEBUG himalaya::domain::email::handlers] page size: 30
>[2023-02-24T15:38:07Z INFO  himalaya_lib::backend::imap::backend] listing imap envelopes from folder INBOX
>Error: cannot find session from pool at cursor 0
>
>I’m pretty clueless what needs to be done. Any help would be much appreciated.
>
>Thanks,
>Ilker Mutlu
A lot of work has been done to improve that error
message you got to give you more information.
You should be able to use the new error
handling code in the next version.

Until then, you can `cargo install --path .` the
develop branch to get better error messages.

You can also set `RUST_LOG=TRACE`, to figure
out what's going on.

Hope this helps.
Reply to thread Export thread (mbox)