-
Notifications
You must be signed in to change notification settings - Fork 75
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
ISSUE: Error searching emails: SEARCH command error: BAD [b'Error in IMAP command SEARCH: Invalid characters in atom (0.001 + 0.000 secs).'] #687
Comments
Check if the latest beta version still produces the error. |
Just switched to 0.3.5-b3 but sadly the same. |
If it helps, I added debug messages and this is a query that fails (non UTF8 mode):
|
That's valid IMAP syntax. What mailserver? |
How could I test this manually against the mail server to ensure mail server is OK? In other words, what are the raw commands I need to send? The following one does not:
|
You have to select the folder first if I recall, then you can do a |
Thanks! Ok, I tried this and it seems to work fine:
|
I'd need to see the full debug output to pin down where the issue is. |
Thanks; can you help me, how do I generate the debug output? (I assume from the extension) |
We cover that in the wiki. 😄 |
Awesome, with the debug output I even saw an issue myself. It's the "Amazon forwarded email address" field. Something does not get quoted properly, so an uneven number of quotation marks. Example:
My question: What is exactly this field, why is it needed, what should I put in and in which format? Previously I had my two email addresses in, both in quotation marks, separated by a comma. Now I just have the single email address I have registered via my Amazon account, without quotation marks and I think the error is gone. EDIT: To make it clear, my E-Mail address that I have registered with Amazon is amazon@example.com and I forward it to notifications@example.com. The documentation is unclear about the purpose and format of this field... |
It's used for those who forward their package emails to an alternate email. If you don't do this enter If you do use it, which your edit sounds like you do, only enter the email address, it shouldn't need quotes, of the email address the forwarded emails will be coming from. |
May I ask why this is needed? Can't we just filter based on Amazon's address (similar as it's done for the other providers)?
So this would then be the address of my Amazon account, right? If my Amazon account is registered to amazon@example.com. And in this account (which I own) I created a sieve script that forwards the mail to notifications@example.com (which is used by "Mail and Packages" to login), then I would enter amazon@example.com there, correct? |
It is searched for that way, but not all providers leave the mail headers intact, Gmail does forward without mangling the headers so it looks like the email came directly from Amazon to the forwarded account.
Yes use amazon@example.com, unless the email headers don't get mangled and they report the FROM address to be the proper amazon email addresses. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Describe the bug
I have set this up with my dovecot server. Unfortunately I do not receive notifications in home assistant.
Looking in the log file, I see lot of lines:
2022-06-17 14:32:56 ERROR (SyncWorker_8) [custom_components.mail_and_packages.helpers] Error searching emails: SEARCH command error: BAD [b'Error in IMAP command SEARCH: Invalid characters in atom (0.001 + 0.000 secs).']
This seems to be similar to jstedfast/MailKit#572
Environment (please complete the following information):
Logs
See above
The text was updated successfully, but these errors were encountered: