From d9d3dd9bb53b4ffa42fa831f104db5fb5874561b Mon Sep 17 00:00:00 2001 From: Alexandre Saunier Date: Wed, 7 Aug 2019 17:46:03 +0200 Subject: [PATCH] [12.0][MIG] mail_cleanup: Migrate to 12.0 --- mail_cleanup/README.rst | 10 +- mail_cleanup/__manifest__.py | 14 +- mail_cleanup/models/fetchmail_server.py | 2 +- mail_cleanup/static/description/index.html | 445 +++++++++++++++++++++ oca_dependencies.txt | 1 + 5 files changed, 462 insertions(+), 10 deletions(-) create mode 100644 mail_cleanup/static/description/index.html diff --git a/mail_cleanup/README.rst b/mail_cleanup/README.rst index 2f75056f6..b4efcdfb0 100644 --- a/mail_cleanup/README.rst +++ b/mail_cleanup/README.rst @@ -14,13 +14,13 @@ Mail cleanup :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 - :target: https://github.com/OCA/server-tools/tree/11.0/mail_cleanup + :target: https://github.com/OCA/server-tools/tree/12.0/mail_cleanup :alt: OCA/server-tools .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/server-tools-11-0/server-tools-11-0-mail_cleanup + :target: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-mail_cleanup :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/149/11.0 + :target: https://runbot.odoo-community.org/runbot/149/12.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -62,7 +62,7 @@ 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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -93,6 +93,6 @@ 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/server-tools `_ project on GitHub. +This module is part of the `OCA/server-tools `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mail_cleanup/__manifest__.py b/mail_cleanup/__manifest__.py index 1b9528f31..3b6dcc458 100644 --- a/mail_cleanup/__manifest__.py +++ b/mail_cleanup/__manifest__.py @@ -1,14 +1,20 @@ -# Copyright 2015-2016 Matthieu Dietrich (Camptocamp SA) +# Copyright 2015-2019 Camptocamp SA # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { 'name': 'Mail cleanup', - 'version': '11.0.1.0.0', + 'version': '12.0.1.0.0', 'category': 'Tools', 'summary': 'Mark as read or delete mails after a set time', 'author': 'Camptocamp, ' 'Odoo Community Association (OCA)', 'license': 'AGPL-3', 'website': 'https://github.com/OCA/server-tools', - 'depends': ['mail_environment'], - 'data': ['views/mail_view.xml'], + 'depends': [ + 'mail_environment', + ], + 'data': [ + 'views/mail_view.xml', + ], + 'installable': True, + 'application': False, } diff --git a/mail_cleanup/models/fetchmail_server.py b/mail_cleanup/models/fetchmail_server.py index eb9287840..03c0a952b 100644 --- a/mail_cleanup/models/fetchmail_server.py +++ b/mail_cleanup/models/fetchmail_server.py @@ -1,4 +1,4 @@ -# Copyright 2015-2016 Matthieu Dietrich (Camptocamp SA) +# Copyright 2015-2019 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging diff --git a/mail_cleanup/static/description/index.html b/mail_cleanup/static/description/index.html new file mode 100644 index 000000000..a6056f3c4 --- /dev/null +++ b/mail_cleanup/static/description/index.html @@ -0,0 +1,445 @@ + + + + + + +Mail cleanup + + + +
+

Mail cleanup

+ + +

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

+
+

This module allows to:

+
    +
  • mark e-mails older than x days as read,
  • +
  • move those messages in a specific folder,
  • +
  • remove messages older than x days +on IMAP servers, just before fetching them.
  • +
+

Since the main “mail” module does not mark unroutable e-mails as read, +this means that if junk mail arrives in the catch-all address without +any default route, fetching newer e-mails will happen after re-parsing +those unroutable e-mails.

+

Table of contents

+ +
+

Configuration

+

This module depends on mail_environment in order to add “expiration dates” +per server.

+

Example of a configuration file (add those values to your server):

+
+[incoming_mail.openerp_imap_mail1]
+cleanup_days = False  # default value
+purge_days = False  # default value
+cleanup_folder = NotParsed  # optional parameter
+
+
+
+

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 smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Camptocamp
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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/server-tools project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+
+ + diff --git a/oca_dependencies.txt b/oca_dependencies.txt index fa780e25d..f614e2b00 100644 --- a/oca_dependencies.txt +++ b/oca_dependencies.txt @@ -1 +1,2 @@ +server-env storage