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

Documents are created from IMAP only when emails are UNREAD #19059

Open
michalls01 opened this issue Nov 30, 2022 · 7 comments
Open

Documents are created from IMAP only when emails are UNREAD #19059

michalls01 opened this issue Nov 30, 2022 · 7 comments
Labels

Comments

@michalls01
Copy link

michalls01 commented Nov 30, 2022

Document creation via Email is not working for all emails after upgrading to V14 (it works flawlessly on the V13 running in parallel). Both sites are connected to Office 365, no errors in the Error Log. Sending of emails is working fine on both sites. Both sites are hosted on Frappe Cloud.

@michalls01 michalls01 added the bug label Nov 30, 2022
@git-avc
Copy link
Contributor

git-avc commented Dec 7, 2022

¿Are this emails marked as "read" in O365?

@michalls01
Copy link
Author

michalls01 commented Dec 7, 2022

@git-avc Hello, it seems that documents are created from IMAP emails only when the email is unread, even though the "Email Sync Option" setting is set to "ALL". This only applies to V14 (since we have multiple Erpnext instances connected to the same mailbox, when an email is synchronized, its marked as read and thus not synchronized in another Erpnext instance). Also, when users access the mailbox directly and mark an email as read, it is not synchronized.

Thank you for the hint!

image

@michalls01 michalls01 changed the title Document creation via Email not working for all emails after upgrading to V14 (works flawlessly on the V13) Documents created from IMAP only when the email is UNREAD, even though the "Email Sync Option" is set to "ALL" in V14 (works flawlessly on the V13) Dec 7, 2022
@michalls01 michalls01 changed the title Documents created from IMAP only when the email is UNREAD, even though the "Email Sync Option" is set to "ALL" in V14 (works flawlessly on the V13) Documents are created from IMAP only when the email is UNREAD, even though the "Email Sync Option" is set to "ALL" in V14 (works flawlessly on the V13) Dec 7, 2022
@michalls01 michalls01 changed the title Documents are created from IMAP only when the email is UNREAD, even though the "Email Sync Option" is set to "ALL" in V14 (works flawlessly on the V13) Documents are created from IMAP only when an email is UNREAD, even though the "Email Sync Option" is set to "ALL" in V14 (works flawlessly on the V13) Dec 7, 2022
@michalls01 michalls01 changed the title Documents are created from IMAP only when an email is UNREAD, even though the "Email Sync Option" is set to "ALL" in V14 (works flawlessly on the V13) Documents are created from IMAP only when an email is UNREAD, even though the "Email Sync Option" is set to "ALL" in V14 (it works flawlessly on the V13) Dec 7, 2022
@git-avc
Copy link
Contributor

git-avc commented Dec 8, 2022

Yes, we face the same issue with O365

@trustedcomputer
Copy link
Contributor

I encountered the same issue after upgrading to V14. I have since reverted to V13 for production but I still have the old V14 VM lying around. I saw both issues of the emails getting marked "read" on the server side as well as only downloading if the mail was unread on the server side. This was with self-hosted HCL Domino as the IMAP server. In my troubleshooting, I narrowed it down to somewhere in the code for uidvalidity. But it was beyond me how to track it down further. I had a workaround for the emails being marked read on the server. I could try to dig that up if you are interested. But really it needs to be looked at by someone with some in-depth knowledge of the IMAP protocol.

@khanhtranchi
Copy link

khanhtranchi commented Dec 20, 2022

Hi @michalls01 @put3r-r00t3r,

I have same problem too with postale.io

Does the v13 is stable than v14 ? Because I'm need to apply this system to my company, so I think the v14 is the upgrade version, will less bug than v13, but how the error of old function like email occurs :(. Would you suggest me in advance ?

Thanks so much.

@trustedcomputer
Copy link
Contributor

trustedcomputer commented Dec 20, 2022

@khanhtranchi In my opinion and experience, v13 is more stable than v14 because its new features have had more time to have the bugs worked out, whereas the new features in v14 have not.

For example, the separation of the HRMS and Payments modules into their own apps that happened in v14 still has problems, the HRMS app just recently made it to version 1.0.0, and the Payments app when installed shows itself as 0.01, development.

As another example, there is the issue of the breadcrumbs for many of the sales items like Sales Order, Sales Invoice, Quotation, etc.... that show as part of the Retail module such as "E > Retail > Sales Invoice" in the top left of the screen instead of "E > Sales > Sales Invoice".

Also, I was never able to get some of the ERPNext Integrations like GoCardless working in v14, but it worked perfectly going back to v13.

Not to mention this issue about the emails being marked as read on the server when fetched as well.

@michalls01 michalls01 changed the title Documents are created from IMAP only when an email is UNREAD, even though the "Email Sync Option" is set to "ALL" in V14 (it works flawlessly on the V13) Documents are created from IMAP only when an email is UNREAD Dec 23, 2022
@michalls01 michalls01 changed the title Documents are created from IMAP only when an email is UNREAD Documents are created from IMAP only when emails are UNREAD Dec 23, 2022
@IgorA100
Copy link

Many months have passed, but the problem is not solved on version 14 :(
I still have this problem.
ERPNext: v14.20.3 (version-14)
Frappe Framework: v14.31.0 (version-14)

pstuhlmueller added a commit to pstuhlmueller/frappe that referenced this issue Apr 27, 2023
While refactoring the email logic from v13 to v14 a few things have been missed. Since then, only "unseen" mails could be pulled, see frappe#19059 and frappe#18168.

Furthermore decoding the subject was not working and sometimes only the first chunk has been encoded, see frappe#20808 and frappe#20716
IgorA100 added a commit to IgorA100/frappe that referenced this issue Oct 17, 2023
While refactoring the email logic from v13 to v14 a few things have been missed. Since then, only "unseen" mails could be pulled, see frappe#19059 and frappe#18168.

Furthermore decoding the subject was not working and sometimes only the first chunk has been encoded, see frappe#20808 and frappe#20716
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants