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

Unable to send emails when using ProtonMail bridge #87

Closed
srid opened this issue Apr 9, 2021 · 6 comments · Fixed by #94
Closed

Unable to send emails when using ProtonMail bridge #87

srid opened this issue Apr 9, 2021 · 6 comments · Fixed by #94
Labels
bug Something isn't working

Comments

@srid
Copy link
Contributor

srid commented Apr 9, 2021

(protonmail bridge runs a local IMAP server)

Listing and reading emails work, but for some reason I cannot send any emails using himalaya.

❯ h -l trace  write
Logger initialized
Output format: PLAIN
Log level: TRACE
Subcommand matched: write
(s)end, (d)raft, (e)dit or (q)uit? s
Sending message…
Connection error: Could not connect
Connection error: Could not connect
Connection error: Could not connect
Connection error: Could not connect
Connection error: Could not connect
Connection error: Could not connect
Connection error: Could not connect
internal client error: timed out waiting for connection: Connection error: Could not connect

There is nothing in the protonmail-bridge log, so I suspect the request is not even reaching it.

Other email clients work.

Let me know if there is a way to provide more diagnostic info.

@soywod
Copy link
Member

soywod commented Apr 9, 2021

I think it's linked to #60. I tried myself the protonmail bridge and I was not able to reproduce 😞 so I have not a single clue on how to fix this.

@soywod soywod added bug Something isn't working cli help wanted Extra attention is needed labels Apr 9, 2021
@srid
Copy link
Contributor Author

srid commented Apr 9, 2021

Perhaps something to do with timeout configuration?

https://protonmail.com/support/knowledge-base/thunderbird-connection-server-timed-error/

In Thunderbird, you may receive a “connection to server timed out” error when sending or receiving a message. Connection timeout errors occur when the server takes too long to respond to a request from your device.

You may be able to prevent this error by increasing the length of time the email client will wait for a response from the server.

@soywod
Copy link
Member

soywod commented Apr 9, 2021

I can try to increase the timeout for the next release and see!

soywod added a commit that referenced this issue Apr 11, 2021
soywod added a commit that referenced this issue Apr 11, 2021
@srid
Copy link
Contributor Author

srid commented Apr 13, 2021

Shouldn't this include smtp_port?

https://github.com/soywod/himalaya/blob/926f476194a66d6854d302f9f846e71b7880b72c/src/smtp.rs#L24-L28

@srid
Copy link
Contributor Author

srid commented Apr 13, 2021

Yup, that fixes it! Now I can move forward with scripting more with himalaya :-)

@soywod
Copy link
Member

soywod commented Apr 13, 2021

Shouldn't this include smtp_port?

Yes indeed... Nice catch dude, it was a tricky one!

@soywod soywod removed the help wanted Extra attention is needed label Apr 17, 2021
@soywod soywod self-assigned this Apr 17, 2021
@soywod soywod added this to the v1 milestone Apr 17, 2021
@soywod soywod removed their assignment Feb 11, 2022
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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants