You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.6 KiB

  1. # -*- coding: utf-8 -*-
  2. ##############################################################################
  3. #
  4. # Author: Matthieu Dietrich
  5. # Copyright 2015 Camptocamp SA
  6. #
  7. # This program is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU Affero General Public License as
  9. # published by the Free Software Foundation, either version 3 of the
  10. # License, or (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU Affero General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Affero General Public License
  18. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. #
  20. ##############################################################################
  21. {
  22. 'name': 'Mail cleanup',
  23. 'version': '0.1',
  24. 'category': 'Tools',
  25. 'author': "Camptocamp,Odoo Community Association (OCA)",
  26. 'summary': 'Clean up mails regularly',
  27. 'description': """
  28. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  29. :alt: License: AGPL-3
  30. Mail cleanup
  31. ===========
  32. This module allows to mark e-mails older than x days as read
  33. and optionally move them on IMAP servers, just before fetching them.
  34. Since the main "mail" module does not mark unroutable e-mails as read,
  35. this means that if junk mail arrives in the catch-all address without
  36. any default route, fetching newer e-mails will happen after re-parsing
  37. those unroutable e-mails.
  38. Configuration
  39. =============
  40. This module depends on ``mail_environment`` in order to add "expiration dates"
  41. per server.
  42. Example of a configuration file (add those values to your server)::
  43. [incoming_mail.openerp_pop_mail1]
  44. cleanup_days = 30 # default value
  45. cleanup_folder = NotParsed # optional parameter
  46. Known issues / Roadmap
  47. ======================
  48. * None
  49. Credits
  50. =======
  51. Contributors
  52. ------------
  53. * Matthieu Dietrich <matthieu.dietrich@camptocamp.com>
  54. Maintainer
  55. ----------
  56. .. image:: https://odoo-community.org/logo.png
  57. :alt: Odoo Community Association
  58. :target: https://odoo-community.org
  59. This module is maintained by the OCA.
  60. OCA, or the Odoo Community Association, is a nonprofit organization whose
  61. mission is to support the collaborative development of Odoo features and
  62. promote its widespread use.
  63. To contribute to this module, please visit http://odoo-community.org.
  64. """,
  65. 'license': 'AGPL-3',
  66. 'website': 'http://openerp.camptocamp.com',
  67. 'depends': ['mail_environment'],
  68. 'data': ['mail_view.xml'],
  69. 'installable': True,
  70. }