Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
003687c
[ADD][fetchmail_thread_default] Default thread for incoming mails
yajo Mar 23, 2017
d712a55
OCA Transbot updated translations from Transifex
oca-transbot Jun 10, 2017
cf37f44
[9.0][FIX] fetchmail_thread_default: check model in env for update mo…
sergio-teruel Jul 19, 2017
d234aa7
[UPD] Update fetchmail_thread_default.pot
oca-travis Jun 24, 2018
b35f207
[MIG] fetch_thread_default: Migration to 11.0
chienandalu Dec 3, 2018
0b5fd36
[UPD] README.rst
OCA-git-bot Dec 4, 2018
0715afd
[UPD] Update fetchmail_thread_default.pot
oca-travis Dec 4, 2018
6103de2
[UPD] README.rst
OCA-git-bot Jul 29, 2019
3fc6d81
[MIG] fetchmail_thread_default: Migration to 12.0
Rad0van Jun 18, 2020
1afeb67
[IMP] fetchmail_thread_default: black, isort, prettier
Rad0van Jul 23, 2020
ba9100f
[MIG] fetchmail_thread_default: Migration to 13.0
Rad0van Jul 23, 2020
7855063
[UPD] Update fetchmail_thread_default.pot
oca-travis Jul 27, 2020
8039ea5
Update translation files
oca-transbot Jul 29, 2020
42b22d2
[IMP] pre-commit run -a
Jan 26, 2021
61d13c6
[IMP] Apply pre-commit changes: Resolve conflicts
Tardo Jan 26, 2021
b1d7b16
[MIG] [14.0] fetchmail_thread_default
gfcapalbo Jun 16, 2023
b968375
[13.0] Fixed context field get
Ismaw34 Jan 15, 2021
2ad9508
[UPD] Update fetchmail_thread_default.pot
Feb 12, 2024
d7786ca
[BOT] post-merge updates
OCA-git-bot Feb 12, 2024
0ddc8e0
Update translation files
weblate Feb 12, 2024
ce16bba
Translated using Weblate (Italian)
mymage Feb 26, 2024
96c4638
[MIG] fetchmail_thread_default: Migration to 16.0
ntsirintanis Mar 8, 2024
70629f8
[UPD] Update fetchmail_thread_default.pot
Mar 19, 2024
84595a8
Update translation files
weblate Mar 19, 2024
c0f1cd4
Update translation files
weblate Mar 19, 2024
955b475
Translated using Weblate (Italian)
mymage Mar 21, 2024
0448043
Translated using Weblate (Portuguese (Brazil))
May 22, 2024
ae96c6c
[16.0][FIX] fetchmail_thread_default, add sudo call to models without…
ChrisOForgeFlow Jul 10, 2024
2bf2a3b
[BOT] post-merge updates
OCA-git-bot Aug 5, 2025
b5842f3
Translated using Weblate (Italian)
mymage Oct 15, 2025
504a97f
[IMP] fetchmail_thread_default: pre-commit auto fixes
kaynnan Apr 26, 2026
d792352
[MIG] fetchmail_thread_default: Migration to 18.0
kaynnan Apr 26, 2026
4544a65
[UPD] Update fetchmail_thread_default.pot
Apr 27, 2026
584430c
[BOT] post-merge updates
OCA-git-bot Apr 27, 2026
fdb0099
Translated using Weblate (Spanish)
JuanilloKing Apr 29, 2026
0ecbd35
Translated using Weblate (Slovenian)
sysadminmatmoz May 31, 2026
dde3714
[IMP] fetchmail_thread_default: pre-commit auto fixes
KKamaa Aug 5, 2026
0760613
[MIG] fetchmail_thread_default: Migration to 19.0
KKamaa Aug 5, 2026
91c455e
[FIX] fetchmail_thread_default: use chatter models in tests
KKamaa Aug 5, 2026
d48780e
[FIX] fetchmail_thread_default: run gateway tests as admin
KKamaa Aug 5, 2026
4488433
[FIX] fetchmail_thread_default: prevent sender subscription
KKamaa Aug 5, 2026
2c02df1
[FIX] fetchmail_thread_default: filter actual mail thread models
KKamaa Aug 6, 2026
3fc057d
[TEST] fetchmail_thread_default: cover fallback branches
KKamaa Aug 6, 2026
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
130 changes: 130 additions & 0 deletions fetchmail_thread_default/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

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

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b59d16acf95adf034d3d36734df12ea3f67cd106c9428b5b0f3bcc396e51e895
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
:target: https://github.com/OCA/social/tree/19.0/fetchmail_thread_default
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/social-19-0/social-19-0-fetchmail_thread_default
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

**Table of contents**

.. contents::
:local:

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

To configure this module, you need to:

1. Go to *Settings > General Settings > Configure the incoming email
gateway*.

2. Create or edit a record.

3. Configure properly.

4. 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:

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

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/social/issues/new?body=module:%20fetchmail_thread_default%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Tecnativa
* Therp BV

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

- `Tecnativa <https://www.tecnativa.com>`__:

- Jairo Llopis
- David Vidal

- `Therp BV <https://www.therp.nl>`__:

- Giovanni Francesco Capalbo

Maintainers
-----------

This module is maintained by the OCA.

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

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.

This module is part of the `OCA/social <https://github.com/OCA/social/tree/19.0/fetchmail_thread_default>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions fetchmail_thread_default/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions fetchmail_thread_default/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2017 Tecnativa - Jairo Llopis <jairo.llopis@tecnativa.com>
# Copyright 2023-24 Therp BV <https://therp.nl>
# 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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/unkonw/unknown/

"version": "19.0.1.0.0",
"category": "Discuss",
"website": "https://github.com/OCA/social",
"author": "Tecnativa, Therp BV, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["mail"],
"data": ["views/fetchmail_server_view.xml"],
"demo": ["demo/data.xml"],
}
21 changes: 21 additions & 0 deletions fetchmail_thread_default/demo/data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017 Tecnativa - Jairo Llopis <jairo.llopis@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="demo_sink" model="discuss.channel">
<field name="name">mailsink</field>
<field name="description">Unbounded email sink</field>
<field name="channel_type">channel</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="server_type">pop</field>
<field name="server">pop3.example.com</field>
<field
name="default_thread_id"
eval="'discuss.channel,%d' % ref('demo_sink')"
/>
</record>
</odoo>
Empty file.
43 changes: 43 additions & 0 deletions fetchmail_thread_default/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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,name:fetchmail_thread_default.model_fetchmail_server
msgid "Incoming Mail Server"
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 ""

#~ msgid "POP/IMAP Server"
#~ msgstr "Servidor POP/IMAP"
44 changes: 44 additions & 0 deletions fetchmail_thread_default/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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,name:fetchmail_thread_default.model_fetchmail_server
msgid "Incoming Mail Server"
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 ""

#~ msgid "POP/IMAP Server"
#~ msgstr "POP/IMAP-Server"
47 changes: 47 additions & 0 deletions fetchmail_thread_default/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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: 2026-04-29 08:37+0000\n"
"Last-Translator: Eduardo Sumariva <eduardosumarivasalgado@gmail.com>\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"
"X-Generator: Weblate 5.15.2\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 "Hilo de correos por defecto"

#. 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,name:fetchmail_thread_default.model_fetchmail_server
msgid "Incoming Mail Server"
msgstr "Servidor de correo entrante"

#. 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 ""
"Los mensajes con una ruta no precisa serán posteados como nuevo mensaje en "
"este hilo."

#~ msgid "POP/IMAP Server"
#~ msgstr "Servidor POP/IMP"
35 changes: 35 additions & 0 deletions fetchmail_thread_default/i18n/fetchmail_thread_default.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fetchmail_thread_default
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\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,name:fetchmail_thread_default.model_fetchmail_server
msgid "Incoming Mail Server"
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 ""
44 changes: 44 additions & 0 deletions fetchmail_thread_default/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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,name:fetchmail_thread_default.model_fetchmail_server
msgid "Incoming Mail Server"
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 ""

#~ msgid "POP/IMAP Server"
#~ msgstr "Serveur POP/IMAP"
Loading
Loading