Addons concerning odoo's social ERP features and messaging in general
 
 
 
Go to file
Jairo Llopis 59ae701834 [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
2024-07-11 14:02:25 +02:00
.github/workflows [IMP] update dotfiles 2024-05-01 17:23:46 +00:00
base_search_mail_content [UPD] Update base_search_mail_content.pot 2024-03-28 13:25:24 +00:00
mail_activity_board Translated using Weblate (Italian) 2024-07-09 09:58:55 +00:00
mail_activity_team Update translation files 2024-07-07 10:42:05 +00:00
mail_attach_existing_attachment Translated using Weblate (Italian) 2024-07-08 08:59:09 +00:00
mail_debrand Translated using Weblate (Italian) 2024-07-08 08:59:09 +00:00
mail_notification_custom_subject Translated using Weblate (Italian) 2024-07-09 09:58:55 +00:00
mail_optional_autofollow Update translation files 2024-07-07 10:42:23 +00:00
mail_outbound_static [BOT] post-merge updates 2024-05-06 10:06:17 +00:00
mail_partner_forwarding [BOT] post-merge updates 2024-03-25 07:44:13 +00:00
mail_partner_opt_out [BOT] post-merge updates 2024-04-18 19:48:47 +00:00
mail_send_confirmation Update translation files 2024-02-16 15:40:49 +01:00
mail_template_substitute Update translation files 2024-07-07 10:42:04 +00:00
mail_tracking Translated using Weblate (Italian) 2024-07-08 08:59:09 +00:00
mail_tracking_mailgun [IMP] mail_tracking_mailgun: refactor to support modern webhooks 2024-07-11 14:02:25 +02:00
mail_tracking_mass_mailing Update translation files 2024-07-10 18:41:39 +00:00
mass_mailing_partner Translated using Weblate (Italian) 2024-07-08 08:59:09 +00:00
mass_mailing_resend Update translation files 2024-07-07 10:42:25 +00:00
setup/_metapackage [BOT] post-merge updates 2024-07-10 17:21:06 +00:00
.copier-answers.yml [UPD] Update copier to v1.22 2024-05-30 13:44:08 +02:00
.editorconfig Initialize 17.0 branch 2023-11-12 16:11:02 +01:00
.eslintrc.yml [UPD] Update copier to v1.22 2024-05-30 13:44:08 +02:00
.gitignore Initialize 17.0 branch 2023-11-12 16:11:02 +01:00
.pre-commit-config.yaml [IMP] update dotfiles 2024-05-01 17:23:46 +00:00
.prettierrc.yml Initialize 17.0 branch 2023-11-12 16:11:02 +01:00
.pylintrc Initialize 17.0 branch 2023-11-12 16:11:02 +01:00
.pylintrc-mandatory Initialize 17.0 branch 2023-11-12 16:11:02 +01:00
.ruff.toml [UPD] copier version 1.20 2024-03-20 11:03:58 +00:00
LICENSE Initialize 17.0 branch 2023-11-12 16:11:02 +01:00
README.md [BOT] post-merge updates 2024-07-10 17:21:06 +00:00
pandoc-3.1.9-1-amd64.deb [IMP] mail_activity_board: pre-commit auto fixes 2024-02-16 17:35:20 +00:00
pandoc-3.1.13-1-amd64.deb [MIG] mail_template_substitute: Migration to 17.0 2024-05-13 16:01:57 +05:30
test-requirements.txt [MIG] mail_partner_forwarding: Migration to 17.0 2024-02-16 15:40:48 +01:00

README.md

Runboat Pre-commit Status Build Status codecov Translation Status

social

{'TODO': 'add repo description.'}

Available addons

addon version maintainers summary
base_search_mail_content 17.0.1.0.0 Base Search Mail Content
mail_activity_board 17.0.1.0.1 Add Activity Boards
mail_activity_team 17.0.1.0.0 Add Teams to Activities
mail_attach_existing_attachment 17.0.1.0.0 Adding attachment on the object by sending this one
mail_debrand 17.0.1.0.0 pedrobaeza joao-p-marques Remove Odoo branding in sent emails Removes anchor <a href odoo.com togheder with it's parent ( for powerd by) form all the templates removes any 'odoo' that are in tempalte texts > 20characters
mail_notification_custom_subject 17.0.1.0.0 yajo Apply a custom subject to mail notifications
mail_optional_autofollow 17.0.1.0.0 Choose if you want to automatically add new recipients as followers on mail.compose.message
mail_outbound_static 17.0.1.0.1 Allows you to configure the from header for a mail server.
mail_partner_forwarding 17.0.1.0.1 Forwarding notifications for partners
mail_partner_opt_out 17.0.1.0.0 Add the partner's email to the blackmailed list
mail_send_confirmation 17.0.1.0.0 Mail Send Confirmation
mail_template_substitute 17.0.1.0.0 This module allows to create substitution rules for mail templates.
mail_tracking 17.0.1.0.0 Email tracking system for all mails sent
mail_tracking_mass_mailing 17.0.1.0.0 Improve mass mailing email tracking
mass_mailing_partner 17.0.1.0.0 Link partners with mass-mailing
mass_mailing_resend 17.0.1.1.0 pedrobaeza Resend mass mailings

Licenses

This repository is licensed under AGPL-3.0.

However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA) policy. Consult each module's __manifest__.py file, which contains a license key that explains its license.


OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.