summaryrefslogtreecommitdiff
path: root/addons/fetchmail/fetchmail.py
AgeCommit message (Collapse)Author
2016-04-14[MOV] fetchmail: directory reorganizationKeyur Gajjar
- mode files in correct directory - remove fetchmail_installer_view empty file, ...
2015-10-30[FIX] fetchmail: missing spaceMartin Trigaux
2015-08-20[FIX] remove group_user read access to ir.cronXavier Morel
Should not be necessary for the correct working of odoo (normal cron lookup & processing is performed using raw SQL anyway). * fixed a few ref calls just in case * also cleaned up a few unused imports
2015-08-06[MERGE] forward port of branch saas-6 up to be58335Christophe Simonis
2015-08-06[MERGE] forward port of branch 8.0 up to d3e9bdeChristophe Simonis
2015-08-04[MERGE] Forward-port of latest bugfixes from saas-3 up to ↵Olivier Dony
733cb3e76f95c21db481e07c02d2af025b9d28fb
2015-08-04[MERGE] Forward-port from 7.0 up to 8b3d69a0d7bba324ec9022320c547af983546310Olivier Dony
2015-08-01[FIX] fetchmail: socket timeoutMatthieu Dietrich
Add a 60s timeout to fetchmail connections. Closes #7790
2015-07-22[MERGE] forward port of branch saas-6 up to 63e92cbChristophe Simonis
2015-07-16[MERGE] forward port of branch 8.0 up to 9ac62d7Christophe Simonis
2015-07-16[MERGE] forward port of branch saas-3 up to f304fb7Christophe Simonis
2015-07-16[MERGE] forward port of branch 7.0 up to e0c1f54Christophe Simonis
2015-07-15[FIX] fetchmail: workaround poplib line length bugOlivier Dony
In order to fix Python bug https://bugs.python.org/issue16041 a maximum line length was introduced in poplib when reading email contents from the POP3 server. That limit is set to prevent DoS attacks via malicious POP3 servers. The default limit (2048) seems to be too low for emails commonly found on the internet, retrieved via POP3 from popular mail services such as GMail, Hotmail, etc. (The POP3 servers might send back the lines verbatim without splitting them up) This is discussed in follow-up Python bug https://bugs.python.org/issue23906. Workaround implemented by forcing a higher default limit to accomodate POP3 responses with lines up to 64KB.
2015-06-02[LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate textOlivier Dony
- Preserved explicit 3rd-party copyright notices - Explicit boilerplate should not be necessary - copyright law applies automatically in all countries thanks to Berne Convention + WTO rules, and a reference to the applicable license is clear enough.
2015-02-11[MERGE] forward port of branch 8.0 up to 33a8989Christophe Simonis
2015-02-09[MERGE] forward port of branch saas-3 up to a8fdc60Denis Ledoux
2015-02-09[MERGE] forward port of branch 7.0 up to 1d76586Denis Ledoux
2015-02-09[IMP] fetchmail: process pop messages in subsetsJulien Legros
Most pop servers don't perform deletions until QUIT. If for some reason the process is killed while fetching a large quantity of messages, the quit method isn't invoked, while the commit method has been. We may thus end up with duplicated messages the next time we try to fetch. It therefore helps to fetch the messages in small subsets and call the quit method between those subsets.
2015-01-16[IMP] Cleanup and refactoring of exception handlingGoffin Simon
Unify and refactor exception handling in framework and addons. The generic `except_osv` is now deprecated, and replaced by more specialized exception subtypes: - `UserError` (renamed from Warning, as it conflicts with the built-in `Warning`) raised when a non-technical error occurs during a business operation. It could be a missing information in the data provided by the user, or a misconfiguration. - `AccessError`: raised when any operation is denied because the user conducting it does not have the required access rights. - `AccessDenied`: raised when an operation that requires authenticated access is attempted via an unauthenticated request. - `MissingError`: raised when an operation is attempted on a record that does not exist. - `ValidationError`: raised when an operation violates a SQL or Python constraint. - All other exceptions are internal errors due to a system problem or bug, and raised untouched to the client-side, which should display a traceback. All exceptions take a single message argument. The `test_exceptions` module has been updated to showcase both new and old (deprecated) exceptions. A great many old `except_osv` had a useless title with "Error!" or "Warning", those have been removed, as this is handled by the client-side widget that displays the messages. This commit introduces a more consistent policy for logging errors and warnings: - All messages that do not require administrator attention should be logged at INFO level or lower. This includes all errors that are notified to the user in a friendly manner, even for access right problems or validation errors during business operations. - All messages that indicate a likely misconfiguration or malicious use by the users should be logged at WARNING level, as they typically require administrator attention. - All other unhandled internal errors cannot typically be handled by the user and should be logged at ERROR or higher level, as they require immediate administrator attention.
2014-12-31[REF] remove vim modelines and resulting trailing blank linesLeonardo Donelli
Let 2015 be a year without modelines! cf #4174
2014-09-04[MERGE] forward port of branch saas-5 up to 9363bc9Christophe Simonis
2014-09-02[IMP] Optimize the schedulers of the calendar, fetchmail and ↵Stéphane Wirtel
base_action_rules modules Disable the the crons when they'd have nothing to do, re-enable them when a task is (probably) introduced
2014-08-28[MERGE] forward port of branch saas-5 up to 7e117b1Christophe Simonis
2014-08-28[MERGE] forward port of branch 7.0 up to 3509e15Christophe Simonis
2014-08-22[FIX] fetchmail: do not delete a failing email when using POPMartin Trigaux
In case of IMAP, the email is simply set as read but in case of POP, the email is deleted. To avoid loosing data (e.g. misconfiguration of server), the email is kept for POP. Bug lp:1296724, opw 605667
2014-07-08[FIX] fetchmail: add api decorator on method connect() to fix issue #980Raphael Collet
The method does not follow naming conventions. Therefore the "guessing" api decorator picks the wrong method wrapper. (Manual rebase of #1003)
2014-07-06[MERGE] new v8 api by rcoRaphael Collet
A squashed merge is required as the conversion of the apiculture branch from bzr to git was not correctly done. The git history contains irrelevant blobs and commits. This branch brings a lot of changes and fixes, too many to list exhaustively. - New orm api, objects are now used instead of ids - Environements to encapsulates cr uid context while maintaining backward compatibility - Field compute attribute is a new object oriented way to define function fields - Shared browse record cache - New onchange protocol - Optional copy flag on fields - Documentation update - Dead code cleanup - Lots of fixes
2014-06-25[REM] Unnecessary `size` parameters on char fieldsJaydeep Barot
2014-02-17[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9846 ↵Denis Ledoux
revid:dle@openerp.com-20140217124044-o8sgz1esfqeha01f bzr revid: dle@openerp.com-20140214100922-m6rf7c6x85nv67sl bzr revid: dle@openerp.com-20140214114713-oab4kbearvv7g3nh bzr revid: dle@openerp.com-20140214131810-9abebxpfeoga1crn bzr revid: dle@openerp.com-20140217124230-ov201kfep88f5tn7
2014-02-13[MERGE] [FIX] fetchmail: more coherent and robust behavior of fetchmail. ↵Thibault Delavallée
Notably, do not discard the whole email stack or stop after first crashed email processing. Featuring: - [FORWARD] [FIX] Forward port of revision 6920 of 6.1 addons branch, revid:odo@openerp.com-20120727150051-e1q0m92tyrazz82f. Purpose: some fixes and more robuts handling of incoming emails - [IMP] mail: mail_thread: message routing: raise exceptions instead of using asserts. Indeed assert are statements meant to be used when developping, for debug purpose. In a production environment it is safer to use real exceptions that can be managed accordingly. - [FIX] mail: fixed tests, no more AssertionError, but ValueError - [IMP] fetchmail: try / except each email processing. This allows to print an exception in the logs for every failed email processing, without crashing the whole stack. Any failed or succeeded email is set as seen, to avoid crashing every time the scheduler runs. bzr revid: tde@openerp.com-20140213115922-33vxgj7nfy86ashw
2014-02-13[FIX] fetchmail: typos in logger messagesThibault Delavallée
bzr revid: tde@openerp.com-20140213112946-i351aazw4r2ezfz4
2014-02-13[IMP] fetchmail: try / except the processinf of each email and log any exceptionThibault Delavallée
found during processing. This way, all emails in the queue are managed and all failed emails have their own exception in the logs, allowing easier debugging. Note that a failed email is set as seen to avoid processing it every time the scheduler runs. bzr revid: tde@openerp.com-20140213095717-tcwgkl143i3ujw8h
2014-02-12[FORWARD] [FIX] Forward port of revision 6920 of 6.1 addons branch.Thibault Delavallée
Revid: revid:odo@openerp.com-20120727150051-e1q0m92tyrazz82f Purpose: some fixes and more robuts handling of incoming emails bzr revid: tde@openerp.com-20140212160857-s889npk2q133xvy2
2013-04-11[FORWARD] Forward port of addons 7.0 until revision 9008Thibault Delavallée
bzr revid: tde@openerp.com-20130411124446-73gzyw3eo925w3dv
2013-04-05[FIX] fetchmail, on demand cron, context test for date writeAntony Lesuisse
bzr revid: al@openerp.com-20130405030026-oltyhb537w3p273g
2013-04-05[IMP] fetchmail, on demand cronAntony Lesuisse
enable a 3 micro hz cron only if needed as we want to lower the maximum cron frequency in default addons to 1 micro hz bzr revid: al@openerp.com-20130405024213-ll6t26j685rati5a
2013-03-22[MERGE] merged trunk.Vo Minh Thu
bzr revid: vmt@openerp.com-20130322134958-jhe6m0222jq7wo41
2013-02-25[FIX] fetchmail mailgate script intructionAntony Lesuisse
bzr revid: al@openerp.com-20130225145859-etxj4hetsnznd1aa
2013-02-22[IMP] removed unused netsvc imports.Vo Minh Thu
bzr revid: vmt@openerp.com-20130222161029-zecwro75yra2vz0d
2012-12-10[MERGE] merged trunk.Vo Minh Thu
bzr revid: vmt@openerp.com-20121210111654-0pm3pupnqqeip52n
2012-12-06[MERGE] Bugfixes from 6.1 until revision 6800Olivier Dony
bzr revid: odo@openerp.com-20121206153856-9y9v8ok6yxo6l5f0
2012-12-06[IMP] use the openerp namespace.Vo Minh Thu
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-11-08[FIX] fetchmail: fixed a bug about fetchmail_server_id when sending an email.Thibault Delavallée
bzr revid: tde@openerp.com-20121108160826-40dj27zvmqxf4im7
2012-09-30[MERGE] better domain on CoA templateFabien Pinckaers
bzr revid: fp@tinyerp.com-20120930124920-otcsuf4kgzf4wl31
2012-09-27[FIX] Set active model in context.Tejas Tank
bzr revid: tta@openerp.com-20120927072349-wlkyow2py4969gtb
2012-08-21[FIX] fetchmail: typosOlivier Dony
bzr revid: odo@openerp.com-20120821210953-olzgm14wsk7jzcia
2012-08-20[FIX] fetchmail: fetchmail_server_id added to mail.mail form view.Thibault Delavallée
bzr revid: tde@openerp.com-20120820130631-3kn57wnvj4ssyrjt
2012-08-14[MERGE] Sync with trunkOlivier Dony
bzr revid: odo@openerp.com-20120814082029-i1b7d4l5cqgs434g
2012-08-07[IMP] mail.alias: work-in-progress: cleanup actual email processingOlivier Dony
bzr revid: odo@openerp.com-20120807180412-u2gdsjg579ak7zxp
2012-08-07[MERGE] latest trunkAntonin Bourguignon
also replace the error message title 'Operation Not Permitted' by 'Invalid Action' bzr revid: abo@openerp.com-20120807120451-zdrrecilfh82obhl