-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
Invalid sequence set when listing envelopes #518
Comments
Hi,
First of all, thank you for your interest in Himalaya CLI!
Can you try to list envelopes without pagination?
himalaya envelope list --page-size 0
I do not have a single clue about what is going on. I tried to reproduce
your issue, without success. I suspect the issue to come from your email
provider, qq.com. Would it be possible for you to create us a fake
account there, so I could debug? You can send me credentials either as a
private message on the Matrix chat, or by email at:
clement.douin at posteo.net
|
It does work with But why I need this param. I find the explanation in the sample config that
Sry that I could not provide you a fake account to test. In short, the qq.com mail service asks for phone number registered with ID card :( However, is it possible to hypothesize the path (e.g., whether it lies in the client or the core dependency) based on the trace information in the first paragraph? I will continue conducting some tests in this area. BTW, I use Gmail in my daily life through proxy tools. I mentioned in the core repository issue, this requires proxy feature support in advance. |
When using |
I also have this problem, but I can use imap.qq.com mailbox in aerc. |
|
I will add the log for the next patch release. From there we will be able to debug properly this issue. |
It should be enough to debug the faulty sequence set. |
New release |
|
I bet the server does not appreciate the range order. As far as I remember, the range should be commutative. |
Just found back in RFC 3501: seq-range = seq-number ":" seq-number
; two seq-number values and all values between
; these two regardless of order.
; Example: 2:4 and 4:2 are equivalent and indicate
; values 2, 3, and 4.
; Example: a unique identifier sequence range of
; 3291:* includes the UID of the last message in
; the mailbox, even if that value is less than 3291. |
You were faster, hehe :-) The order -- when resolved to a sorted set -- should not be important. AFAIR, imap-types already reorders accordingly when, e.g., iterating over a sequence.
Hmm... maybe some implementation wants to get messages in reversed order? Say... you want to fetch 100:1 starting with 100. When we exclude this possibility, people would need to write 100,99,98,... manually. Not sure... |
Context: duesee/imap-codec#411 We had the same bug but resolved it. |
Well, according to the RFC we should not be able to do that, since the sequence is re-ordered at request level:
It seems just not possible to ask for 4, 3 then 2 using sequence set.
Awesome, I checked and indeed it should fix this particular issue as well. Let's wait for the |
Oh, no. What I meant was that when you iterate through a sequence set, it resolves now correctly. But this is rather only done when imap-types is used for a server. As a client you can still send 5:1, which, to my understanding, would break the server. In this case the user of imap-types needs to ensure to use 1:5 instead of 5:1. But maybe it's a good idea to transparently change 5:1 to 1:5 in imap-types then indeed... |
Isn't it a perfect use case for introducing a new quirk? Something like |
Hi, I use IMAP to test one email account. After setting the configuration and solving the tls problem. Finally, envelope list only work for 1 mail which send/receieve by my self.
you can see from the output: 1
Bug
Next I send a test email (with only 'test' body) from gmail/output. And himalaya return error. Seems it successfully links to the INBOX and finds
exists(2)
with the incoming mail. But it cant resolve the IMAP task.The text was updated successfully, but these errors were encountered: