-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
move message_id threading to communication to work with inbox #2458
Conversation
missed a line all good |
@RobertSchouten rebase required |
if references: | ||
if "notification" in references: | ||
communication.unread_notification_sent = 1 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allows direct sending of emails to erpnext systems without response emails being sent preventing infinte loops (though there is still validatation preventing sending to an internal account removed in inbox)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see a link yet, so maybe it comes in the next PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
notification is added to header here
https://github.com/frappe/frappe/pull/2458/files#diff-a95ae98f6737046bfb40cb1fd19689f8R191
so if email is directly recieved by an erpnext server it set's it so the server believes notifcations are sent
|
||
last_mail = frappe.get_doc('Email Queue', dict(reference_name=event.name)) | ||
last_mail = frappe.get_doc('Communication', dict(reference_name=event.name)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make a separate test case for communication?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rmehta with this change threading only occurs on messages sent from communications
though ive yet to see an email send from frappe.sendmail that should b included in a thread
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in "Daily Work Summary" threading is by email queue as there are no communications for sent emails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rmehta modified daily work summary to send a communication
frappe/erpnext#7233
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not allow to thread via Email Queue too? Any harm?
c198503
to
4ccd119
Compare
moves thread matching by message_id to communcation to avoid issues with the upcoming email inbox
please merge before 7.2 to prevent patching