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

🐛: jmap: should not return invalidProperties if Email/set doesn't change anything #1139

Open
1 task done
liubog2008 opened this issue Jan 31, 2025 · 1 comment
Open
1 task done
Labels
bug Something isn't working

Comments

@liubog2008
Copy link

liubog2008 commented Jan 31, 2025

What happened?

I found that if I set $seen again the server will return an invalidProperities because of no changes. I'm not sure whether it's reasonable.

https://jmap.io/spec-core.html#set says

The SetError object SHOULD also have a property called properties of type String[] that lists all the properties that were invalid.

But there is no properties changed.

How about returning no error and making Email/set idempotent?

How can we reproduce the problem?

I can reproduce the problem by doing the following steps:

Email/set keywords/$seen: true again for an email which has been marked as seen.

Version

v0.11.x

What database are you using?

None

What blob storage are you using?

None

Where is your directory located?

None

What operating system are you using?

None

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct
@liubog2008 liubog2008 added the bug Something isn't working label Jan 31, 2025
@mrwogu
Copy link

mrwogu commented Feb 4, 2025

Same here. Flagged as seen randomly returns to unseen after fetch from imap. v0.11.4

LOGS:

2025-02-04T11:38:12Z TRACE Raw IMAP input received (imap.raw-input) listenerId = "imaptls", localPort = 993, remoteIp = xxx.xxx.xxx.xxx, remotePort = 10568, size = 2, contents = "\r\n"
2025-02-04T11:38:12Z TRACE Raw IMAP input received (imap.raw-input) listenerId = "imaptls", localPort = 993, remoteIp = xxx.xxx.xxx.xxx, remotePort = 10568, size = 34, contents = "86 uid store 2153 +Flags (\\Seen)\r\n"
2025-02-04T11:38:12Z DEBUG IMAP error occurred (imap.error) listenerId = "imaptls", localPort = 993, remoteIp = xxx.xxx.xxx.xxx, remotePort = 10568, details = "Unsupported message data item name: "+Flags"", id = "86", type = BAD
2025-02-04T11:38:12Z TRACE Raw IMAP output sent (imap.raw-output) listenerId = "imaptls", localPort = 993, remoteIp = xxx.xxx.xxx.xxx, remotePort = 10568, size = 53, contents = "86 BAD Unsupported message data item name: "+Flags"\r\n"

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

No branches or pull requests

2 participants