odoo/addons/mail
Thibault Delavallée 896fab1b44 [IMP] [FIX] mail: mail_thread: routing: check for exact message_id.
When processing an incoming email, we try to find a parent for the email based on references. Before this merge, it was done using openerp-<model-<res_id> pattern. However it is buggy. Indeed having two OpenERP sending emails to each other leads to messages being inserted in a wrong thread (model and res_id of the first OpenERP for both instances).

Now we search for an exact match between the references and the stored message_ids. As each message_id can be considered as unique the number of collisions is lessened. This won't cause any issues with OpenERP >= 7.0.

A compatibility mode is implemented for <= 6.1: as in those versions the message_id is not stored, we fall back on the previous behavior for records having messages without message_id. This indicates that the record was created before 7.0.

Tests have been updated accordingly, and a test added for the compatibility mode.

bzr revid: tde@openerp.com-20131205100534-2rlyun8wqng3qa6f
2013-12-05 11:05:34 +01:00
..
controllers import cleanups part1 2013-10-22 19:06:59 +02:00
data [REF] mass_mailing: first refactor 2013-09-13 13:54:08 +02:00
doc [DOC] mail: updated changelog of mail to match the new implementation 2013-09-16 13:50:55 +02:00
i18n Launchpad automatic translations update. 2013-12-03 06:16:21 +00:00
report
security [IMP]: reduce rpc call , add options 'display_log_button' on field, 2013-09-23 19:02:01 +05:30
static [MERGE] bootstrap3 2013-12-02 14:24:45 +01:00
tests [IMP] mail: mail_thread: routing: implement compat-mode routing 2013-11-28 14:32:26 +01:00
wizard [MERGE] forward port of branch saas-2 up to revid 9024 chs@openerp.com-20131130130014-hi5h5a00kjx0dbvp 2013-11-30 14:07:25 +01:00
__init__.py [MERGE] Sync with trunk. Cleaned a bit things lastly added in trunk/mail/tests. 2012-12-11 17:14:58 +01:00
__openerp__.py [MERGE] Sync with trunk 2013-07-17 09:47:10 +02:00
mail_alias.py [MERGE] merge with latest trunk 2013-07-01 16:39:15 +05:30
mail_alias_view.xml [CLEAN] Misc cleaning before merging, mainly in views 2013-06-25 10:46:30 +02:00
mail_followers.py [REF] mail_followers: cleaned notify methods, lessening the number of queries. 2013-08-27 17:38:40 +02:00
mail_followers_view.xml [MERGE] Addons misc improvements Vol.30 2013-06-13 15:06:59 +02:00
mail_group.py [MERGE] forward port of branch saas-1 up to revid 8772 chs@openerp.com-20130910122113-171osvcukxffxcry 2013-09-10 14:48:03 +02:00
mail_group_menu.py [MERGE] From trunk 2012-12-17 15:43:06 +01:00
mail_group_view.xml [CLEAN] Misc cleaning before merging, mainly in views 2013-06-25 10:46:30 +02:00
mail_mail.py [FIX] mail: mail_mail: fixed url embedded in notification emails. 2013-10-18 16:49:24 +02:00
mail_mail_view.xml [MERGE] forward port of branch 7.0 up to revid 9651 chs@openerp.com-20131127104459-jb77x7quwcvtifm7 2013-11-27 12:00:46 +01:00
mail_message.py [IMP] [FIX] mail: mail_thread: routing: check for exact message_id. 2013-12-05 11:05:34 +01:00
mail_message_subtype.py [IMP] Removed the dialog box on apply and close to open a new dialog box everytime. 2013-03-15 18:01:57 +05:30
mail_message_subtype.xml [IMP] 1) Added code for opening the dialog box of edit followers, 2013-03-14 15:59:49 +05:30
mail_message_view.xml [IMP] mail_message: cleaned search view 2013-08-29 12:09:32 +02:00
mail_thread.py [IMP] [CLEAN] mail: mail_thread: routing 2013-12-05 10:39:21 +01:00
mail_thread_view.xml [MERGE] Sync with trunk 2013-06-06 15:53:13 +02:00
mail_vote.py [FIX] [CLEAN] mail: fixed some access rules issues; removed now unused files. 2012-12-11 15:33:01 +01:00
res_config.py [CLEAN] mail: removed unnecessary change 2013-09-17 12:20:46 +02:00
res_config_view.xml [REF] mass_mailing: first refactor 2013-09-13 13:54:08 +02:00
res_partner.py [IMP] [CLEAN] [REF] mail, res_partner, res_users, hr: cleaned partner / employee profile following last specifications. 2013-05-15 17:31:59 +02:00
res_partner_view.xml [FIX] res_partner: mail now adds forgotten notification_email_send field; otherwise partner manager are not able to change the email reception policy for partners that are not users. 2013-03-08 13:48:35 +01:00
res_users.py [FIX] mail: reset alias when copying users 2013-12-04 12:27:34 +01:00
res_users_view.xml [CLEAN] Misc cleaning before merging, mainly in views 2013-06-25 10:46:30 +02:00
update.py [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5098 rev-id: odo@openerp.com-20131011123914-7zuvd9mch21yxgj8 2013-10-11 15:44:33 +02:00