Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 4 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 12 Odoo series since 8.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.67 MB
Module directory on disk
Code analysis 0 migration notes 5 models 3 views 1 HTTP endpoint

Description

This module integrates mail_tracking events with Mailgun webhooks.

Mailgun is a service that provides an e-mail sending infrastructure through an SMTP server or via API. You can also query that API for seeing statistics of your sent e-mails, or provide hooks that processes the status changes in real time, which is the function used here.

Dependencies

Odoo dependencies
OCA/mail:
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 3

XML IDNameModelTypeStatus
mailgun_manual_check Manual Mailgun check mail.tracking.email form Inherits mail_tracking.view_mail_tracking_email_form
res_config_settings_view_form res.config.settings.view.form.inherit res.config.settings form Inherits mail.res_config_settings_view_form
view_partner_form_mailgun Partner Mailgun button res.partner form Inherits mail_tracking.view_partner_form

HTTP endpoints 1

Route(s)HandlerAuthTypeMethodsFlags
/mail/tracking/mailgun/all MailTrackingController.mail_tracking_mailgun_webhook none jsonrpc ALL csrf off sudo

Models touched 5

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • action_manual_check_mailgun(self)
    Manual check against Mailgun API API Documentation: https://documentation.mailgun.com/en/latest/api-events.html

New fields (1)
  • mailgun_id Char
    copy='False' index=True readonly=True string='Mailgun Event ID'
Public methods (0)

No public methods.

New fields (7)
  • mail_tracking_mailgun_api_key Char
    config_parameter='mailgun.apikey' help='Secret API key used to authenticate with Mailgun.' string='Mailgun API key'
  • mail_tracking_mailgun_api_url Char
    config_parameter='mailgun.api_url' help='Leave this empty if your API endpoint is the default (https://api.mailgun.net/).' string='Mailgun API endpoint'
  • mail_tracking_mailgun_domain Char
    config_parameter='mailgun.domain' help='Leave empty to use the catch-all domain.' string='Mailgun domain'
  • mail_tracking_mailgun_enabled Boolean
    help='Enable to enhance mail tracking with Mailgun' string='Enable mail tracking with Mailgun'
  • mail_tracking_mailgun_validation_key Char
    config_parameter='mailgun.validation_key' help='Key used to validate emails.' string='Mailgun validation key'
  • mail_tracking_mailgun_webhook_signing_key Char
    config_parameter='mailgun.webhook_signing_key' help='Secret key used to validate incoming webhooks payload.' string='Mailgun webhook signing key'
  • mail_tracking_mailgun_webhooks_domain Char
    config_parameter='mailgun.webhooks_domain' help='Leave empty to use the base Odoo URL.' string='Mailgun webhooks domain'
Public methods (3)
  • get_values(self)
    Is Mailgun enabled?
  • mail_tracking_mailgun_register_webhooks(self)
    Register Mailgun webhooks to get mail statuses automatically.
  • mail_tracking_mailgun_unregister_webhooks(self)
    Remove existing Mailgun webhooks.

New fields (0)

No new fields.

Public methods (5)
  • check_email_bounced(self)
    Checks if the partner's email is in Mailgun's bounces list API documentation: https://documentation.mailgun.com/en/latest/api-suppressions.html
  • check_email_validity(self)
    Checks mailbox validity with Mailgun's API API documentation: https://documentation.mailgun.com/en/latest/api-email-validation.html
  • email_bounced_set(self, tracking_emails, reason, event=None)
  • force_set_bounced(self)
    Forces partner's email into Mailgun's bounces list API documentation: https://documentation.mailgun.com/en/latest/api-suppressions.html
  • force_unset_bounced(self)
    Forces partner's email deletion from Mailgun's bounces list API documentation: https://documentation.mailgun.com/en/latest/api-suppressions.html

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…