Mandrill mail events integration

mail_mandrill
REPOSITORY
REPOSITORYOCA/social
GIT
GIThttps://github.com/OCA/social.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/social/tree/8.0/mail_mandrill
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSocial Network
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Antiun Ingeniería S.L.
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Antiun Ingeniería S.L.
COMMITTERS
COMMITTERSStéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Weblate, Antonio Espinosa
WEBSITE
WEBSITEhttp://www.antiun.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:26
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - mail
    - base
    - base_setup
    - web_kanban
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
view_mail_mandrill_event_form mail.mandrill.event.form mail.mandrill.event form New
view_mail_mandrill_event_search mail.mandrill.event.search mail.mandrill.event search New
view_mail_mandrill_event_tree mail.mandrill.event.tree mail.mandrill.event tree New
view_mail_mandrill_message_form mail.mandrill.message.form mail.mandrill.message form New
view_mail_mandrill_message_search mail.mandrill.message.search mail.mandrill.message search New
view_mail_mandrill_message_tree mail.mandrill.message.tree mail.mandrill.message tree New
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • send(self, auto_commit=False, raise_exception=False)
    @api.multi

New fields (13)
  • date Date
    readonly=True string='Mandrill date'
  • event_type Selection
    readonly=True selection=[('send', 'Sent'), ('deferral', 'Deferral'), ('hard_bounce', 'Hard bounce'), ('soft_bounce', 'Soft bounce'), ('open', 'Opened'), ('click', 'Clicked'), ('spam', 'Spam'), ('unsub', 'Unsubscribed'), ('reject', 'Rejected')] string='Event type'
  • ip Char
    readonly=True string='User IP'
  • message_id Many2one → mail.mandrill.message
    comodel_name='mail.mandrill.message' readonly=True string='Message'
  • mobile Boolean
    readonly=True string='Is mobile?'
  • os_family Char
    readonly=True string='Operating system family'
  • time Datetime
    readonly=True string='Mandrill time'
  • timestamp Integer
    readonly=True string='Mandrill UTC timestamp'
  • ua_family Char
    readonly=True string='User agent family'
  • ua_type Char
    readonly=True string='User agent type'
  • url Char
    readonly=True string='Clicked URL'
  • user_agent Char
    readonly=True string='User agent'
  • user_country_id Many2one → res.country
    comodel_name='res.country' readonly=True string='User country'
Public methods (9)
  • process_click(self, message, event)
    @api.model
  • process_deferral(self, message, event)
    @api.model
  • process_hard_bounce(self, message, event)
    @api.model
  • process_open(self, message, event)
    @api.model
  • process_reject(self, message, event)
    @api.model
  • process_send(self, message, event)
    @api.model
  • process_soft_bounce(self, message, event)
    @api.model
  • process_spam(self, message, event)
    @api.model
  • process_unsub(self, message, event)
    @api.model

New fields (13)
  • bounce_description Char
    readonly=True string='Bounce description'
  • bounce_type Char
    readonly=True string='Bounce type'
  • date Date
    readonly=True string='Mandrill date'
  • event_ids One2many → mail.mandrill.event
    comodel_name='mail.mandrill.event' inverse_name='message_id' string='Mandrill events'
  • mandrill_id Char
    readonly=True required=True string='Mandrill message ID'
  • metadata Text
    readonly=True string='Metadata'
  • name Char
    readonly=True string='Subject'
  • recipient Char
    readonly=True string='Recipient email'
  • sender Char
    readonly=True string='Sender email'
  • state Selection
    help=" * The 'Sent' status indicates that message was succesfully delivered to recipient Mail Exchange (MX) server.\n * The 'Opened' status indicates that message was opened or clicked by recipient.\n * The 'Rejected' status indicates that recipient email address is blacklisted by Mandrill. It is recomended to delete this email address.\n * The 'Spam' status indicates that Mandrill consider this message as spam.\n * The 'Unsubscribed' status indicates that recipient has requested to be unsubscribed from this message.\n * The 'Bounced' status indicates that message was bounced by recipient Mail Exchange (MX) server.\n * The 'Soft bounced' status indicates that message was soft bounced by recipient Mail Exchange (MX) server.\n" index=True readonly=True string='State' args: [('deferred', 'Deferred'), ('sent', 'Sent'), ('opened', 'Opened'), ('rejected', 'Rejected'), ('spam', 'Spam'), ('unsub', 'Unsubscribed'), ('bounced', 'Bounced'), ('soft-bounced', 'Soft bounced')]
  • tags Char
    readonly=True string='Tags'
  • time Datetime
    readonly=True string='Mandrill time'
  • timestamp Integer
    readonly=True string='Mandrill UTC timestamp'
Public methods (1)
  • process(self, message_id, event_type, event)
    @api.model