Commit Graph

443 Commits

Author SHA1 Message Date
Olivier Dony a841f06677 [FIX] mail.thread.route: safer parsing of envelope headers, courtesy of Jordi Llonch
The Delivered-To cannot be considered
exclusively authoritative, as it is
commonly overwritten due to virtual
routes during mail delivery.
Its primary purpose is to avoid mail
loops, so it cannot be fully trusted 
here.

lp bug: https://launchpad.net/bugs/1085488 fixed

bzr revid: odo@openerp.com-20121218122935-vbcld3vrl260z96m
2012-12-18 13:29:35 +01:00
Cecile Tonglet 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
Thibault Delavallée f64d4a5ada [CLEAN] mail: misc cleaning of read -> browse, SUPERUSER_ID -> uid, because no need to SUPERUSER in this case.
bzr revid: tde@openerp.com-20121212160804-n182n9bzo8vscuvt
2012-12-12 17:08:04 +01:00
Thibault Delavallée 347d0e5b46 [IMP] portal removed access rights of portal user on res_partner and derived tables. Updated several accesses to bypass the security issues. Updated portal tests to have a more complete test scenario.
bzr revid: tde@openerp.com-20121212125518-k0s07niojr8a1xtu
2012-12-12 13:55:18 +01:00
Thibault Delavallée 0a8c55f6f4 [FIX] mail_thread: when deleting a document, delete all followers, using superuser_id to bypass various security rules.
bzr revid: tde@openerp.com-20121212104141-dogt5gi2v70vyr7d
2012-12-12 11:41:41 +01:00
Thibault Delavallée 3a1e0059a2 [MERGE] Merged branch holding fix of access rights when deleting a document, and the removal of inherits between mail.group and ir.ui.menu.
bzr revid: tde@openerp.com-20121211145536-a02i45isg30l9940
2012-12-11 15:55:36 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Thibault Delavallée d8235eec3c [CLEAN] _auto_join -> auto_join.
bzr revid: tde@openerp.com-20121205153609-tncmotw8jnoa53e7
2012-12-05 16:36:09 +01:00
Christophe Matthieu 852b219cec [FIX] mail: when a user try to delete a document, no access error. debug: delete followers after the document.
bzr revid: chm@openerp.com-20121205150827-24q03x65tplsgg4t
2012-12-05 16:08:27 +01:00
Thibault Delavallée 85d1f4fcb1 [IMP] mail_thread: message_unread: fixed domain of fnct_search, unread message have to_read flag at True, not false.
bzr revid: tde@openerp.com-20121205140539-5g6ebfx4j425xglr
2012-12-05 15:05:39 +01:00
Thibault Delavallée 3e2651998f [MERGE] Merged addons branch trunk-join-speedup-tde, holding mail_message modifications to have favorite_user_ids -> starred, functional searchable field. This field checks if there is a related notification, for the current user, about the starred flag.
bzr revid: tde@openerp.com-20121205095554-80pxwnuaaq2lz638
2012-12-05 10:55:54 +01:00
Thibault Delavallée 3bb1475f6e [FIX] mail_thread: fixed search domain on message_unread that was buggy.
bzr revid: tde@openerp.com-20121205095020-932qhljgd5ll9nzb
2012-12-05 10:50:20 +01:00
Thibault Delavallée 83d1e7cdf2 [IMP] mail_message: notification_ids as _auto_join; mail_thread: mail_message as _auto_join. Updated search domain of function fields accordingly.
bzr revid: tde@openerp.com-20121204145645-vea4i1p93zmwztqx
2012-12-04 15:56:45 +01:00
Thibault Delavallée 9f84bbddfb [IMP] mail: message_unread searchable field now returns a domain. This domain is quite complex, because it bypasses limitations of the _auto_join feature used on message_ids. It should be: message_ids.read = False. However, it takes into account the one2many model, as well as to_read being a function field also searchable. Ths parsing is not capable to handle this kind of thing correctly now without using an ugly hack. Updated _search_to_read and _search_starred.
bzr revid: tde@openerp.com-20121129144253-i9e7m2kqjteq8ajr
2012-11-29 15:42:53 +01:00
Thibault Delavallée bb759994ac [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121129113658-x23z7w5e54mr4j9v
2012-11-29 12:36:58 +01:00
Thibault Delavallée e0fa7da24f [REM] mail_thread: removed field message_comment_ids, not really necessary. In message_summary, we display the true number of messages, not only comment number. This is more consistent with what you will see in Chatter, aka all messages.
bzr revid: tde@openerp.com-20121127143520-cv4os3dosrqo01wb
2012-11-27 15:35:20 +01:00
Thibault Delavallée 9dc08f3d70 [IMP] mail_thread: improved search function of message_unread, now directly implemented in SQL to speedup the result.
bzr revid: tde@openerp.com-20121127143222-nj9i2o5byor4m7oq
2012-11-27 15:32:22 +01:00
vta vta@openerp.com 946a5e700d [FIX] Remove remaining message_followers widget.
bzr revid: vta@openerp.com-20121121135721-rqjd3x4d2bdu4a7i
2012-11-21 14:57:21 +01:00
vta vta@openerp.com 9a15327d52 [MERGE] Latest trunk.
bzr revid: vta@openerp.com-20121121091133-svpmfiurclr7n69e
2012-11-21 10:11:33 +01:00
Thibault Delavallée b9c07b1019 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121120090512-82lyg9jotfvlim0n
2012-11-20 10:05:12 +01:00
Thibault Delavallée 3bc9d36b77 [FIX] message_route: when replying to a message, use its model and res_id, never lost.
bzr revid: tde@openerp.com-20121119141740-tjlp1uy4mq4lrg48
2012-11-19 15:17:40 +01:00
Thibault Delavallée 8007db3bc1 [FIX] mail_thread: when posting a messure using mail_thread as model (typically, a private message without model, res_id), do not try to set it on the attachments; this make the custom access rules check of ir.attachment crash.
bzr revid: tde@openerp.com-20121116112800-8ur8yr8alcrlgg1z
2012-11-16 12:28:00 +01:00
Thibault Delavallée f24d291e51 [FIX] mail_thread: fixed calculation of message_unread: read field may be False or NULL.
bzr revid: tde@openerp.com-20121116095003-8bbfyyvlhzqehf6h
2012-11-16 10:50:03 +01:00
vta vta@openerp.com e92a31e2bb [IMP] Now portal users can subscribe to public content.
bzr revid: vta@openerp.com-20121116075744-tclpsjxi1ut6wvh8
2012-11-16 08:57:44 +01:00
Thibault Delavallée 53e1a01ee1 [FIX] mail_thread: fixed function name from tools, text2html is plaintext2html.
bzr revid: tde@openerp.com-20121114163252-s0eqvjvdy953yyq2
2012-11-14 17:32:52 +01:00
Thibault Delavallée 026a042e7b [FIX] mail_thread: fixed message_subtype wrongly taken into account when posting through Chatter or fetchmail.
bzr revid: tde@openerp.com-20121114143506-qcmhrcngfxm4tbvu
2012-11-14 15:35:06 +01:00
Thibault Delavallée 17c2939ddc [IMP] mail_thread: message_process: plaintext incoming messages are preserved in pre tags.
bzr revid: tde@openerp.com-20121114111129-8nkneu1h6ij2lk99
2012-11-14 12:11:29 +01:00
Thibault Delavallée 48e3bdb332 [IMP] mail_thread: incoming messages without model that are reply to a private message shoudl not have any res_id. Assert it.
bzr revid: tde@openerp.com-20121114105323-5an5v6m7bdaaomy1
2012-11-14 11:53:23 +01:00
Thibault Delavallée fbccb823f8 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121112161523-yfp1dczcnmi85t8e
bzr revid: tde@openerp.com-20121114083900-qw40e8ii1rfl7gt1
2012-11-14 09:39:00 +01:00
Thibault Delavallée 7b4f7d0d19 [FIX] [IMP] [OPTI] mail_thread: optimized _get_message_data to lessen the display time of heavy list views.
bzr revid: tde@openerp.com-20121112131051-seci8tw9156iyjxz
2012-11-12 14:10:51 +01:00
Thibault Delavallée b1a5db6a91 [FIX] message_process: fixed wrong domain for finding parent message based on in-reply-to.
bzr revid: tde@openerp.com-20121109100900-ri2126fe0ejb8c8w
2012-11-09 11:09:00 +01:00
Thibault Delavallée acb1156ee5 [FIX] mail: fixed bug adding signature of partners without users, therefore without signature field; fixed message_id of mail.message without model,res_id, that were not granted a message_id, therefore generated when sending a mail.mail, therefore breaking parent relationship based on message_id. Also fixed content_subtype of message coming from message_process.
bzr revid: tde@openerp.com-20121108164138-8jp2340t6s2sa9hd
2012-11-08 17:41:38 +01:00
Thibault Delavallée d5d7dced4d [FIX] mail: message_process now handles replies to messages without model, thread_id. Based on in-reply-to, it finds the parent message. mail_thread.message_post_user_api is called to create a new mail.message, bypassing message_new / message_update in this case. Some improvements added to partner_ids when using the chatter or message processing.
bzr revid: tde@openerp.com-20121108152502-aow7vhu4erx7fb9l
2012-11-08 16:25:02 +01:00
Thibault Delavallée 389b502b63 [FIX] mail: posting from mailboxes now correctly handles recipients of replies message. Body is now converted into html.
bzr revid: tde@openerp.com-20121107171521-whwcjefpjvt91ye6
2012-11-07 18:15:21 +01:00
Thibault Delavallée da6ee587e3 [CLEAN] Misc cleaning in comments and domain for mailboxes.
bzr revid: tde@openerp.com-20121107153910-uo22t1ahd9qoo1ub
2012-11-07 16:39:10 +01:00
Thibault Delavallée f9829bbb93 [FIX] mail_thread: in message_parse, correctly set partner_ids of the message dict. By the way small things in amil module.
bzr revid: tde@openerp.com-20121107105148-6o1dvu7f4ms24rbx
2012-11-07 11:51:48 +01:00
Thibault Delavallée ffc23f22f0 [CLEAN] Removed unused variables.
bzr revid: tde@openerp.com-20121106121949-2u577j7f1guq4tyu
2012-11-06 13:19:49 +01:00
Fabien Pinckaers 376cfc937a [MERGE] addosn 17
bzr revid: fp@tinyerp.com-20121102082707-wpv96avu8l5incs8
2012-11-02 09:27:07 +01:00
Amit Patel 05f23f6204 [MERGE]:trunk
bzr revid: apa@tinyerp.com-20121030045813-d32rqt3fkfighp6e
2012-10-30 10:28:13 +05:30
Amit Patel 6696825b5e [MERGE]:trunk
bzr revid: apa@tinyerp.com-20121017070937-52t28h5twjkj5rlr
bzr revid: apa@tinyerp.com-20121019062157-qxy9gw1b5d9siipp
bzr revid: apa@tinyerp.com-20121022051523-v89anrokk46jxmqb
2012-10-22 10:45:23 +05:30
Thibault Delavallée fbb80f4ba6 [REVIEW] mail: some code cleanup before merging.
mail.message: fixed to_read condition
mail.message: cleaned message_read code
mail.thread: fixed mega security hole, giving superuser rights when creating objects in mail.thread

bzr revid: tde@openerp.com-20121019095919-xa95j10f22va6djm
2012-10-19 11:59:19 +02:00
Christophe Matthieu df2d88a5ab [FIX] mail: message_post_api call and new_message_id value
bzr revid: chm@openerp.com-20121019073338-brb0g1qivvs9pyry
2012-10-19 09:33:38 +02:00
Thibault Delavallée 7c142d5a5c [MERGE] Merged with addons/trunk, re-done to get last fixes from trunk.
bzr revid: tde@openerp.com-20121018130049-d2cisvw7g503chvs
bzr revid: tde@openerp.com-20121018130601-nj99fd1a5ok7r952
2012-10-18 15:06:01 +02:00
Thibault Delavallée 1737a3161b [REVIEW] Cleaning before merging.
bzr revid: tde@openerp.com-20121018093453-trijh79z0j7oha6f
2012-10-18 11:34:53 +02:00
Thibault Delavallée d24c21222e [REM] mail: removed is_private on mail.message model. Updated models and widgets accordingly.
bzr revid: tde@openerp.com-20121017141933-uwbgqn041mvdtp7p
2012-10-17 16:19:33 +02:00
Christophe Matthieu ec88647be0 [IMP] mail: attachment res_model, read => to_read
bzr revid: chm@openerp.com-20121017093559-fndir3gssokoda7v
2012-10-17 11:35:59 +02:00
Thibault Delavallée e915bd83cb [IMP] mail_thread: remove message_subtype_data field, not used anymore; message_is_follower is not computed with message_follower_ids. Updated mail_followers widget, as message_is_follower is barely never used in views. Updated tests.
bzr revid: tde@openerp.com-20121016111753-shhyhred0m210o1z
2012-10-16 13:17:53 +02:00
Christophe Matthieu 7084273c5c [IMP]mail, openchatter: read/unread
bzr revid: chm@openerp.com-20121016082718-j0vlptofi2w0hikw
2012-10-16 10:27:18 +02:00
Christophe Matthieu f71d09a7db [IMP]mail: js dataset, context
bzr revid: chm@openerp.com-20121015160324-tspchfwxg3v8nt2o
2012-10-15 18:03:24 +02:00
Thibault Delavallée 55700ac661 [CLEAN] get_message_subtypes -> message_get_subscription_data
bzr revid: tde@openerp.com-20121015133438-oqbe24v80y0ayimn
2012-10-15 15:34:38 +02:00