Commit Graph

103 Commits

Author SHA1 Message Date
Denis Ledoux a8fdc60b88 [MERGE] forward port of branch 7.0 up to 1d76586 2015-02-09 17:57:39 +01:00
Julien Legros 318f254761 [IMP] fetchmail: process pop messages in subsets
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-02-09 13:21:06 +01:00
Stéphane Wirtel 1ff7ed2758 [IMP] Optimize the schedulers of the calendar, fetchmail and 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-09-02 18:32:27 +02:00
Christophe Simonis ada9724655 [MERGE] forward port of branch 7.0 up to 3509e15 2014-08-28 16:12:55 +02:00
Martin Trigaux b160f99e2d [FIX] fetchmail: do not delete a failing email when using POP
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-08-22 14:14:56 +02:00
Denis Ledoux 0ef17beed0 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9846 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-17 13:42:30 +01:00
Thibault Delavallée 91305885e7 [MERGE] [FIX] fetchmail: more coherent and robust behavior of fetchmail. 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 12:59:22 +01:00
Thibault Delavallée 0f111f7b96 [FIX] fetchmail: typos in logger messages
bzr revid: tde@openerp.com-20140213112946-i351aazw4r2ezfz4
2014-02-13 12:29:46 +01:00
Thibault Delavallée ec5291c130 [IMP] fetchmail: try / except the processinf of each email and log any exception
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-13 10:57:17 +01:00
Thibault Delavallée bc0232cee6 [FORWARD] [FIX] Forward port of revision 6920 of 6.1 addons branch.
Revid: revid:odo@openerp.com-20120727150051-e1q0m92tyrazz82f
Purpose: some fixes and more robuts handling of incoming emails

bzr revid: tde@openerp.com-20140212160857-s889npk2q133xvy2
2014-02-12 17:08:57 +01:00
Thibault Delavallée 4da68cbc22 [FORWARD] Forward port of addons 7.0 until revision 9008
bzr revid: tde@openerp.com-20130411124446-73gzyw3eo925w3dv
2013-04-11 14:44:46 +02:00
Antony Lesuisse e483833793 [FIX] fetchmail, on demand cron, context test for date write
bzr revid: al@openerp.com-20130405030026-oltyhb537w3p273g
2013-04-05 05:00:26 +02:00
Antony Lesuisse aa753772ab [IMP] fetchmail, on demand cron
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-04-05 04:42:13 +02:00
Vo Minh Thu 9b0ced610f [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20130322134958-jhe6m0222jq7wo41
2013-03-22 14:49:58 +01:00
Antony Lesuisse 0fe0bf1424 [FIX] fetchmail mailgate script intruction
bzr revid: al@openerp.com-20130225145859-etxj4hetsnznd1aa
2013-02-25 15:58:59 +01:00
Vo Minh Thu 9bb5ee90e4 [IMP] removed unused netsvc imports.
bzr revid: vmt@openerp.com-20130222161029-zecwro75yra2vz0d
2013-02-22 17:10:29 +01:00
Vo Minh Thu 6072fd11af [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121210111654-0pm3pupnqqeip52n
2012-12-10 12:16:54 +01:00
Olivier Dony 5db87bea9c [MERGE] Bugfixes from 6.1 until revision 6800
bzr revid: odo@openerp.com-20121206153856-9y9v8ok6yxo6l5f0
2012-12-06 16:38:56 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Thibault Delavallée 7e1369cca8 [FIX] fetchmail: fixed a bug about fetchmail_server_id when sending an email.
bzr revid: tde@openerp.com-20121108160826-40dj27zvmqxf4im7
2012-11-08 17:08:26 +01:00
Fabien Pinckaers ea5cea4b0a [MERGE] better domain on CoA template
bzr revid: fp@tinyerp.com-20120930124920-otcsuf4kgzf4wl31
2012-09-30 14:49:20 +02:00
Tejas Tank 74015667fc [FIX] Set active model in context.
bzr revid: tta@openerp.com-20120927072349-wlkyow2py4969gtb
2012-09-27 12:53:49 +05:30
Olivier Dony d3f493de07 [FIX] fetchmail: typos
bzr revid: odo@openerp.com-20120821210953-olzgm14wsk7jzcia
2012-08-21 23:09:53 +02:00
Thibault Delavallée ccb78bfdd9 [FIX] fetchmail: fetchmail_server_id added to mail.mail form view.
bzr revid: tde@openerp.com-20120820130631-3kn57wnvj4ssyrjt
2012-08-20 15:06:31 +02:00
Olivier Dony ac4e5d746b [MERGE] Sync with trunk
bzr revid: odo@openerp.com-20120814082029-i1b7d4l5cqgs434g
2012-08-14 10:20:29 +02:00
Olivier Dony 86836d67dd [IMP] mail.alias: work-in-progress: cleanup actual email processing
bzr revid: odo@openerp.com-20120807180412-u2gdsjg579ak7zxp
2012-08-07 20:04:12 +02:00
Antonin Bourguignon a97687a420 [MERGE] latest trunk
also replace the error message title 'Operation Not Permitted' by 'Invalid Action'

bzr revid: abo@openerp.com-20120807120451-zdrrecilfh82obhl
2012-08-07 14:04:51 +02:00
Saurang Suthar(OpenERP) 839d166da5 [IMP] Improved warning messages for edi and fetchmail modules
bzr revid: pso@tinyerp.com-20120725120401-cyn84znppa8t9vqf
2012-07-25 17:34:01 +05:30
Pinakin Nayi (OpenERP) 62e4a52f2d [IMP]edi-event-email_template-fetchmail-warning-msg
bzr revid: pna@tinyerp.com-20120712122459-hvvxq5nqrtfxv3ei
2012-07-12 17:54:59 +05:30
Jigar Amin - OpenERP 8541387a0b [IMP] fretchmail and mail alias integration
bzr revid: jam@tinyerp.com-20120704120718-kkg3qn1gemjkobw6
2012-07-04 17:37:18 +05:30
Thibault Delavallée d973fc8f57 [FIX] fetchmail: fixed var used with a typo inside.
bzr revid: tde@openerp.com-20120702084700-sei3ip60afywo222
2012-07-02 10:47:00 +02:00
Jigar Amin - OpenERP 1b9f3a5b74 [IMP/FIX] Added Strict value checker for the defaults and fetchmail logger fix
bzr revid: jam@tinyerp.com-20120629115233-skml2xtp79xmxvyr
2012-06-29 17:22:33 +05:30
Kuldeep Joshi (OpenERP) 3c50eb017a [IMP] set logging.getLogger(__name__)
bzr revid: kjo@tinyerp.com-20120622064854-5f6fss55k7305e8q
2012-06-22 12:18:54 +05:30
Saurang Suthar (OpenERP) a2a05cfc19 [IMP]:improved titles State by Status everywhere
bzr revid: ssu@tinyerp.com-20120504115748-2vd1dns7bxptg384
2012-05-04 17:27:48 +05:30
Xavier ALT 20d2d1215f [MERGE] server action: fix missing active_model in context when calling server action run()
bzr revid: xal@openerp.com-20120426080300-ufex83412qnuzfwe
2012-04-26 10:03:00 +02:00
Xavier ALT 0560002844 [FIX] server action call: fix missed change in fetchmail, pep8 fixes
bzr revid: xal@openerp.com-20120423081407-5ikteaw9cpw1gnq1
2012-04-23 10:14:07 +02:00
ado cd2cda1a37 [FIX] Fetchmail: UnboundLocalError: local variable imap_server referenced before assignment
bzr revid: ado@tinyerp.com-20120321085752-pwsqfifik0cep9vr
2012-03-21 14:27:52 +05:30
Antoine Huvelle bea0aa0229 [IMP] changes in fetchmail and automated action to pass active_model info
bzr revid: ahu@openerp.com-20120315143340-eec06wl7o1xb5oj9
2012-03-15 15:33:40 +01:00
Antony Lesuisse 69b916b144 [MERGE] fetchmail local mta option by stw
bzr revid: al@openerp.com-20111004222640-ako0cjw414c5lz72
2011-10-05 00:26:40 +02:00
Stephane Wirtel 2810a6ce4a [MERGE] Upstream
bzr revid: stw@openerp.com-20111003132244-7yum8h21osi9zfcu
2011-10-03 15:22:44 +02:00
Fabien Pinckaers e70a409af1 [IMP] useability views
bzr revid: fp@tinyerp.com-20111001200247-tqyw0w8zomrq0jil
2011-10-01 22:02:47 +02:00
Stephane Wirtel 7afbca3af9 [IMP] fetchmail: Introduce the fetchmail_model keyword in the context to specify the default value for the object field of the fetchmail.server object
bzr revid: stw@openerp.com-20110922130827-ny2i17lng1x1ua59
2011-09-22 15:08:27 +02:00
Stephane Wirtel d57135eaef [IMP] fetchmail: Add a new type for the incoming server and generate a zip file with the script of the mailgateway and the right configuration
bzr revid: stw@openerp.com-20110916140252-movu1cxjubt0bc44
2011-09-16 16:02:52 +02:00
Olivier Dony 6289ce38f9 [FIX] fetchmail.server: care for non-ascii connection error message
bzr revid: odo@openerp.com-20110914120753-tt1x0kr8b1noj84j
2011-09-14 14:07:53 +02:00
Olivier Dony 32a892cbbb [IMP] fetchmail: cleanup - improve names
bzr revid: odo@openerp.com-20110908141941-vsd21wfb13z5tywa
2011-09-08 16:19:41 +02:00
Olivier Dony d81f1cd942 [IMP] fetchmail: review+cleanup
bzr revid: odo@openerp.com-20110908010700-n7fk9hzwb60v80cq
2011-09-08 03:07:00 +02:00
Olivier Dony b0bed63351 [IMP] mail.thread: renaming methods to avoid collisions with objects that use the mixin
bzr revid: odo@openerp.com-20110823175809-hw81fkptg90702vh
2011-08-23 19:58:09 +02:00
Olivier Dony 8f9f45ea94 [IMP] all: next pass of review/renaming for new mail API
bzr revid: odo@openerp.com-20110822171659-zxho36a6n628i10q
2011-08-22 19:16:59 +02:00
Olivier Dony 50507512cb [MERGE] latest trunk
This was a helluva merge, with hundreds of conflicts resolved manually!!
I hope I did not break too many things, but a full review of the mail-related
features (where most of the conflicts occurred) must still be done before
this feature branch can be merged.

bzr revid: odo@openerp.com-20110809234428-3dsvxrt6t54ju0cf
2011-08-10 01:44:28 +02:00
Quentin (OpenERP) 9c9516d21c [MERGE] merged with main addons trunk
bzr revid: qdp-launchpad@openerp.com-20110706145644-merwy0setzzb8c9w
2011-07-06 16:56:44 +02:00