Artem Kostyuk
6 years ago
committed by
jcoux
9 changed files with 140 additions and 98 deletions
-
65mail_cleanup/README.rst
-
14mail_cleanup/__manifest__.py
-
16mail_cleanup/__openerp__.py
-
2mail_cleanup/models/__init__.py
-
98mail_cleanup/models/fetchmail_server.py
-
9mail_cleanup/readme/CONFIGURE.rst
-
2mail_cleanup/readme/CONTRIBUTORS.rst
-
12mail_cleanup/readme/DESCRIPTION.rst
-
2mail_cleanup/views/mail_view.xml
@ -0,0 +1,14 @@ |
|||
# Copyright 2015-2016 Matthieu Dietrich (Camptocamp SA) |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). |
|||
{ |
|||
'name': 'Mail cleanup', |
|||
'version': '11.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'], |
|||
} |
@ -1,16 +0,0 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# © 2015-2016 Matthieu Dietrich (Camptocamp SA) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
{ |
|||
'name': 'Mail cleanup', |
|||
'version': '9.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://odoo-community.org', |
|||
'depends': ['mail_environment'], |
|||
'data': ['views/mail_view.xml'], |
|||
'installable': True, |
|||
} |
@ -1 +1 @@ |
|||
from . import mail_cleanup |
|||
from . import fetchmail_server |
@ -0,0 +1,9 @@ |
|||
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 |
@ -0,0 +1,2 @@ |
|||
* Matthieu Dietrich <matthieu.dietrich@camptocamp.com> |
|||
* Artem Kostyuk <a.kostyuk@mobilunity.com> |
@ -0,0 +1,12 @@ |
|||
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. |
Write
Preview
Loading…
Cancel
Save
Reference in new issue