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

Sending date in uppercase in "SINCE {0}" clause is against RFC3501 and fails on at least one IMAP server. #252

Closed
michael-shipaev opened this issue Oct 19, 2015 · 1 comment
Labels
bug Something isn't working

Comments

@michael-shipaev
Copy link

Hello,
We on our project stumbled upon using ImapFolder.Search(SearchQuery.DeliveredAfter(date)) method.
Constantly getting "UID SEARCH Backend error" response from imap server.
After investigating the issue I found that there is a ImapFolder.FormatDateTime method that converts date representation to uppercase. Removing the conversion fixed the issue.
I wonder if this conversion is there for purpose (perhaps the things are vice-versa in some other IMAP server implementations that expect uppercase dates only)?
Anyway the RFC3501 specifies that the month names in a date represenation must start with first capital letter the rest are lower-case (e.g. Jan, Feb, etc.)
So if the currently applied uppercase convertion is not a compatibility measure it would be good to change it to comply with RFC since definetly there are IMAP servers that expect dates strictly in RFC3501 format.

jstedfast added a commit that referenced this issue Oct 19, 2015
@jstedfast jstedfast added the bug Something isn't working label Oct 19, 2015
@jstedfast
Copy link
Owner

Thanks for the bug report. It is now fixed in git master.

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