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.

69 lines
2.0 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. ============
  5. Mail cleanup
  6. ============
  7. This module allows to:
  8. * mark e-mails older than x days as read,
  9. * move those messages in a specific folder,
  10. * remove messages older than x days
  11. on IMAP servers, just before fetching them.
  12. Since the main "mail" module does not mark unroutable e-mails as read,
  13. this means that if junk mail arrives in the catch-all address without
  14. any default route, fetching newer e-mails will happen after re-parsing
  15. those unroutable e-mails.
  16. Configuration
  17. =============
  18. This module depends on ``mail_environment`` in order to add "expiration dates"
  19. per server.
  20. Example of a configuration file (add those values to your server)::
  21. [incoming_mail.openerp_imap_mail1]
  22. cleanup_days = False # default value
  23. purge_days = False # default value
  24. cleanup_folder = NotParsed # optional parameter
  25. Known issues / Roadmap
  26. ======================
  27. * None
  28. Bug Tracker
  29. ===========
  30. Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
  31. In case of trouble, please check there if your issue has already been reported.
  32. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
  33. `here <https://github.com/OCA/server-tools/issues/new?body=module:%20mail_cleanup%0Aversion:%209.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  34. Credits
  35. =======
  36. Contributors
  37. ------------
  38. * Matthieu Dietrich <matthieu.dietrich@camptocamp.com>
  39. Maintainer
  40. ----------
  41. .. image:: https://odoo-community.org/logo.png
  42. :alt: Odoo Community Association
  43. :target: https://odoo-community.org
  44. This module is maintained by the OCA.
  45. OCA, or the Odoo Community Association, is a nonprofit organization whose
  46. mission is to support the collaborative development of Odoo features and
  47. promote its widespread use.
  48. To contribute to this module, please visit https://odoo-community.org.