diff --git a/fetchmail_attach_from_folder/README.rst b/fetchmail_attach_from_folder/README.rst index 2b3fd02d886..5f6aeb091b8 100644 --- a/fetchmail_attach_from_folder/README.rst +++ b/fetchmail_attach_from_folder/README.rst @@ -1,7 +1,3 @@ -.. image:: https://odoo-community.org/readme-banner-image - :target: https://odoo-community.org/get-involved?utm_source=readme - :alt: Odoo Community Association - ======================= Email gateway - folders ======================= @@ -17,7 +13,7 @@ Email gateway - folders .. |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 +.. |badge2| image:: https://img.shields.io/badge/licence-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%2Fserver--tools-lightgray.png?logo=github @@ -120,9 +116,9 @@ Authors Contributors ------------ -- Holger Brunn hbrunn@therp.nl -- Ronald Portier ronald@therp.nl -- Alexandre Fayolle alexandre.fayolle@camptocamp.com +- Holger Brunn hbrunn@therp.nl +- Ronald Portier ronald@therp.nl +- Alexandre Fayolle alexandre.fayolle@camptocamp.com Maintainers ----------- diff --git a/fetchmail_attach_from_folder/__manifest__.py b/fetchmail_attach_from_folder/__manifest__.py index 5ade469c5fe..3a26ea35645 100644 --- a/fetchmail_attach_from_folder/__manifest__.py +++ b/fetchmail_attach_from_folder/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Email gateway - folders", "summary": "Attach mails in an IMAP folder to existing objects", - "version": "18.0.1.0.0", + "version": "18.0.1.0.1", "author": "Therp BV,Odoo Community Association (OCA)", "maintainers": ["NL66278"], "website": "https://github.com/OCA/server-tools", diff --git a/fetchmail_attach_from_folder/models/fetchmail_server.py b/fetchmail_attach_from_folder/models/fetchmail_server.py index 7df4ba7a3e3..3ce851080f4 100644 --- a/fetchmail_attach_from_folder/models/fetchmail_server.py +++ b/fetchmail_attach_from_folder/models/fetchmail_server.py @@ -66,10 +66,12 @@ def onchange_server_type(self): self.state = "draft" return result - def fetch_mail(self): + def fetch_mail(self, raise_exception=True): result = True for this in self: if not this.folders_only: - result = result and super(FetchmailServer, this).fetch_mail() + result = result and super(FetchmailServer, this).fetch_mail( + raise_exception + ) this.folder_ids.fetch_mail() return result diff --git a/fetchmail_attach_from_folder/static/description/index.html b/fetchmail_attach_from_folder/static/description/index.html index 0c8dc0c3110..8d8d736ab74 100644 --- a/fetchmail_attach_from_folder/static/description/index.html +++ b/fetchmail_attach_from_folder/static/description/index.html @@ -3,7 +3,7 @@ -README.rst +Email gateway - folders -
+
+

Email gateway - folders

- - -Odoo Community Association - -
-

Email gateway - folders

-

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runboat

Adds the possibility to attach emails from a certain IMAP folder to objects, ie partners. Matching is done via several algorithms, ie email address, email address’s domain or the original Odoo algorithm.

@@ -400,13 +395,13 @@

Email gateway - folders

-

Configuration

+

Configuration

In your fetchmail configuration, you’ll find a new list field Folders to  monitor. Add your folders here in IMAP notation (usually something like INBOX.your_folder_name.your_subfolder_name), choose a model to attach mails to and a matching algorithm to use.

-

Exact mailaddress

+

Exact mailaddress

Fill in a field to search for the email address in Field (model). For partners, this would be email. Also fill in the header field from the email to look at in Field (email). If you want to match @@ -415,7 +410,7 @@

Exact mailaddress

fill in to,cc,bcc.

-

Domain of email addresses

+

Domain of email addresses

Match the domain of the email address(es) found in Field (email). This would attach a mail to test1@example.com to a record with Field (model) set to test2@example.com. Given that this is a @@ -423,14 +418,14 @@

Domain of email addresses

-

Odoo standard

+

Odoo standard

This is stricly speaking no matching algorithm, but calls the model’s standard action on new incoming mail, which is usually creating a new record.

-

Usage

+

Usage

A widespread configuration is to have a shared mailbox with several folders, i.e. one where users drop mails they want to attach to partners. Let this folder be called From partners. Then create a @@ -448,7 +443,7 @@

Usage

archive folder that can be specified.

-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub 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 @@ -456,15 +451,15 @@

Bug Tracker

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

-

Credits

+

Credits

-

Authors

+

Authors

  • Therp BV
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -487,6 +482,5 @@

Maintainers

-