Open heywoodlh opened 3 years ago
I also had this issue (with a very similar configuration to you, rootless Docker + WireGuard VPN). I was able to workaround the issue by commenting out the conditional described in #96, and then emails appeared properly.
I don't fully understand the implications of just removing this code, however.
Strangely enough, while this issue affects Mail.app on iOS, Mail.app on macOS just (seemingly) doesn't care at all.
Thanks for the tip @kthchew. I removed that conditional in my Docker image and it is working now!
Hi, thank you for a great project!
I use Hydroxide with
aerc
. The setup works perfectly withaerc
. However, when I attempt to use Apple Mail with the same Hydroxide instance on iOS it fails to fetch anything and complains with the following error:When I looked at logs it looked like it was logging in just fine and syncing the folders I was navigating to. Since it works fine in
aerc
but not in Apple Mail I’m sure that it’s a client issue in Apple Mail. But my question is why?I can see that it populated the number of emails in each folder but not the emails themselves.
Some unique points about my setup that may or may not be relevant:
Those two factors aren’t an issue with my
aerc
+ Hydroxide setup but I mention it just in case.The debug log doesn’t seem to have anything super obvious to me, but I’ve attached them anyway:
Debug log
```bash * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR AUTH=PLAIN] IMAP4rev1 Service Ready 1 AUTHENTICATE PLAIN + 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR MOVE] AUTHENTICATE completed 2 NOOP 2 OK NOOP completed 3 SELECT INBOX * FLAGS (\Seen \Deleted \Flagged \Draft SIGN_UP_NOTIFICATION) * OK [PERMANENTFLAGS (\Seen \Deleted \Flagged \Draft SIGN_UP_NOTIFICATION)] Flags permitted. * OK [UIDVALIDITY 1] UIDs valid * 0 EXISTS * 0 RECENT * OK [UIDNEXT 1] Predicted next UID 3 OK [READ-WRITE] SELECT completed 4 UID SEARCH 1:* NOT DELETED 4 NO search queries with NOT or OR clauses are not yet implemented 5 NOOP 5 OK NOOP completed 6 UID SEARCH 1:* NOT DELETED 6 NO search queries with NOT or OR clauses are not yet implemented 7 NOOP 7 OK NOOP completed 8 UID SEARCH 1:* NOT DELETED 8 NO search queries with NOT or OR clauses are not yet implemented 9 UID SEARCH 1:* UNSEEN * SEARCH 9 OK UID SEARCH completed 10 UID SEARCH 1:* UNSEEN * SEARCH 10 OK UID SEARCH completed 11 UID SEARCH 1:* DELETED * SEARCH 11 OK UID SEARCH completed * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR AUTH=PLAIN] IMAP4rev1 Service Ready 1 AUTHENTICATE PLAIN + 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR MOVE] AUTHENTICATE completed 2 NOOP 2 OK NOOP completed 3 SELECT Sent * FLAGS (\Seen \Deleted \Flagged \Draft SIGN_UP_NOTIFICATION) * OK [PERMANENTFLAGS (\Seen \Deleted \Flagged \Draft SIGN_UP_NOTIFICATION)] Flags permitted. * 111 EXISTS * 0 RECENT * OK [UIDNEXT 112] Predicted next UID * OK [UIDVALIDITY 1] UIDs valid 3 OK [READ-WRITE] SELECT completed 4 UID SEARCH 1:* NOT DELETED 4 NO search queries with NOT or OR clauses are not yet implemented 5 NOOP 5 OK NOOP completed 6 UID SEARCH 1:* NOT DELETED 6 NO search queries with NOT or OR clauses are not yet implemented 12 NOOP 7 NOOP 12 OK NOOP completed 13 UID SEARCH 1:* NOT DELETED 13 NO search queries with NOT or OR clauses are not yet implemented 7 OK NOOP completed 14 UID SEARCH 1:* DELETED * SEARCH 14 OK UID SEARCH completed 8 UID SEARCH 1:* NOT DELETED 8 NO search queries with NOT or OR clauses are not yet implemented 15 NOOP 9 UID SEARCH 1:* UNSEEN * SEARCH 9 OK UID SEARCH completed 15 OK NOOP completed 16 UID SEARCH 1:* NOT DELETED 16 NO search queries with NOT or OR clauses are not yet implemented 17 UID SEARCH 1:* DELETED * SEARCH 17 OK UID SEARCH completed 18 NOOP 18 OK NOOP completed 19 UID SEARCH 1:* NOT DELETED 19 NO search queries with NOT or OR clauses are not yet implemented 20 UID SEARCH 1:* DELETED * SEARCH 20 OK UID SEARCH completed 21 UID SEARCH 1:* UNSEEN * SEARCH 21 OK UID SEARCH completed 22 UID SEARCH 1:* UNSEEN * SEARCH 22 OK UID SEARCH completed 10 UID SEARCH 1:* DELETED * SEARCH 10 OK UID SEARCH completed 11 NOOP 11 OK NOOP completed 12 UID SEARCH 1:* NOT DELETED 12 NO search queries with NOT or OR clauses are not yet implemented 13 UID SEARCH 1:* DELETED * SEARCH 13 OK UID SEARCH completed 14 NOOP 14 OK NOOP completed 15 UID SEARCH 1:* NOT DELETED 15 NO search queries with NOT or OR clauses are not yet implemented 16 UID SEARCH 1:* DELETED * SEARCH 16 OK UID SEARCH completed 17 NOOP 17 OK NOOP completed 18 UID SEARCH 1:* NOT DELETED 18 NO search queries with NOT or OR clauses are not yet implemented 19 UID SEARCH 1:* DELETED * SEARCH 19 OK UID SEARCH completed 20 UID SEARCH 1:* UNSEEN * SEARCH 20 OK UID SEARCH completed 23 NOOP 23 OK NOOP completed 24 UID SEARCH 1:* NOT DELETED 24 NO search queries with NOT or OR clauses are not yet implemented 25 UID SEARCH 1:* DELETED * SEARCH 25 OK UID SEARCH completed 26 NOOP 26 OK NOOP completed 27 UID SEARCH 1:* NOT DELETED 27 NO search queries with NOT or OR clauses are not yet implemented 28 UID SEARCH 1:* DELETED * SEARCH 28 OK UID SEARCH completed 29 NOOP 29 OK NOOP completed 30 UID SEARCH 1:* NOT DELETED 30 NO search queries with NOT or OR clauses are not yet implemented 31 UID SEARCH 1:* DELETED * SEARCH 31 OK UID SEARCH completed 32 UID SEARCH 1:* UNSEEN * SEARCH 32 OK UID SEARCH completed 33 NOOP 33 OK NOOP completed 34 UID SEARCH 1:* NOT DELETED 34 NO search queries with NOT or OR clauses are not yet implemented 35 UID SEARCH 1:* DELETED * SEARCH 35 OK UID SEARCH completed 36 NOOP 36 OK NOOP completed 37 UID SEARCH 1:* NOT DELETED 37 NO search queries with NOT or OR clauses are not yet implemented 38 UID SEARCH 1:* DELETED * SEARCH 38 OK UID SEARCH completed 39 NOOP 39 OK NOOP completed 40 UID SEARCH 1:* NOT DELETED 40 NO search queries with NOT or OR clauses are not yet implemented 41 UID SEARCH 1:* DELETED * SEARCH 41 OK UID SEARCH completed 42 UID SEARCH 1:* UNSEEN * SEARCH 42 OK UID SEARCH completed 2021/06/11 04:41:56 CardDAV server listening on 10.50.50.29:8080 2021/06/11 04:41:56 SMTP server listening on 10.50.50.29:1025 2021/06/11 04:41:56 IMAP server listening on 10.50.50.29:1143 2021/06/11 04:42:04 >> POST /api/auth/refresh 2021/06/11 04:42:04 {"RefreshToken":"06eaec6934d2ef7a9f3eb774f95185e17db03746","ResponseType":"token","GrantType":"refresh_token","RedirectURI":"http://www.protonmail.ch"} 2021/06/11 04:42:04 << POST /api/auth/refresh 2021/06/11 04:42:04 &protonmail.authResp{resp:protonmail.resp{Code:1000, RawAPIError:(*protonmail.RawAPIError)(nil)}, Auth:protonmail.Auth{ExpiresAt:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, Scope:"full self organization payments keys parent user loggedin paid nondelinquent mail calendar drive", UID:"6f56115e446204a7e087d6aa357ef5badd1554bb", AccessToken:"4b3b51876b7860966873b3a6601e67ba87b78254", RefreshToken:"bc73e272ba4613b7b211922b3335b57ee7007dfe", UserID:"", EventID:"", PasswordMode:0, TwoFactor:struct { Enabled int; U2F interface {}; TOTP int }{Enabled:0, U2F:interface {}(nil), TOTP:0}}, ExpiresIn:864000, TokenType:"Bearer", ServerProof:""} 2021/06/11 04:42:04 >> GET /api/addresses 2021/06/11 04:42:05 << GET /api/addresses 2021/06/11 04:42:05 &struct { protonmail.resp; Addresses []*protonmail.Address }{resp:protonmail.resp{Code:1000, RawAPIError:(*protonmail.RawAPIError)(nil)}, Addresses:[]*protonmail.Address{(*protonmail.Address)(0xc0002dc6e0), (*protonmail.Address)(0xc0002dc780), (*protonmail.Address)(0xc0002dc820), (*protonmail.Address)(0xc0002dc8c0)}} 2021/06/11 04:42:05 >> GET /api/users 2021/06/11 04:42:06 << GET /api/users 2021/06/11 04:42:06 &struct { protonmail.resp; User *protonmail.User }{resp:protonmail.resp{Code:1000, RawAPIError:(*protonmail.RawAPIError)(nil)}, User:(*protonmail.User)(0xc000021830)} 2021/06/11 04:42:06 >> GET /api/addresses 2021/06/11 04:42:06 << GET /api/addresses 2021/06/11 04:42:06 &struct { protonmail.resp; Addresses []*protonmail.Address }{resp:protonmail.resp{Code:1000, RawAPIError:(*protonmail.RawAPIError)(nil)}, Addresses:[]*protonmail.Address{(*protonmail.Address)(0xc0002dcaa0), (*protonmail.Address)(0xc0002dcb40), (*protonmail.Address)(0xc0002dcbe0), (*protonmail.Address)(0xc0002dcc80)}} 2021/06/11 04:42:06 >> GET /api/labels 2021/06/11 04:42:06 << GET /api/labels 2021/06/11 04:42:06 &struct { protonmail.resp; Labels []*protonmail.Label }{resp:protonmail.resp{Code:1000, RawAPIError:(*protonmail.RawAPIError)(nil)}, Labels:[]*protonmail.Label{(*protonmail.Label)(0xc0002fa0c0), (*protonmail.Label)(0xc0002fa120), (*protonmail.Label)(0xc0002fa180), (*protonmail.Label)(0xc0002fa1e0), (*protonmail.Label)(0xc0002fa240)}} 2021/06/11 04:42:06 >> GET /api/messages/count 2021/06/11 04:42:06 << GET /api/messages/count 2021/06/11 04:42:06 &struct { protonmail.resp; Counts []*protonmail.MessageCount }{resp:protonmail.resp{Code:1000, RawAPIError:(*protonmail.RawAPIError)(nil)}, Counts:[]*protonmail.MessageCount{(*protonmail.MessageCount)(0xc0003749a0), (*protonmail.MessageCount)(0xc000374ac0), (*protonmail.MessageCount)(0xc000374c80), (*protonmail.MessageCount)(0xc000374ca0), (*protonmail.MessageCount)(0xc000374d00), (*protonmail.MessageCount)(0xc000374d40), (*protonmail.MessageCount)(0xc000374d60), (*protonmail.MessageCount)(0xc000374da0), (*protonmail.MessageCount)(0xc000374e40), (*protonmail.MessageCount)(0xc000374e60), (*protonmail.MessageCount)(0xc000374e80), (*protonmail.MessageCount)(0xc000374ea0), (*protonmail.MessageCount)(0xc000374ec0), (*protonmail.MessageCount)(0xc000374ee0), (*protonmail.MessageCount)(0xc000374f00), (*protonmail.MessageCount)(0xc000374f20)}} 2021/06/11 04:42:06 User "So to clarify my questions:
In case more info is necessary about my deployment, I wrote a blog post on my setup:
https://the-empire.systems/protonmail-bridge-mobile