Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 93 additions & 0 deletions fetchmail_thread_default/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

===================================
Default Thread For Unbounded Emails
===================================

This module extends the functionality of mail fetching to support choosing a
mail thread that acts as a mail sink and gathers all mail messages that Odoo
does not know where to put.

Dangling emails are really a problem because if you do not care about them,
SPAM can enter your inbox and keep increasing fetchmail process network quota
because Odoo would gather them every time it runs the fetchmail process.

Before this, your only choice was to create a new record for those unbounded
emails. That could be useful under some circumstances, like creating a
``crm.lead`` for them, but what happens if you do not want to have lots of
spammy leads? Or if you do not need Odoo's CRM at all?

Here we come to the rescue. This simple addons adds almost none dependencies
and allows you to direct those mails somewhere you can handle or ignore at
wish.

Configuration
=============

To configure this module, you need to:

#. Go to *Settings > General Settings > Configure the incoming email gateway*.
#. Create or edit a record.
#. Configure properly.
#. Under *Default mail thread*, choose a model and record.

Tip: if you do not know what to choose, we suggest you to use a mail
channel.

Usage
=====

To use this module, you need to:

#. Subscribe to the thread you chose as the *Default mail thread*.
#. You will be notified when a new unbound email lands in that thread.
#. Do what you want with it.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/205/9.0

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/social/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.

Credits
=======

Images
------

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

Contributors
------------

* Jairo Llopis <jairo.llopis@tecnativa.com>

Funders
-------

The development of this module has been financially supported by:

* `Tecnativa <https://www.tecnativa.com>`_.

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.
5 changes: 5 additions & 0 deletions fetchmail_thread_default/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
23 changes: 23 additions & 0 deletions fetchmail_thread_default/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Default Thread For Unbounded Emails",
"summary": "Post unkonwn messages to an existing thread",
"version": "10.0.1.0.0",
"category": "Discuss",
"website": "https://www.github.com/social",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"fetchmail",
],
"data": [
"views/fetchmail_server_view.xml",
],
"demo": [
"demo/data.xml",
],
}
24 changes: 24 additions & 0 deletions fetchmail_thread_default/demo/data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<odoo>

<record id="demo_sink" model="mail.channel">
<field name="name">mailsink</field>
<field name="email_send" eval="True"/>
<field name="description">Unbounded email sink</field>
<field name="alias_contact">everyone</field>
<field name="public">private</field>
<field name="group_ids" eval="[(4, ref('base.group_user'))]"/>
</record>

<record id="demo_server" model="fetchmail.server">
<field name="name">Demo server</field>
<field name="type">pop</field>
<field name="server">pop3.example.com</field>
<field name="default_thread_id" eval="'mail.channel,%d' % ref('demo_sink')"/>
<!-- <field name="default_thread_id">mail.channel,%(demo_sink)d</field> -->
</record>

</odoo>
Empty file.
45 changes: 45 additions & 0 deletions fetchmail_thread_default/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fetchmail_thread_default
#
# Translators:
# Marc Tormo i Bochaca <mtbochaca@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-10 02:46+0000\n"
"PO-Revision-Date: 2017-06-10 02:46+0000\n"
"Last-Translator: Marc Tormo i Bochaca <mtbochaca@gmail.com>, 2017\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: fetchmail_thread_default
#: model:ir.model.fields,field_description:fetchmail_thread_default.field_fetchmail_server_default_thread_id
msgid "Default mail thread"
msgstr ""

#. module: fetchmail_thread_default
#: model:ir.model,name:fetchmail_thread_default.model_mail_thread
msgid "Email Thread"
msgstr "Tema del Correu electrònic "

#. module: fetchmail_thread_default
#: model:ir.model.fields,help:fetchmail_thread_default.field_fetchmail_server_default_thread_id
msgid ""
"Messages with no clear route will be posted as a new message to this thread."
msgstr ""

#. module: fetchmail_thread_default
#: model:ir.model,name:fetchmail_thread_default.model_fetchmail_server
msgid "POP/IMAP Server"
msgstr "Servidor POP/IMAP"

#. module: fetchmail_thread_default
#: model:mail.channel,name:fetchmail_thread_default.demo_sink
msgid "mailsink"
msgstr ""
46 changes: 46 additions & 0 deletions fetchmail_thread_default/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fetchmail_thread_default
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Rudolf Schnapka <rs@techno-flex.de>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-10 02:46+0000\n"
"PO-Revision-Date: 2017-06-10 02:46+0000\n"
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: fetchmail_thread_default
#: model:ir.model.fields,field_description:fetchmail_thread_default.field_fetchmail_server_default_thread_id
msgid "Default mail thread"
msgstr ""

#. module: fetchmail_thread_default
#: model:ir.model,name:fetchmail_thread_default.model_mail_thread
msgid "Email Thread"
msgstr "Email-Thread"

#. module: fetchmail_thread_default
#: model:ir.model.fields,help:fetchmail_thread_default.field_fetchmail_server_default_thread_id
msgid ""
"Messages with no clear route will be posted as a new message to this thread."
msgstr ""

#. module: fetchmail_thread_default
#: model:ir.model,name:fetchmail_thread_default.model_fetchmail_server
msgid "POP/IMAP Server"
msgstr "POP/IMAP-Server"

#. module: fetchmail_thread_default
#: model:mail.channel,name:fetchmail_thread_default.demo_sink
msgid "mailsink"
msgstr ""
46 changes: 46 additions & 0 deletions fetchmail_thread_default/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fetchmail_thread_default
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Pedro M. Baeza <pedro.baeza@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-10 02:46+0000\n"
"PO-Revision-Date: 2017-06-10 02:46+0000\n"
"Last-Translator: Pedro M. Baeza <pedro.baeza@gmail.com>, 2017\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: fetchmail_thread_default
#: model:ir.model.fields,field_description:fetchmail_thread_default.field_fetchmail_server_default_thread_id
msgid "Default mail thread"
msgstr ""

#. module: fetchmail_thread_default
#: model:ir.model,name:fetchmail_thread_default.model_mail_thread
msgid "Email Thread"
msgstr "Hilo de mensajes"

#. module: fetchmail_thread_default
#: model:ir.model.fields,help:fetchmail_thread_default.field_fetchmail_server_default_thread_id
msgid ""
"Messages with no clear route will be posted as a new message to this thread."
msgstr ""

#. module: fetchmail_thread_default
#: model:ir.model,name:fetchmail_thread_default.model_fetchmail_server
msgid "POP/IMAP Server"
msgstr "Servidor POP/IMP"

#. module: fetchmail_thread_default
#: model:mail.channel,name:fetchmail_thread_default.demo_sink
msgid "mailsink"
msgstr ""
40 changes: 40 additions & 0 deletions fetchmail_thread_default/i18n/fetchmail_thread_default.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fetchmail_thread_default
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: fetchmail_thread_default
#: model:ir.model.fields,field_description:fetchmail_thread_default.field_fetchmail_server_default_thread_id
msgid "Default mail thread"
msgstr ""

#. module: fetchmail_thread_default
#: model:ir.model,name:fetchmail_thread_default.model_mail_thread
msgid "Email Thread"
msgstr ""

#. module: fetchmail_thread_default
#: model:ir.model.fields,help:fetchmail_thread_default.field_fetchmail_server_default_thread_id
msgid "Messages with no clear route will be posted as a new message to this thread."
msgstr ""

#. module: fetchmail_thread_default
#: model:ir.model,name:fetchmail_thread_default.model_fetchmail_server
msgid "POP/IMAP Server"
msgstr ""

#. module: fetchmail_thread_default
#: model:mail.channel,name:fetchmail_thread_default.demo_sink
msgid "mailsink"
msgstr ""

46 changes: 46 additions & 0 deletions fetchmail_thread_default/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fetchmail_thread_default
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Christophe CHAUVET <christophe.chauvet@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-10 02:46+0000\n"
"PO-Revision-Date: 2017-06-10 02:46+0000\n"
"Last-Translator: Christophe CHAUVET <christophe.chauvet@gmail.com>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: fetchmail_thread_default
#: model:ir.model.fields,field_description:fetchmail_thread_default.field_fetchmail_server_default_thread_id
msgid "Default mail thread"
msgstr ""

#. module: fetchmail_thread_default
#: model:ir.model,name:fetchmail_thread_default.model_mail_thread
msgid "Email Thread"
msgstr "Discussion de courriel"

#. module: fetchmail_thread_default
#: model:ir.model.fields,help:fetchmail_thread_default.field_fetchmail_server_default_thread_id
msgid ""
"Messages with no clear route will be posted as a new message to this thread."
msgstr ""

#. module: fetchmail_thread_default
#: model:ir.model,name:fetchmail_thread_default.model_fetchmail_server
msgid "POP/IMAP Server"
msgstr "Serveur POP/IMAP"

#. module: fetchmail_thread_default
#: model:mail.channel,name:fetchmail_thread_default.demo_sink
msgid "mailsink"
msgstr ""
Loading
Loading