-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
IMAP/POP3 just sync to one in group of email accounts #19370
Comments
@khanhtranchi Hi, it seems that V14 syncs only unread emails. Could it be this #19059 issue? |
I am in another situation. After spent time for investing, I find out that When 1 email is sent to group of email accounts in the system, just one of them insert to docs, the other ignore. May be the error comes from the check existing algorithm |
This is a pretty nasty bug, and it is likely related to how v14 deals with the UNREAD flag as documented here: |
This is related to this line of code in my opinion and not #19059: When I have forwarding enabled on my server the same email is redistributed through multiple accounts. It's the same email, with the same I suggest this checks if the I can submit a pull request with this fix if you guys agree with this solution. It's impacting me and I'd like to see this resolved ASAP. Thanks |
…ion record is created when associated with a different email account 📝 chore(test_records.json): add test email account 2 for test_email_account.py 🐛 fix(receive.py): fix find_one_by_filters method to filter by email account as well The test_mail_exist_validation test case was not correctly checking if a communication record is created. The fix ensures that the communication record is created only if the mail is not already downloaded into that specific Email Account. A new test case was added to test_mail_exist_validation to check if a communication record is created when the mail is associated with a different email account. The test_records.json file was updated to include a new test email account, "Email Account 2", for the test_email_account.py test cases. The find_one_by_filters method in receive.py was fixed to correctly filter by both the message_id and email_account, ensuring that the correct communication record is found. Closes frappe#19370, closes frappe#23189
fix(test_email_account.py): modify test case to check if communication record is created when associated with a different email account chore(test_records.json): add test email account 2 for test_email_account.py fix(receive.py): fix find_one_by_filters method to filter by email account as well The test_mail_exist_validation test case was not correctly checking if a communication record is created. The fix ensures that the communication record is created only if the mail is not already downloaded into that specific Email Account. A new test case was added to test_mail_exist_validation to check if a communication record is created when the mail is associated with a different email account. The test_records.json file was updated to include a new test email account, "Email Account 2", for the test_email_account.py test cases. The find_one_by_filters method in receive.py was fixed to correctly filter by both the message_id and email_account, ensuring that the correct communication record is found. Closes frappe#19370, closes frappe#23189
fix(test_email_account.py): modify test case to check if communication record is created when associated with a different email account chore(test_records.json): add test email account 2 for test_email_account.py fix(receive.py): fix find_one_by_filters method to filter by email account as well The test_mail_exist_validation test case was not correctly checking if a communication record is created. The fix ensures that the communication record is created only if the mail is not already downloaded into that specific Email Account. A new test case was added to test_mail_exist_validation to check if a communication record is created when the mail is associated with a different email account. The test_records.json file was updated to include a new test email account, "Email Account 2", for the test_email_account.py test cases. The find_one_by_filters method in receive.py was fixed to correctly filter by both the message_id and email_account, ensuring that the correct communication record is found. Closes frappe#19370, closes frappe#23189
Information about bug
I have 2 email accounts are attached to 2 users:
I sent email to 2 email addresses above.
I'm using IMAP and set sync option to ALL to pull emails from mail server. After pulling email, email appears on one of these accounts above. The rest account email are seen (pull by worker job), but these emails don't appear its Inbox
Module
CRM
Version
FRAPPE_VERSION=v14.18.1
ERPNEXT_VERSION=v14.10.1
Installation method
docker
Relevant log output / Stack trace / Full Error Message.
https://github.com/frappe/frappe/blob/bbcc365a2467467761b138d130af487492862fa5/frappe/email/receive.py
I think that may be we get the message-id, and doesn't include email account id to combine them as key. I try by sending 1 email to 2 email accounts, and 2 message-id are the same. So instead of insert this email for each email account, we just insert 1.
I don't have enough knowledge to involve deeper. Hope someone expert can confirm this case.
Thanks
The text was updated successfully, but these errors were encountered: