Commit Graph

55 Commits (d9d007e18423e9af9d2ec79a78b9911a8933f011)

Author SHA1 Message Date
OCA-git-bot a590819b35 Merge PR #1078 into 15.0
Signed-off-by pedrobaeza
2023-07-10 05:52:17 +00:00
dhx 3b7ac27ac8 [IMP] mail_tracking: New config parameter to disable the tracking image
- As the tracker img in the body is currently also used to set the
  X-Odoo-MailTracking-ID mail header we can remove the tag only
  after this is done
- Added tests to check for the presence and absence of the tracking
  image tag depending on the new configuration parameter
2023-06-13 13:31:11 +02:00
David 4ea4152ddd [FIX] mail_tracking: allowed trackings compute
In the forward port of the permission check, a column was dropped from
the tuple, but the following code wasn't adapted to the new tuple
length. For clarity sake we also name the tuple unpacking into proper
variables.

TT43453
2023-05-22 12:09:56 +02:00
David 7ca754ef6b [FIX] mail_tracking: thread permissions
If a user tries to read a thread on a record and one message is from a
partner on which he has no permissions, there will be an exception as
this method tries to fetch info from such partner.

TT43075
2023-05-09 17:12:04 +02:00
Thierry Ducrest a561f0e1e6 Fix mail tracking bounce notification not logged
This is to resolve the following issue:

* https://github.com/OCA/social/issues/1121
2023-05-05 08:38:25 +02:00
sergio-teruel faca717a0e [FIX] mail_tracking: Crash to add malformed emails to recipients suggestions 2023-02-23 19:32:10 +01:00
jb 74de552553 use keyword arguments in build_email to comply with portal tests 2023-02-09 18:22:39 +01:00
OCA-git-bot fd900e2bb9 Merge PR #1057 into 15.0
Signed-off-by pedrobaeza
2023-02-02 14:16:08 +00:00
david 015376b0f4 [FIX] mail_tracking: permissions
Refine which mail tracking record is allowed to see. We can rely on the
ACLs of the related records so we minimize inconvenient message subject
leaks.

A regular user can read these mail.tracking.email records:

- Those with a linked mail.message that the user can read
- Those with a linked mail.mail that the user can read
- Those with no message/mail link but a linked partner that the user can
read.
- Those with no linked records.

TT31399
2023-01-31 18:18:59 +01:00
Jairo Llopis 43875033ae [FIX] mail_tracking: process sent events
Up until now, the `sent` event type was never processed, probably because it "made no sense", as an unsent email would never trigger an event.

However, it makes sense to process it because you may have a local relay that transmits mails over to the mail provider. In those circumstances, you should have 2 "sent" events (one from the relay and another one from the provider).

Also marked some useless parts of code for removal.

@Tecnativa TT32365
2023-01-31 18:12:45 +01:00
David 062f38577b [IMP] mail_tracking_mailgun: mass mailing manual tracking
Mass mailing are tracked from mail.trace as the don't store a message in
the db. In order to gather the message_id and be able to do manual
checks to mailgun, that's the table where we should get the message id.

TT40816
2023-01-31 18:00:05 +01:00
EAJGlobal 836c7d0981
Fixed Deprecated Warning 2022-08-23 16:05:03 +00:00
Jasmin Solanki 680eee8074 [MIG] mail_tracking: Migration to 15.0 2022-04-20 14:46:22 +05:30
Jasmin Solanki 021689d073 [IMP] mail_tracking: black, isort, prettier 2022-04-20 14:46:22 +05:30
houssine 53cc2ff96f [PEP8] pre-commit 2022-04-20 14:46:22 +05:30
houssine d45941df4d [PORT] porting js code to comply with OWL 2022-04-20 14:46:22 +05:30
Jairo Llopis 814329c55a [FIX] mail_tracking: reduce spammy score
Fix https://github.com/OCA/social/issues/701, following idea from https://kb.mailwizz.com/articles/low-score-in-spamassassin-because-of-the-rand_mktg_header-rule/ to avoid matching the regexp explained in https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7888#c5

@Tecnativa TT29674
2022-04-20 14:46:21 +05:30
simonev 7f964d9386 [14.0][MIG] mail_tracking 2022-04-20 14:46:21 +05:30
Areeb Siddiqi c721351a9c [IMP] mail_tracking: black, isort, prettier 2022-04-20 14:46:21 +05:30
Alexandre D. Díaz bb633d22c5 [FIX] mail_tracking: Store cc 2022-04-20 14:46:21 +05:30
Alexandre D. Díaz 6b55471fc3 [IMP] mail_tracking: Discuss failed messages: Button and domain 2022-04-20 14:46:21 +05:30
nmadhoc a8631c588f [FIX] mail_tracking
When a user try to resend message gets an error stating that it's only allowed for users who belong to the Administration/Settings group
2022-04-20 14:46:21 +05:30
Wolfgang Pichler 26c6cd33af [FIX] re.search will return None when nothing found. So we have to check for this 2022-04-20 14:46:21 +05:30
Alexandre Díaz 7e271bb5ca [IMP] mail_tracking: Ignore catchall 2022-04-20 14:46:21 +05:30
Alexandre Díaz bedeb56759 [IMP] mail_tracking: Store To recipients and omit aliases 2022-04-20 14:46:21 +05:30
Alexandre Díaz db068ba018 [FIX] mail_tracking: Changed injection method for 'failed_message_ids' field
Before this commit, some methods with views crashes trying to
process 'failed_message_ids' field.
After this commit the 'failed_message_ids' field description
is properly generated.
2022-04-20 14:46:21 +05:30
Alexandre Díaz fc7d2e9f3a [MIG] mail_tracking: Migration to 13.0 2022-04-20 14:46:21 +05:30
Alexandre Díaz 200e016ab8 [IMP] mail_tracking: black, isort 2022-04-20 14:46:21 +05:30
Alexandre Díaz 5f9e8ff95e [FIX] mail_tracking: Refresh thread widget when sets a message as reviewed
Previous this commit, failed messages widget data wasn't updated properly when you
set as reviewed/retry the last message displayed.

This commit resolve the problem and improves the "set as reviewed" action to avoid
multi-user inconsistencies (don't toggle the value).
2022-04-20 14:46:21 +05:30
Alexandre Díaz eba1e0de8a [IMP] mail_tracking: Failed Messages to 12.0 2022-04-20 14:46:21 +05:30
Alexandre Díaz 5ec699ab9a [IMP] mail_tracking: translations 2022-04-20 14:46:21 +05:30
Alexandre Díaz d3ddffb54b [IMP] mail_tracking: Convert 'partner_trackings' to dict 2022-04-20 14:46:21 +05:30
Alexandre Díaz 7ef6c69205 [IMP] mail_tracking: Cc name & check if mail is Cc 2022-04-20 14:46:21 +05:30
David 61463fc530 [IMP] mail_tracking: mail.thread filter for tracking errors
- Any model inheriting from mail.thread will have a filter available to
obtain records with errors in their messages trackings.
- The messages can be marked as done to avoid false positives when the
issues are solved.
2022-04-20 14:46:21 +05:30
Alexandre Díaz ef83aacf9a [FIX] mail_tracking: Repeated suggested cc emails 2022-04-20 14:46:21 +05:30
Alexandre Díaz 6513662533 [MIG] mail_tracking: Adapt Cc to 12.0 2022-04-20 14:46:21 +05:30
Alexandre Díaz c2fd8c95fc [IMP] mail_tracking: Cc 2022-04-20 14:46:21 +05:30
Pedro M. Baeza 71b67a5475 [FIX] mail_tracking: Don't call write inside other write
Or infinite recursions will happen on other `write` overwrites, like the one that happens
on `mass_mailing_partner`.
2022-04-20 14:46:21 +05:30
ernesto cd1d3be640 [MIG] mail_tracking: Migration to 12.0 2022-04-20 14:46:21 +05:30
David Vidal f1259fc0ec [IMP] mail_tracking: email score performance (#299) 2022-04-20 14:46:21 +05:30
David 4c0a9e46c9 [MIG] mail_tracking: Migration to 11.0 2022-04-20 14:46:21 +05:30
eLBati 86031a98a9 IMP mail_tracking performances
On our server,
queries based on "mail_tracking_event"."tracking_email_id" improved from 501,924 ms to 1,840 ms
queries based on "mail_tracking_email"."mail_message_id" improved from 167,436 ms to 3,223 ms

The last ones are run several times when a thread has many messages
2022-04-20 14:46:21 +05:30
Antonio Espinosa 2c5a5647db [FIX] mail_tracking: bugfixes (#199)
* [FIX] Only one data-odoo-tracking-email tag in each email
* [FIX] Get status even in multicompany instances
2022-04-20 14:46:21 +05:30
Pedro M. Baeza adbd66323f [FIX] mail_tracking: Obtain outgoing server with sudo
As regular users can't access this object.
2022-04-20 14:46:21 +05:30
Antonio Espinosa 3cfe3a2234 [9.0][FIX][mail_tracking] Control exception when mail_message was removed (#132) 2022-04-20 14:46:21 +05:30
Antonio Espinosa 3b5ee4cd61 [8.0][FIX][mail_tracking] Use event recipient address to find partners and contacts to bounce (#133) 2022-04-20 14:46:21 +05:30
Antonio Espinosa 527a8d09c5 Add access to portal/public user to his own email trackings 2022-04-20 14:46:21 +05:30
Antonio Espinosa bc98b9d162 [IMP] mail_tracking: Allow to define a custom mail_tracking base url 2022-04-20 14:46:21 +05:30
Antonio Espinosa 6e5de16361 [IMP] mail_tracking performance and bounce process (#103) 2022-04-20 14:46:21 +05:30
Damien Bouvy 4798d3c817 [MIG] mail_tracking: Migrated to 10.0 2022-04-20 14:46:21 +05:30