-
Notifications
You must be signed in to change notification settings - Fork 153
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
Error searching for Gmail emails started "xm003 BAD Could not parse command" #197
Comments
I am experiencing something very similar here, getting the exception below when searching for emails after a specific date using SearchCondition SentSince(datetime). Stack Trace:System.Exception: xm004 BAD Could not parse command |
Also running into this - gmail only - other mail servers don't throw this |
We are experiencing the exact samme issue using the "Since" field on SearchCondition. First I was able to prevent the error by setting the Value property of SearchCondition to a string with no time (instead of a DateTime):
Then 2-3 days later that solution stopped working. And now I am using one of Gmail's IMAP extensions:
Currently I am only using the library with Gmail - I don't think the above "fix" would work with other providers. |
Thanks @ReneNP - That solution in a ternary will work for me Would be nice to now why the regular search command no longer works with Gmail though |
It looks like the issue is that GMail is no longer able to handle the SearchCondition.GetRFC2060Date format. Note* Per IMAP RFC 3501 & 2060 it looks like SentSince should be Date and not Date-Time
but should be sending
|
Any update on this issue. Facing the same problem with Gmail. |
Two days ago we started getting the following error when searching for emails after a particular date from a Gmail account:
We didn't make any changes to the code. Anyone else start experiencing this when querying Gmail?
The text was updated successfully, but these errors were encountered: