Addons concerning odoo's social ERP features and messaging in general
 
 
 
Go to file
Jairo Llopis 0f37487265
[IMP] mail_tracking_mailgun: refactor to support modern webhooks
Before this patch, the module was designed after the [deprecated Mailgun webhooks][3]. However Mailgun had the [events API][2] which was quite different. Modern Mailgun has deprecated those webhooks and instead uses new ones that include the same payload as the events API, so you can reuse code.

However, this was incorrectly reusing the code inversely: trying to process the events API through the same code prepared for the deprecated webhooks.

Besides, both `failed` and `rejected` mailgun events were mapped to `error` state, but that was also wrong because [`mail_tracking` doesn't have an `error` state][1].

So the logic of the whole module is changed, adapting it to process the events API payload, both through controllers (prepared for the new webhooks) and manual updates that directly call the events API.

Also, `rejected` is now translated into `reject`, and `failed` is translated into `hard_bounce` or `soft_bounce` depending on the severity, as specified by [mailgun docs][2]. Also, `bounced` and `dropped` mailgun states are removed because they don't exist, and instead `failed` and `rejected` properly get their metadata.

Of course, to know the severity, now the method to obtain that info must change, it' can't be a simple dict anymore.

Added more parameters because for example modern Mailgun uses different keys for signing payload than for accessing the API. As there are so many parameters, configuration is now possible through `res.config.settings`. Go there to autoregister webhooks too.

Since the new webhooks are completely incompatible with the old supposedly-abstract webhooks controllers (that were never really that abstract), support for old webhooks is removed, and it will be removed in the future from `mail_tracking` directly. There is a migration script that attempts to unregister old webhooks and register new ones automatically.

[1]: f73de421e2/mail_tracking/models/mail_tracking_event.py (L31-L42)
[2]: https://documentation.mailgun.com/en/latest/api-events.html#event-types
[3]: https://documentation.mailgun.com/en/latest/api-webhooks-deprecated.html
2021-10-28 11:33:59 +01:00
base_search_mail_content Update translation files 2021-08-03 18:01:46 +00:00
email_template_qweb email_template_qweb 12.0.1.1.0 2021-01-20 06:30:36 +00:00
fetchmail_thread_default Translated using Weblate (Slovenian) 2020-08-11 16:59:52 +00:00
mail_activity_board Update translation files 2021-09-24 14:26:07 +00:00
mail_activity_done Translated using Weblate (Italian) 2021-01-28 15:44:51 +00:00
mail_activity_partner Translated using Weblate (Portuguese) 2021-05-11 13:47:46 +00:00
mail_activity_reminder Translated using Weblate (Portuguese) 2021-05-11 13:47:46 +00:00
mail_activity_team [OU-REM] mail_activity_team: Migrations scripts from previous version 2021-09-03 11:31:55 +02:00
mail_attach_existing_attachment Update translation files 2020-05-07 17:13:08 +00:00
mail_attach_existing_attachment_account [UPD] README.rst 2019-07-29 03:40:40 +00:00
mail_check_mailbox_size [UPD] Update mail_check_mailbox_size.pot 2020-02-18 10:37:37 +00:00
mail_debrand Translated using Weblate (Italian) 2021-05-06 19:47:42 +00:00
mail_drop_target mail_drop_target 12.0.1.1.1 2020-06-26 11:25:59 +00:00
mail_footer_notified_partner Translated using Weblate (French) 2021-02-26 11:45:43 +00:00
mail_full_expand Translated using Weblate (Slovenian) 2020-03-19 10:13:55 +00:00
mail_history [ADD] icon.png 2020-08-27 11:53:50 +00:00
mail_improved_tracking_value [UPD] Update mail_improved_tracking_value.pot 2021-04-23 21:41:42 +00:00
mail_inline_css Update translation files 2019-12-27 16:42:52 +00:00
mail_notification_custom_subject [ADD] icon.png 2021-01-14 08:00:55 +00:00
mail_optional_autofollow Translated using Weblate (Portuguese) 2021-04-06 21:46:33 +00:00
mail_optional_follower_notification Translated using Weblate (Italian) 2021-05-24 17:47:50 +00:00
mail_outbound_static mail_outbound_static 12.0.1.0.1 2020-07-29 10:26:47 +00:00
mail_preview_audio mail_preview_audio 12.0.1.0.1 2020-09-28 16:25:23 +00:00
mail_preview_base mail_preview_base 12.0.1.0.1 2020-09-28 16:25:20 +00:00
mail_private [UPD] Update mail_private.pot 2021-08-03 18:01:22 +00:00
mail_restrict_follower_selection mail_restrict_follower_selection 12.0.1.0.2 2020-08-03 13:19:39 +00:00
mail_send_copy [UPD] README.rst 2021-01-09 10:38:27 +00:00
mail_show_follower [ADD] icon.png 2021-07-05 08:58:22 +00:00
mail_template_substitute mail_template_substitute 12.0.1.0.1 2020-03-07 08:57:36 +00:00
mail_track_diff_only [UPD] README.rst 2019-07-29 03:40:40 +00:00
mail_tracking [FIX] mail_tracking: process sent events 2021-10-15 11:58:00 +01:00
mail_tracking_mailgun [IMP] mail_tracking_mailgun: refactor to support modern webhooks 2021-10-28 11:33:59 +01:00
mail_tracking_mass_mailing Translated using Weblate (Slovenian) 2020-03-30 22:14:00 +00:00
mass_mailing_custom_unsubscribe Translated using Weblate (French (France)) 2021-08-03 17:49:20 +00:00
mass_mailing_custom_unsubscribe_event mass_mailing_custom_unsubscribe_event 12.0.1.0.1 2020-06-30 08:18:43 +00:00
mass_mailing_event_registration_exclude Update translation files 2020-08-16 11:40:06 +00:00
mass_mailing_list_dynamic Update translation files 2021-03-17 20:38:44 +00:00
mass_mailing_newsletter_welcome_mail Translated using Weblate (Portuguese) 2020-11-18 21:36:03 +00:00
mass_mailing_partner mass_mailing_partner 12.0.1.0.9 2021-09-22 15:56:36 +00:00
mass_mailing_resend Translated using Weblate (French) 2021-03-04 13:45:49 +00:00
mass_mailing_unique Translated using Weblate (French) 2021-03-04 13:45:50 +00:00
message_auto_subscribe_notify_own [UPD] Update message_auto_subscribe_notify_own.pot 2020-08-19 08:14:36 +00:00
setup [ADD] setup.py 2021-07-05 08:58:22 +00:00
test_mail_private test_mail_private 12.0.1.0.1 2020-08-20 08:36:57 +00:00
website_mass_mailing_name Translated using Weblate (Portuguese) 2020-11-18 21:36:03 +00:00
.editorconfig [ADD] .editorconfig [ci skip] 2019-11-19 21:14:41 +01:00
.gitignore [MIG] Add metafiles 2018-09-27 02:38:47 +02:00
.travis.yml [FIX] compatibility between mail_send_copy and mail_tracking together 2020-09-01 10:53:09 +02:00
LICENSE [MIG] Add metafiles 2018-09-27 02:38:47 +02:00
README.md [UPD] addons table in README.md 2021-09-24 14:25:56 +00:00
oca_dependencies.txt [12.0][MIG] mail_drop_target 2020-03-09 09:28:13 +01:00
requirements.txt [FIX] extract-msg: Error in version 0.27.6, define max version in requirements.txt 2020-10-22 12:06:40 +02:00
test-requirements.txt [ADD] mail_activity_reminder 2020-05-07 19:38:24 +02:00

README.md

Runbot Status Build Status Coverage Status

Social addons for Odoo

Addons concerning Odoo's social ERP features and messaging in general

Available addons

addon version maintainers summary
base_search_mail_content 12.0.1.0.1 Base Search Mail Content
email_template_qweb 12.0.1.1.0 Use the QWeb templating mechanism for emails
fetchmail_thread_default 12.0.1.0.0 Post unkonwn messages to an existing thread
mail_activity_board 12.0.1.1.0 Add Activity Boards
mail_activity_done 12.0.2.0.0 Mail Activity Done
mail_activity_partner 12.0.1.0.0 Add Partner to Activities
mail_activity_reminder 12.0.1.0.1 Reminder notifications about planned activities
mail_activity_team 12.0.1.2.3 Add Teams to Activities
mail_attach_existing_attachment 12.0.1.0.0 Adding attachment on the object by sending this one
mail_attach_existing_attachment_account 12.0.1.0.0 Module to use attach existing attachment for account module
mail_check_mailbox_size 12.0.1.0.0 eLBati Send an email summarizing the current space used by a mailbox
mail_debrand 12.0.2.0.1 pedrobaeza Remove Odoo branding in sent emails
mail_drop_target 12.0.1.1.1 Attach emails to Odoo by dragging them from your desktop
mail_footer_notified_partner 12.0.1.0.0 This module adds the list of notified partners in the footer of notification e-mails sent by Odoo.
mail_full_expand 12.0.1.0.0 Expand mail in a big window
mail_history 12.0.1.0.0 Module to see old messages
mail_improved_tracking_value 12.0.1.0.0 Improves tracking changed values for certain type of fields.Adds a user-friendly view to consult them.
mail_inline_css 12.0.1.0.0 Convert style tags in inline style in your mails
mail_notification_custom_subject 12.0.1.0.0 joao-p-marques Apply a custom subject to mail notifications
mail_optional_autofollow 12.0.1.0.0 Choose if you want to automatically add new recipients as followers on mail.compose.message
mail_optional_follower_notification 12.0.1.0.0 Choose to notify followers on mail.compose.message
mail_outbound_static 12.0.1.0.1 Allows you to configure the from header for a mail server.
mail_preview_audio 12.0.1.0.1 Allow to preview audio files
mail_preview_base 12.0.1.0.1 Base to add more previewing options
mail_private 12.0.1.0.0 Create private emails
mail_restrict_follower_selection 12.0.1.0.2 Define a domain from which followers can be selected
mail_send_copy 12.0.1.0.0 Send to you a copy of each mail sent by Odoo
mail_show_follower 12.0.1.0.0 Show CC document followers in mails.
mail_template_substitute 12.0.1.0.1 This module allows to create substitution rules for mail templates.
mail_track_diff_only 12.0.1.0.0 Mail track diff only
mail_tracking 12.0.2.1.8 Email tracking system for all mails sent
mail_tracking_mailgun 12.0.1.0.2 Mail tracking and Mailgun webhooks integration
mail_tracking_mass_mailing 12.0.1.0.0 Improve mass mailing email tracking
mass_mailing_custom_unsubscribe 12.0.1.0.4 Know and track (un)subscription reasons, GDPR compliant
mass_mailing_custom_unsubscribe_event 12.0.1.0.1 Allow to unsubscribe discretely from an event
mass_mailing_event_registration_exclude 12.0.1.0.0 Link mass mailing with event for excluding recipients
mass_mailing_list_dynamic 12.0.1.0.4 Mass mailing lists that get autopopulated
mass_mailing_newsletter_welcome_mail 12.0.1.0.0 Send an automated welcome mail to new newsletter subscribers
mass_mailing_partner 12.0.1.0.9 Link partners with mass-mailing
mass_mailing_resend 12.0.1.1.0 Resend mass mailings
mass_mailing_unique 12.0.1.0.2 Avoids duplicate mailing lists and contacts
message_auto_subscribe_notify_own 12.0.1.0.0 Receive notifications of your own subscriptions
test_mail_private 12.0.1.0.1 Mail Pivate Test Addon
website_mass_mailing_name 12.0.1.0.0 Ask for name when subscribing, and create and/or link partner

Translation Status

Translation status