-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
UID command error: BAD ['UID FETCH Invalid parameter: 0']. Data: MKBG20 UID FETCH 0 (BODY.PEEK[]) #336
Comments
That's weird. The UID = 0 is already discarded in the code. I wonder there are side effects due to a corrupted Maildir/cache. Please, check both are valid (no email with UID set to zero). |
@nicolas33 How do I do that? |
@nicolas33 Also, it looks it's copying from remote. |
UID must be > 0 as per RFC 3501. If the server returns 0 for a UID value, it has implementation issues. |
Explore the directories For the cache, open the sqlite database and check the values in there. You might want to convert it to text format if this helps. |
Checked. Don't see any.
Checked. I queried the database and didn't find any. Is it possible to be coming from the server? |
@nicolas33, is there an easy way to test that? |
Yes, the wrong UID might come from the server. You might run a manual IMAP session to check. You'll get help how to do that here: http://www.offlineimap.org/server/imap/error/2016/01/27/error-no-such-number.html |
@nicolas33, OK, this is what I got:
What do you think? |
The server is not IMAP compliant. However, we might give a better warning and ignore this UID number. |
Done: f00cbee |
Thanks @nicolas33. Is there a patch that I can use to verify the fix? |
Thanks @dolohow. @nicolas33, I am still getting the same error:
|
Are you sure you are on branch |
Yes.
|
Weird. This UID zero is ignored at search time and it neither comes from the cache nor the Maildir. I wonder it is added by another IMAP command but I don't know which one right now. Thanks for the test! |
Output a warning so that we can dig into this. For now, the patch doesn't fix the root cause. If the server returns UID 0 as valid UID number, this must be ignored as soon as possible. Github-ref: OfflineIMAP#336 Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
Fixed in 65d4c94. |
@nicolas33 Thank you! It works. |
General informations
Log error
Steps to reproduce the error
offlineimap -f Cabinet
Regression
I believe I upgraded to a new offlineimap today via
brew upgrade
. It was working as of yesterday before the upgrade.The text was updated successfully, but these errors were encountered: