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

imported messages with junk Date headers messes up sorting for getMessageList #1773

Closed
wolfsage opened this issue Jan 3, 2017 · 7 comments
Closed
Labels
jmap affects the jmap implementation

Comments

@wolfsage
Copy link
Contributor

wolfsage commented Jan 3, 2017

If you call importMessages and pass in messages with junk Date header fields, when you retrieve those messages (and others) back from getMessageList with sort = 'date desc', the emails with junk headers show up first with a date of the UNIX epoch. If internaldate is going to be used for the sorting, perhaps that should come back for the Date field as well?

A test showing the issue can be found here: wolfsage/JMAP-TestSuite@a1d6247

@rsto rsto added the jmap affects the jmap implementation label Jan 4, 2017
@rsto
Copy link
Member

rsto commented Jan 4, 2017

Why would we even want to allow to import messages with junk Date header fields? Shouldn't we reject the message? @brong, thoughts?

@brong
Copy link
Member

brong commented Jan 4, 2017 via email

@rsto
Copy link
Member

rsto commented Jan 4, 2017

Fair enough. So everyone's is OK to close this as no-fix?

@wolfsage
Copy link
Contributor Author

wolfsage commented Jan 4, 2017

I think this may surprise new users constantly.

Imagine a UI that tries to show newest messages first.

These broken messages will always sort at the top, yet display a date of "1970".

That seems wrong to me.

@wolfsage
Copy link
Contributor Author

wolfsage commented Jan 9, 2017

@brong, did be77394 fix this?

@wolfsage
Copy link
Contributor Author

wolfsage commented Jan 9, 2017

Hrm, nope, still seeing issues in our tests

@wolfsage
Copy link
Contributor Author

I believe this is fixed now that internalDate is used for such things. Closing, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jmap affects the jmap implementation
Projects
None yet
Development

No branches or pull requests

3 participants