Commit Graph

297 Commits

Author SHA1 Message Date
Thibault Delavallée 8253453d64 [IMP] mail: mail_thread: routing: implement compat-mode routing
It now accepts <111...222..openerp-res_id-model@mydomain.com> partial matching
only if the target record has messages without message_id, aka <= 6.1 record.

Updated and added tests

bzr revid: tde@openerp.com-20131128133226-ce1qyeswi9n83q8v
2013-11-28 14:32:26 +01:00
Denis Ledoux 3f6ef87416 [FIX]mail: a test failed if there was the word 'model' in the url, which can happen when the branch name contains 'model' or the domain name itself contain 'model'
bzr revid: dle@openerp.com-20131108164658-x7uznik1n5jo1djd
2013-11-08 17:46:58 +01:00
Thibault Delavallée 5bb4fa2b43 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20131028163321-5o81wa1m7rzdp1dz
2013-10-28 17:33:21 +01:00
Thibault Delavallée 62e88a16e4 [FIX] mail: mail_mail: fixed url embedded in notification emails.
When having emails not linked to a notification (mail.notification = False)
the link is generated without any clue about the source record.
However we can try to use model and res_id defined on the mail_mail record
to correctly format a link.

Added support of model and res_id in message_redirect_action. This method
now can redirect based on a message_id, or based on model / res_id.

bzr revid: tde@openerp.com-20131018144924-j4f22hen3lsua7cb
2013-10-18 16:49:24 +02:00
Thibault Delavallée 607de396ba [MERGE] Sync with trunk, until revision 8927
bzr revid: tde@openerp.com-20131002135442-g8l2vpkq7h0roqdt
2013-10-02 15:54:42 +02:00
Thibault Delavallée 4f1cdefa8d [REF] document_page, website_blog: merge of the two modules.
document_page is now contained inside website_blog, last part of the refactoring before
cleaning and improving the blog feature. Usefull files have been transfered.

Translations have been discarded, they will have to be re-translated again.

Document_page module is now dead. Long live website_blog!

Misc:
- some fixes in website_blog and wizard
- commented some sections of yml tests because they should not apply anymore
- added empty files for python unit tests in website_blog

bzr revid: tde@openerp.com-20130920142701-4lp1my3ajga2puxl
2013-09-20 16:27:01 +02:00
Thibault Delavallée ed62d1dac7 [REF] mass_mailing: first refactor
Mail statistics are now stored onto a separated object (mail.mail.statistics), allowing to
handle emails separately from statistics (among other removing mail.mail entries while keeping
statistics).

Everything linnked to opened/replied/bounce is not managed by mass_mailing, removed added code
in mail module.

bzr revid: tde@openerp.com-20130913115408-322cyjipdg680as6
2013-09-13 13:54:08 +02:00
Thibault Delavallée c063f54691 [IMP] mail: in mass mail mode, default value is now to send emails, not to perform a mass post on documents.
bzr revid: tde@openerp.com-20130910124754-jssus6l43nil4qad
2013-09-10 14:47:54 +02:00
Thibault Delavallée 903ca548c7 [IMP] mass_mailing: added kanban views for mass_mailing, implemented segment for campaigns. Moved sparkline and gauge widgets to web.
Segment: template, date, mails.
Campaign: grouped statistics.

bzr revid: tde@openerp.com-20130903145936-nwy250w1suxmtbl3
2013-09-03 16:59:36 +02:00
Thibault Delavallée b35a44f66d [IMP] mail_mail, mail_message: various improvements to try to improve message creation time
Replaced some read by browse
Moved get_reply_to from mail_mail to mail_message
Hint: specifying email_from, reply_to help to enhance computation time

[REF] mail: cleaned some tests, renamed a file, moved mail_group tests into a dedicated file

bzr revid: tde@openerp.com-20130827133058-ko0g0ib0f0jihmdk
2013-08-27 15:30:58 +02:00
Christophe Simonis 5343c48c5f [MERGE] forward port of branch saas-1 up to revid 8760 chs@openerp.com-20130823143114-83tdjhbsdes0kydr
bzr revid: chs@openerp.com-20130823154655-blm2wyfivmg8qi2z
2013-08-23 17:46:55 +02:00
Christophe Simonis 58868227f9 [MERGE] forward port of branch 7.0 up to revid 9382 chs@openerp.com-20130823131214-ipouwtnz8r16mlvv
bzr revid: chs@openerp.com-20130823143114-83tdjhbsdes0kydr
2013-08-23 16:31:14 +02:00
Thibault Delavallée d874d9980d [FIX] mail: fixed wrong parsing of multipart/mixed emails.
alternative mode is computed when browsing the parts, not from
the message content type.

Added tests.

Also added some notification_email_send to none to avoid sending
emails in demo/data/update.

bzr revid: tde@openerp.com-20130823120611-0n4ull3c8gvwug2u
2013-08-23 14:06:11 +02:00
Thibault Delavallée c998b86a46 [CLEAN] mail: tests: cleaned test_mail_gateway file about indentation
bzr revid: tde@openerp.com-20130807142928-ocgzim1hdi95uyby
2013-08-07 16:29:28 +02:00
Thibault Delavallée 2eece10cd4 [FIX] mail_mail: computation of reply_to after create to avoid
interfering with automatic message_id creation of mail_message
[FIX] mail_thread: fixed issues with private messages through mailgateway
(wrong route checking, variable erasing)
[TEST] mail: added test for the second bug

bzr revid: tde@openerp.com-20130807142418-3h5qxdt3ekosj9x6
2013-08-07 16:24:18 +02:00
Thibault Delavallée de3b587a98 [TEST] mail: added test for support of active_domain
bzr revid: tde@openerp.com-20130726114854-y05kwah4v5k9v6bx
2013-07-26 13:48:54 +02:00
Thibault Delavallée bf4ada34b4 [REF] mail_thread: message_track now uses browse records instead of read results.
Updated addons accordingly.
Updated tests to test corner cases using False / null browse records.

bzr revid: tde@openerp.com-20130627144647-swbj77i84vo9ii0v
2013-06-27 16:46:47 +02:00
Thibault Delavallée fd90140d7b [REF] mail_thread: refactored message_route improvement, to be closer to the original code + call to a new method that checks the route, instead of doing everything in one method.
bzr revid: tde@openerp.com-20130624151827-hxwaelefs540pvca
2013-06-24 17:18:27 +02:00
Thibault Delavallée 7b7dfb955f [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130617095141-74uttqtw60iorl5g
2013-06-17 11:51:41 +02:00
Christophe Simonis 484148e8e4 [FIX] mail: compare splitted email in tests
bzr revid: chs@openerp.com-20130614114258-iar6h3ctaaqrb4on
2013-06-14 13:42:58 +02:00
Christophe Simonis aa133b4d29 [MERGE] forward port of branch saas-1 up to revid 8745 chs@openerp.com-20130613181503-82234mo34wxb0oap
bzr revid: chs@openerp.com-20130614091924-z5ta02kwhmwcrgox
2013-06-14 11:19:24 +02:00
Thibault Delavallée fc44f25d3a [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130612123429-a4mp0wiicdhlvk0m
2013-06-12 14:34:29 +02:00
Thibault Delavallée 636c793c70 [TESTS] mail: added tests
bzr revid: tde@openerp.com-20130607091619-tfh78a1agqdiqc23
2013-06-07 11:16:19 +02:00
Martin Trigaux a5698b8016 [IMP] mail: better tests for gateway
bzr revid: mat@openerp.com-20130606125046-0f0sj5u64blqxbrs
2013-06-06 14:50:46 +02:00
Martin Trigaux d0202ffb19 [IMP] mail: remove unecessary write in test
bzr revid: mat@openerp.com-20130605152316-tnd9oilxq7910061
2013-06-05 17:23:16 +02:00
Martin Trigaux 1482ce563f [FIX] mail: fix emails to adapt changes in saas (you ruined my afternoon tde)
bzr revid: mat@openerp.com-20130605151039-ps29tnqmn5pilxz4
2013-06-05 17:10:39 +02:00
Thibault Delavallée 3f5c738084 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130522110325-hos9ocph7yo9ae7w
bzr revid: tde@openerp.com-20130522143206-uv1f6lj6xsenzj6u
2013-05-22 16:32:06 +02:00
Thibault Delavallée cd278d83ab [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130522103305-yi5ql1chdx9qxxlx
bzr revid: tde@openerp.com-20130522114236-qi2s3i2dl2lemdvh
2013-05-22 13:42:36 +02:00
Thibault Delavallée faefb9fad1 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130522103426-wjn0ttqdbf72g713
2013-05-22 12:34:26 +02:00
Thibault Delavallée a05b0bebbe [FORWARD] Forward port of 7.0 branch until revision 9143.
bzr revid: tde@openerp.com-20130521122359-b5vii7gv8arluz06
2013-05-21 14:23:59 +02:00
Thibault Delavallée 2f2d833a4a [TEST] mail: added and fixed tests
bzr revid: tde@openerp.com-20130517151321-9qu4bw6222lx3pa2
2013-05-17 17:13:21 +02:00
Thibault Delavallée f3f2d72e04 [REV] [IMP] mail: mail.catchall.alias is now only a system parameter; removed from configuration (because much too technical) + udpated tests that could crash on an existing instance.
bzr revid: tde@openerp.com-20130517131109-aosyv23p7rz5sjg5
2013-05-17 15:11:09 +02:00
Thibault Delavallée 88e3505554 [IMP] mail_alias: added reference to the parent record.
The parent record is the record that holds the alias. It is different
from the record updated or created using the alias. For example
projects have aliases whose parent is the given projet, and that creates
new task inside the project.
Updated alias creation and management accordingly.
This ownership concept is used to compute the 'followers' contact
settings of aliases.

bzr revid: tde@openerp.com-20130516164207-1zr0q6abw6a34ndf
2013-05-16 18:42:07 +02:00
Thibault Delavallée 22dc9518d4 [FIX] mail: tests: updated tests because of changes in mail_mail: now when having a reply_to that is not a catchall address, followers of X.. is not writen anymore.
bzr revid: tde@openerp.com-20130516162248-leiq6j1ppp9n7g5b
2013-05-16 18:22:48 +02:00
Thibault Delavallée bc4964de13 [IMP] mail: now defines a catchall email alias, used to format the
reply_to of notification emails when having a document without alias, or for
private discussions using external mail readers.

bzr revid: tde@openerp.com-20130516150900-khb1d1ygyuos1wrl
2013-05-16 17:09:00 +02:00
Thibault Delavallée ea0316e3f1 [FIX] [FIX] mail: fixed subscription of an already subscribed follower erasing already existing subtypes + added tests
bzr revid: tde@openerp.com-20130508102304-p52bq0qux9s7rses
2013-05-08 12:23:04 +02:00
Thibault Delavallée b61c12d28e [MERGE] Revisions 9000 ... 9002 of 7.0 branch
bzr revid: tde@openerp.com-20130426132847-mr8e0yuxao582bs6
2013-04-26 15:28:47 +02:00
Thibault Delavallée 0dada27fcd [MERGE] Revisions 8997 ... 8999 of 7.0 branch.
bzr revid: tde@openerp.com-20130426132721-02lkoc41fms9ve1k
2013-04-26 15:27:21 +02:00
Thibault Delavallée a75cc23573 [REF] mail: refactored system to generate links in signatures. A new server action is used that choose to redirect to the document or to the Inbox (Portal or Classic Inbox, depending on the user).
bzr revid: tde@openerp.com-20130417122225-faf0bb5vyhbcx7ys
2013-04-17 14:22:25 +02:00
Thibault Delavallée 7f6a475590 [IMP] [REF] mail_thread: refactored a bit message_parse, message_route and various find_partner methods.
Now handles private aliases (alias_contact as partners or followers).
message_route now works in 2 steps :
1/ finding all possible routes, as before
2/ checks and filtrates those routes, by finding the most
relevant message author and using it to check alias contact settings.
Also refactored the various partner finding method in one method
that checks in res.partner, for: partners, partners that are users,
partners that follow a given document.

bzr revid: tde@openerp.com-20130416132813-zcm1r5kx0dwrfeic
2013-04-16 15:28:13 +02:00
Thibault Delavallée f35246e81c [MERGE] Sync with trunk, to benefit from freshly forward-ported 7.0 bugfixes.
bzr revid: tde@openerp.com-20130411082704-qce7e1moyo2sxz0c
bzr revid: tde@openerp.com-20130411141158-lk7lsf2haqbjit1u
2013-04-11 16:11:58 +02:00
Thibault Delavallée 4da68cbc22 [FORWARD] Forward port of addons 7.0 until revision 9008
bzr revid: tde@openerp.com-20130411124446-73gzyw3eo925w3dv
2013-04-11 14:44:46 +02:00
Thibault Delavallée f994529725 [IMP] mail: finding partner based on email: improved code for suggested partners, added somme comments and tests.
bzr revid: tde@openerp.com-20130411101720-mumz152dsxvv1xbj
2013-04-11 12:17:20 +02:00
Thibault Delavallée a3de5c872f [REF] [IMP] mail_alias improvement
alias_name is not required anymore
crm, hr_job, project, mail_group, res_users: alias creation is now different
and done more like other inherits, except an alias_model_name that is given
to the context to find the alias alias_model_id.
crm, jr_job, project, mail_group, res_users: updated form views using
aliases
mail_alias: added a filter on 'inactive' aliases (alias_name False) and
added a button to redirect to the related document if any

bzr revid: tde@openerp.com-20130409111158-bv04n5o01z9l3c17
2013-04-09 13:11:58 +02:00
Quentin (OpenERP) 3bb51ac696 [MERGE] forward port of bugfixes made in 7.0, up to revision 8969.
bzr revid: qdp-launchpad@openerp.com-20130404095257-oek77sijuxjyi0aj
2013-04-04 11:52:57 +02:00
Thibault Delavallée 37bec9643d [FIX] mail: fixed recipients of private discussion, that were not correct. Author could be notified of their own reply independently of the specified recipients. Added tests for private discussions.
bzr revid: tde@openerp.com-20130403121307-4rixx7ct6y86spoz
2013-04-03 14:13:07 +02:00
Thibault Delavallée d300e2b0ce [FIX] mail: notifications: email_to now contains reference to 'Followers of Doc Name' when having a related document.
bzr revid: tde@openerp.com-20130403121022-lijarue6r2t7mh3w
2013-04-03 14:10:22 +02:00
Thibault Delavallée dbaeee703f [IMP] mail: alias_contact on alias. However, not sure this will be usefull, to discuss.
bzr revid: tde@openerp.com-20130322155734-9jfc7w8nw8oiytd4
2013-03-22 16:57:34 +01:00
Thibault Delavallée 3106310824 [MERGE] Sync with 7.0 until 8906
bzr revid: tde@openerp.com-20130321120618-0vaokwa3bmvlpe01
2013-03-21 13:06:18 +01:00
Thibault Delavallée 817727ce1c [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130321105157-xhj04tgt0in0x9o3
2013-03-21 11:51:57 +01:00
Thibault Delavallée 40a5dda617 [MERGE] Forward port of addons until 8903
bzr revid: tde@openerp.com-20130321093716-3nt7h2xunl8lusqh
2013-03-21 10:37:16 +01:00
Thibault Delavallée e5aeefadce [FIX] mail: rpely_to of sent emails is sanitized.
bzr revid: tde@openerp.com-20130321092332-8cp59mu3idrpbnke
2013-03-21 10:23:32 +01:00
Thibault Delavallée 0eac6bbad6 [FIX] Forgotten to uncomment commented tests.
bzr revid: tde@openerp.com-20130320161830-0nyfuzyq4s4xa8hk
2013-03-20 17:18:30 +01:00
Thibault Delavallée 30a1d99d07 [MERGE] Sync with trunk + fixed the fix and tests.
bzr revid: tde@openerp.com-20130320161045-41bpe36b09tgcxpo
2013-03-20 17:10:45 +01:00
Olivier Dony 232840179c [FIX] mail.alias: default alias generation now properly handles dots and emails; added tests
lp bug: https://launchpad.net/bugs/1117810 fixed

bzr revid: odo@openerp.com-20130320161023-yalb9ud12k7kuy3o
2013-03-20 17:10:23 +01:00
Thibault Delavallée 23efb82b6d [TEST] mail: updated tests (those that helped raising the previous errors).
bzr revid: tde@openerp.com-20130320135152-qiz3moczldjbmyt7
2013-03-20 14:51:52 +01:00
Thibault Delavallée 6039b80e3f [IMP] [CLEAN] mail: cleaned and improved message_post tests, about email_to, reply_to and attachments.
bzr revid: tde@openerp.com-20130320121614-a862m35peexhw64q
2013-03-20 13:16:14 +01:00
Thibault Delavallée 5df59a9a4b [REF] mail: refactored tests. mailgateway tests are put into a separate file; message_post tests have been a bit cleaned and improved. Also removed an unnecessary mockup.
bzr revid: tde@openerp.com-20130320114111-m1unow90005vwxee
2013-03-20 12:41:11 +01:00
Thibault Delavallée 2c497fab50 [FIX] mail: mass mailing now does not push to followers; only to specific recipients. Improved tests for this update.
bzr revid: tde@openerp.com-20130320084040-pcgzy068z0oph298
2013-03-20 09:40:40 +01:00
Thibault Delavallée 6bbc658f9b [FIX] mail: fixed wrong var name in notify; fixed a missing email in tests.
bzr revid: tde@openerp.com-20130318131919-31zdc7309c4zt8xj
2013-03-18 14:19:19 +01:00
Thibault Delavallée 7e696dfdcb [MERGE] Sync with trunk and latest mail changes.
bzr revid: tde@openerp.com-20130318122027-l570iyzlljshz4ne
2013-03-18 13:20:27 +01:00
Thibault Delavallée 5d59401b91 [MERGE] Sync with trunk, tried to resolve the conflicts without breakign everything.
bzr revid: tde@openerp.com-20130315120759-sf1o1sd80ycuuy7n
2013-03-15 13:07:59 +01:00
Thibault Delavallée 4484a3197c [MERGE] Sync with trunk, resolved conflicts due to forward port of 7.0
bzr revid: tde@openerp.com-20130315114338-54scb00rkp7zwr30
2013-03-15 12:43:38 +01:00
Thibault Delavallée 4387187b8b [IMP] mail: invite: slighty updated invite message. Updated tests accordingly.
bzr revid: tde@openerp.com-20130315110554-rszi5u1c9dybzq46
2013-03-15 12:05:54 +01:00
Christophe Matthieu 46893a182a [IMP] mail_followers: remove print in tests
bzr revid: chm@openerp.com-20130313160501-ywkyblx39cma9jln
2013-03-13 17:05:01 +01:00
Christophe Matthieu a57c079700 [IMP] mail_followers: invite tests
bzr revid: chm@openerp.com-20130305101143-6mcydxw60y18kw20
2013-03-05 11:11:43 +01:00
Christophe Matthieu edf89a76e7 [FIX] mail invite: add send_mail inside test
bzr revid: chm@openerp.com-20130227151204-fla559l37rilnhvb
2013-02-27 16:12:04 +01:00
Thibault Delavallée 0aaca4daa9 [IMP] mail: improved mass mailing. Correctly take into account email_to, email_cc, partner_to even if no template. Mass mailing is a no-subtype post with additional recipients manually notified. Added option (in technical features) to send to followers, or to directly create a mail_mail. Added some default values in mail_message. Added explicit management of email_from and reply_to. Having a reply_to bypasses the 'model-res_id' in message_id behavior allowing to construct threads. Added explicit recipient_ids field on mail_mail that replaces the recipient_ids parameter in mail_mail.send(). Updated tests accordingly.
bzr revid: tde@openerp.com-20130225164857-i635atksj7riq9nd
2013-02-25 17:48:57 +01:00
Thibault Delavallée c0b4bf55d8 [IMP] [CLEAN] mail: incoming emails have an email_from even if an author is found (do not loose data); fixed author subscription, delegated after message creation (otherwise allows to by-pass most of the access rules); code and comments cleaning.
bzr revid: tde@openerp.com-20130221150849-cydhns582qwrqznz
2013-02-21 16:08:49 +01:00
Thibault Delavallée 64fd407f34 [FIX] mail: fixed mail_post_auto_follow; updated tests accordingly.
bzr revid: tde@openerp.com-20130221142417-hnhqrw9q2uf4agos
2013-02-21 15:24:17 +01:00
Thibault Delavallée e7c630a18f [MERGE] Merged branch holding a first cleaning of message_post and message_post_user_api. Cleaning of auto follow will follow. Hahaha.
bzr revid: tde@openerp.com-20130221130153-k8q1u15mh6e4iwzt
2013-02-21 14:01:53 +01:00
Thibault Delavallée cd13bb9cf9 [CLEAN] mail: stop doing ugly things with partner_ids values before passing values to mail_message.create().
bzr revid: tde@openerp.com-20130221095906-5rbwnc83mjvpkyhh
2013-02-21 10:59:06 +01:00
Thibault Delavallée c3b6408715 [IMP] Chatter: refactoring of 'include new emails/partners' in Chatter compose. It does not create partner everytime; discarding the creation popup discards the creation and addition as recipient.
bzr revid: tde@openerp.com-20130220124923-w3e9hxomniphadj7
2013-02-20 13:49:23 +01:00
Thibault Delavallée a395638dfa [IMP] mail: better heuristic to find the author of an incoming email: in document's followers, or partner that is an user, or partner.
bzr revid: tde@openerp.com-20130214140701-y2nrnc163szni202
2013-02-14 15:07:01 +01:00
Thibault Delavallée d7f63a10fd [FIX] mail: notification emails: subject is now Re: <document_name>.
bzr revid: tde@openerp.com-20130214123925-2ymglkqph90ntebg
2013-02-14 13:39:25 +01:00
Christophe Matthieu ed28f9b892 [FIX] mail: change mail_features test for signature
bzr revid: chm@openerp.com-20130205145852-y3r7vu8e9t31jdh2
2013-02-05 15:58:52 +01:00
Christophe Matthieu baa9312e6f [FIX] mail: change mail_features test for signature
bzr revid: chm@openerp.com-20130205130611-m52yjvdmc1wi45nd
2013-02-05 14:06:11 +01:00
Christophe Matthieu 46c52b0650 [IMP] mail: signature
bzr revid: chm@openerp.com-20130131162814-93chvgsc4xorh3g2
2013-01-31 17:28:14 +01:00
Christophe Matthieu b7b969d6fa [IMP] mail_followers: get_signature_footer and test
bzr revid: chm@openerp.com-20130129142949-po3hv5utdxsfb99v
2013-01-29 15:29:49 +01:00
Thibault Delavallée 89ba499556 [IMP] Partners do not follow themselves by default now.
bzr revid: tde@openerp.com-20130109104513-3vlyw4knqp4d6to2
2013-01-09 11:45:13 +01:00
Thibault Delavallée 9b2406948e [IMP] mail, email_template: updated tests to match the new html sanitizer, that produces slighty different results (encoded symbols, encapsulated html).
bzr revid: tde@openerp.com-20121226162610-y2y5bmy8bux8smkp
2012-12-26 17:26:10 +01:00
Thibault Delavallée da4dc767c4 [MERGE] Various fixes and improvements in mail.
IMP:
- mail.compose.message: added a context key 'mail_post_autofollow' that automatically subscribe the message recipients to the document followers, if any
- sale, purchase, invoice: recipients of 'Send by email' action are now automatically added as followers, using the above key
- mail: the Chatter widget on documents now sets the displayed messages as read
- mail: for incoming emails going through message_process that have an author, the author is added in the related document followers, if any
FIX:
- mail: attachments added in Chatter/Mailboxes were not added to the notifications emails send to followers/recipients
- portal: fixed various mail_mail created without specifying the type field, that could crash if a conflicting 'default_type' key was present in context (i.e. in opportunities)

bzr revid: tde@openerp.com-20121221131108-jx9jkeukjamnd3yh
2012-12-21 14:11:08 +01:00
Thibault Delavallée e6a63fea3a [FIX] mail: tests: fixed mock of gateway.
bzr revid: tde@openerp.com-20121221111755-63q6w4pkvkx0lvcf
2012-12-21 12:17:55 +01:00
Thibault Delavallée 4ebbf0e58d [IMP] mail: cleaned some tests, assertTrue on the length of a list replaced by assertEqual.
bzr revid: tde@openerp.com-20130322141022-j26c1hiwfoduky2j
2013-03-22 15:10:22 +01:00
Thibault Delavallée 6cfb01d7c9 [FIX] mail: message_process: do not process incoming emails with a message_id already existing in database.
Before trying to find possible routes, check that the incoming email's
message_id is not already present in mail.message table.
If it is the case, return False.

Parsing of the message has been moved before routing, to avoid looking
for routes for emails we will discard.

Tests have been added and updated.

bzr revid: tde@openerp.com-20130322124809-ven2p5kxpqfjqxb5
2013-03-22 13:48:09 +01:00
Thibault Delavallée f49f43958d [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121221100609-2x59amtxj4sjedcu
2012-12-21 11:06:09 +01:00
Thibault Delavallée de64985e8c [IMP] mail_message: set_message_read and set_message_starred now have an argument to control the automatic notification creation. Chatter now calls set_message_read on received messages (on documents), to set them as read. This is therefore done independently of the message_read, to avoid writing in a read-based method. Added a mutex on the call on set_message_read, because of a recurrent concurrent accesses issue.
bzr revid: tde@openerp.com-20121220205328-gws2j32dsitofu89
2012-12-20 21:53:28 +01:00
Thibault Delavallée a8540c5b7e [REF] [FIX] mail: refactored auto-set read when viewing chatter widget. Added some tests. Also fixed a bug about message order with anybody else than admin.
bzr revid: tde@openerp.com-20121220142852-6sjk03791x829ys3
2012-12-20 15:28:52 +01:00
Thibault Delavallée 8dbf13a1e4 [MERGE] Merged branch holding the automatic set of notifications as read when viewing chatter.
bzr revid: tde@openerp.com-20121220133839-je1jt9ff4a0mfpxh
2012-12-20 14:38:39 +01:00
Thibault Delavallée e3c31cab9e [IMP] track_visibility atribute: moved onto explicit strings.
bzr revid: tde@openerp.com-20121220114730-nip8qaaajr5mqw6s
2012-12-20 12:47:30 +01:00
Thibault Delavallée 86200b4d9c [DOC] [IMP] mail_thread: updated documented the few magic context keys, mail_notify_noemail, mail_create_nosubscribe and mail_create_nolog.
bzr revid: tde@openerp.com-20121219171501-5ndw7aawi8kvttql
2012-12-19 18:15:01 +01:00
Thibault Delavallée 91af1e1e59 [FIX] mail: fixed message_track (subtype not found, style, var_name; updated tests with new implementation.
bzr revid: tde@openerp.com-20121219110502-j43pilfijv91td2q
2012-12-19 12:05:02 +01:00
Thibault Delavallée f8b3788fde [IMP] mail: refactored mechanism for auto subscription, based on a parent. Mapping of subtypes is done using parent_id and parent_field on child subtypes. For example, project subtypes are linked to task subtypes, using parent_id and parent_field project_id, to browse task.project_id.
bzr revid: tde@openerp.com-20121218153457-uh50bjedvxaawdqj
2012-12-18 16:34:57 +01:00
Thibault Delavallée bfea9dad64 [REF] mail: refactored tracked feature. It is now based on a dict defined at model level, giving which subtypes are triggere when modifying some given fields. Cleaned code.
bzr revid: tde@openerp.com-20121218122558-mnrtlwouwai65gq6
2012-12-18 13:25:58 +01:00
Thibault Delavallée 2dbe4a696e [MERGE] Sync wirth trunk.
bzr revid: tde@openerp.com-20121218093241-y0id5g1r1k6yok42
2012-12-18 10:32:41 +01:00
Cecile Tonglet 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
Sanjay Gohel (Open ERP) de45fd4fc1 [MERGE]with trunk
bzr revid: sgo@tinyerp.com-20121217050659-q5w6zwefizgjv4fd
2012-12-17 10:36:59 +05:30
Thibault Delavallée f1ee7f1ad9 [IMP] mail_message: added the right to reply to a message wes received even if we cannot see the related document.
bzr revid: tde@openerp.com-20121212160634-umbiq2erwijm2d20
2012-12-12 17:06:34 +01:00
Thibault Delavallée 090123436b [IMP] mail: updated lambda user, now having less permissive access rights on mail_mail.
bzr revid: tde@openerp.com-20121212114905-5kgnoix0puxo30ns
2012-12-12 12:49:05 +01:00
Thibault Delavallée 0be4d969af [IMP] mail: updated and improved tests.
bzr revid: tde@openerp.com-20121212104220-d6l7wjghv9oo9dy1
2012-12-12 11:42:20 +01:00