mirror of https://github.com/OCA/social.git
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]:
|
||
---|---|---|
base_search_mail_content | ||
email_template_qweb | ||
fetchmail_thread_default | ||
mail_activity_board | ||
mail_activity_done | ||
mail_activity_partner | ||
mail_activity_reminder | ||
mail_activity_team | ||
mail_attach_existing_attachment | ||
mail_attach_existing_attachment_account | ||
mail_check_mailbox_size | ||
mail_debrand | ||
mail_drop_target | ||
mail_footer_notified_partner | ||
mail_full_expand | ||
mail_history | ||
mail_improved_tracking_value | ||
mail_inline_css | ||
mail_notification_custom_subject | ||
mail_optional_autofollow | ||
mail_optional_follower_notification | ||
mail_outbound_static | ||
mail_preview_audio | ||
mail_preview_base | ||
mail_private | ||
mail_restrict_follower_selection | ||
mail_send_copy | ||
mail_show_follower | ||
mail_template_substitute | ||
mail_track_diff_only | ||
mail_tracking | ||
mail_tracking_mailgun | ||
mail_tracking_mass_mailing | ||
mass_mailing_custom_unsubscribe | ||
mass_mailing_custom_unsubscribe_event | ||
mass_mailing_event_registration_exclude | ||
mass_mailing_list_dynamic | ||
mass_mailing_newsletter_welcome_mail | ||
mass_mailing_partner | ||
mass_mailing_resend | ||
mass_mailing_unique | ||
message_auto_subscribe_notify_own | ||
setup | ||
test_mail_private | ||
website_mass_mailing_name | ||
.editorconfig | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
README.md | ||
oca_dependencies.txt | ||
requirements.txt | ||
test-requirements.txt |
README.md
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 | ![]() |
Send an email summarizing the current space used by a mailbox |
mail_debrand | 12.0.2.0.1 | ![]() |
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 | ![]() |
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 |