Commit Graph

39 Commits (9b4eb4c55e30fba687f992016d0f1369fbd41f9e)

Author SHA1 Message Date
Jairo Llopis 66fb64d41a
[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
2021-11-23 12:08:20 +00:00
Jairo Llopis b7b69281c6
[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
2021-07-09 10:41:39 +01:00
Alexandre D. Díaz c9e5000284 [FIX] mail_tracking: Store cc 2021-03-02 13:01:04 +01:00
Alexandre D. Díaz 7616c69a56 [IMP] mail_tracking: Discuss failed messages: Button and domain 2021-02-01 18:44:13 +01:00
OCA-git-bot 1c23f4f7da Merge PR #659 into 13.0
Signed-off-by pedrobaeza
2021-01-21 15:27:04 +00:00
nmadhoc 15d1b52669 [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
2021-01-21 08:53:18 -03:00
Wolfgang Pichler 05905e50c3 [FIX] re.search will return None when nothing found. So we have to check for this 2020-11-28 09:53:04 +01:00
Alexandre Díaz a7c2eeaee9 [IMP] mail_tracking: Ignore catchall 2020-04-23 11:29:33 +02:00
Alexandre Díaz 084cb09b80 [IMP] mail_tracking: Store To recipients and omit aliases 2020-04-15 18:08:28 +02:00
Alexandre Díaz d968332c7b [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.
2020-02-24 19:10:28 +01:00
Alexandre Díaz 62d04f9d7d [MIG] mail_tracking: Migration to 13.0 2020-02-05 17:32:40 +01:00
Alexandre Díaz c16bb47d6f [IMP] mail_tracking: black, isort 2020-02-05 16:34:45 +01:00
Alexandre Díaz 0f36b4c04d [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).
2020-02-05 14:57:34 +01:00
Alexandre Díaz 29905e66f9 [IMP] mail_tracking: Failed Messages to 12.0 2020-02-05 14:57:34 +01:00
Alexandre Díaz 14dddbac3e [IMP] mail_tracking: translations 2020-02-05 14:57:34 +01:00
Alexandre Díaz aa9ace1c72 [IMP] mail_tracking: Convert 'partner_trackings' to dict 2020-02-05 14:57:34 +01:00
Alexandre Díaz e47ef4ed00 [IMP] mail_tracking: Cc name & check if mail is Cc 2020-02-05 14:57:34 +01:00
David cea7f76c8e [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.
2020-02-05 14:57:34 +01:00
Alexandre Díaz e060919e23 [FIX] mail_tracking: Repeated suggested cc emails 2020-02-05 14:57:34 +01:00
Alexandre Díaz 6b2c9ff48c [MIG] mail_tracking: Adapt Cc to 12.0 2020-02-05 14:57:34 +01:00
Alexandre Díaz fe5be21833 [IMP] mail_tracking: Cc 2020-02-05 14:57:34 +01:00
Pedro M. Baeza 1a9892d3d0 [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`.
2020-02-05 14:57:34 +01:00
ernesto 31948be06f [MIG] mail_tracking: Migration to 12.0 2020-02-05 14:57:34 +01:00
David Vidal 8890ec87ea [IMP] mail_tracking: email score performance (#299) 2020-02-05 14:57:34 +01:00
David 8f30f4daa9 [MIG] mail_tracking: Migration to 11.0 2020-02-05 14:57:34 +01:00
eLBati 09ff021613 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
2020-02-05 14:57:34 +01:00
Antonio Espinosa 5cb779b5eb [FIX] mail_tracking: bugfixes (#199)
* [FIX] Only one data-odoo-tracking-email tag in each email
* [FIX] Get status even in multicompany instances
2020-02-05 14:57:34 +01:00
Pedro M. Baeza 1e179a2a33 [FIX] mail_tracking: Obtain outgoing server with sudo
As regular users can't access this object.
2020-02-05 14:57:34 +01:00
Antonio Espinosa b11c6ae4f8 [9.0][FIX][mail_tracking] Control exception when mail_message was removed (#132) 2020-02-05 14:57:34 +01:00
Antonio Espinosa a1035abf89 [8.0][FIX][mail_tracking] Use event recipient address to find partners and contacts to bounce (#133) 2020-02-05 14:57:34 +01:00
Antonio Espinosa d884e4802f Add access to portal/public user to his own email trackings 2020-02-05 14:57:34 +01:00
Antonio Espinosa 5e7612118b [IMP] mail_tracking: Allow to define a custom mail_tracking base url 2020-02-05 14:57:34 +01:00
Antonio Espinosa c02aa2b5bb [IMP] mail_tracking performance and bounce process (#103) 2020-02-05 14:57:34 +01:00
Damien Bouvy a4b0b20d57 [MIG] mail_tracking: Migrated to 10.0 2020-02-05 14:57:34 +01:00
Pedro M. Baeza 4113593ceb [FIX] mail_tracking: Typo 2020-02-05 14:57:34 +01:00
Antonio Espinosa 9fc34be574 [MIG] mail_tracking
* Improve tests
* Show trackings even if partner removed
* Disable CSRF protection to webhooks controllers
2020-02-05 14:57:34 +01:00
Antonio Espinosa 5b6ca43622 [FIX] Update email_score when email changes 2020-02-05 14:57:34 +01:00
Antonio Espinosa ba88f8ae71 [8.0][IMP][mail_tracking] Speed installation time and discard concurrent events (#82)
[IMP] mail_tracking: Speed installation time, discard concurrent events and other fixes
2020-02-05 14:57:34 +01:00
Antonio Espinosa 0a5c9adcd7 [8.0][ADD] mail_tracking addon (#67)
* [ADD] mail_tracking addon

* Add description icon

* Fixes remarked

* Fix Travis error

* Remarks fixed
2020-02-05 14:57:34 +01:00