-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[12.0][MIG] mail_cleanup #1640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[12.0][MIG] mail_cleanup #1640
Conversation
* Add new module "mail_cleanup" in order to move/mark as read old messages * Use correct Model + remove unnecessary conditions/assignments * Add purging mechanism + cleanup is by default inactive * Add new field + new info in README * Correct type for purge_days + better checks * Place expunge() call after parsing all messages * Migration to 9.0 of mail_cleanup * Fix README.rst * Add __init__.py * Fix error with multi mail servers * Correct syntax for methods + use datetime.date.today
|
@asaunier add |
| - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools | ||
| - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} | ||
| - travis_install_nightly | ||
| - printf '[options]\n\nrunning_env = dev\n' > ${HOME}/.openerp_serverrc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need thaht ?, .openerp_serverrc seems pretty old for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added this change at ff29eeb to fix errors reported by Travis at https://travis-ci.org/OCA/server-tools/builds/569737181?utm_source=github_status&utm_medium=notification
File "/home/travis/dependencies/server-env/server_environment/serv_config.py", line 50, in <module>
1599 "The parameter 'running_env' has not be set neither in base config "
1600Exception: The parameter 'running_env' has not be set neither in base config file option -c or in openerprc.
1601We strongly recommend against using the rc file but instead use an explicit config file with this content:
1602[options]
1603running_env = dev
I don't remember exactly where but I found this .travis.yml line in one of C2C's (not that old?) projects and it seems to do the job :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tonow-c2c
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just code review
|
Please resolve conflicts |
|
This PR is no longer relevant, module long since migrated. |
Syncing from upstream OCA/server-tools (18.0)
Ported migration to 11.0 whose PR is available at #1411