summaryrefslogtreecommitdiffstats
path: root/wallace/module_invitationpolicy.py
Commit message (Collapse)AuthorAgeFilesLines
* [Python 3] Use .items() instead of .iteritems()Christoph Erhardt7 days1-2/+2
| | | | | | | | | | | | | | | | | | Summary: .iteritems() was dropped in Python 3.0. This commit may have a negative performance impact on Python 2 since .items() returns a copy of the dictionary's item list. In Python 3, .items() returns a view object, so no performance drop should be noticeable there. Reviewers: machniak, mollekopf Reviewed By: mollekopf Subscribers: mollekopf Differential Revision: https://git.kolab.org/D3244
* [Python 3] Get rid of .has_key()Christoph Erhardt7 days1-18/+18
| | | | | | | | | | | | Summary: `dict.has_key(key)` was dropped in Python 3.0. Use `key in dict` instead. Reviewers: machniak, mollekopf Reviewed By: mollekopf Differential Revision: https://git.kolab.org/D3241
* [Python 3] Use new exception syntaxChristoph Erhardt7 days1-11/+11
| | | | | | | | | | | | Summary: The new syntax was introduced in Python 2.6; the old syntax was deprecated in Python 3.0. Reviewers: machniak, mollekopf Reviewed By: mollekopf Differential Revision: https://git.kolab.org/D3232
* More logging in Wallace and --max-tasks per process option for wallacedLiutauras Adomaitis2019-08-161-5/+12
| | | | | | | | | | | | Summary: Given that part of https://git.kolab.org/D761 changes are obsolete after commit baeee0049f06430801a2d9940f875747e51be7f5 I still want to have some changes find their way in master. Test Plan: None Reviewers: vanmeeuwen Subscribers: petersen, machniak, vanmeeuwen Differential Revision: https://git.kolab.org/D791
* T4611: Add missing `import random`Aleksander Machniak2019-01-301-0/+1
|
* Manage the pool processes such that they die after a limited quantity of ↵Jeroen van Meeuwen (Kolab Systems)2018-07-271-0/+13
| | | | | | | | | | | | | | | | | | | | | time, and pick up messages from the spool asynchronously. Summary: Reference T75735 Let a single worker process timeout itself Set the signal as late as possible Abstract the method to pickup messages from the spool, so that a new recurring Timer may pick up messages out of the spool Test Plan: * Run messages through it Reviewers: #pykolab_developers Subscribers: #pykolab_developers Differential Revision: https://git.kolab.org/D617
* Fix using Attendee object in a debug messageAleksander Machniak2018-06-271-1/+1
|
* Check if the variable is not None before using strip()Aleksander Machniak2018-06-211-2/+6
|
* Ignore iTip dummy comments with whitespace chars only (e.g. from Outlook)Aleksander Machniak2018-06-211-0/+2
|
* Fix invitationpolicy error on an itip reply with no ORGANIZER prop ↵Aleksander Machniak2018-06-211-2/+6
| | | | (Bifrost#T114576)
* nother attempt to add more logging and fix wallace messages not being ↵Liutauras Adomaitis2018-06-151-4/+4
| | | | | | | | | | | | | | | | delivered and staying in spool directory Summary: Adding more logs that should show why _sendmail function does not start a "while" delivery loop and unliking file does not happen. Also some code polishing. Test Plan: none Reviewers: machniak, vanmeeuwen Reviewed By: machniak Subscribers: petersen Differential Revision: https://git.kolab.org/D599
* Fix D577 patch bug - modules._sendmail result assign to variable, which is ↵Liutauras Adomaitis2018-06-041-4/+2
| | | | | | | | | | | | | | | | used to log the result of email sending. Summary: Define success variable to hold the _sendmail result. Test Plan: none Reviewers: vanmeeuwen, machniak Reviewed By: machniak Subscribers: petersen Differential Revision: https://git.kolab.org/D581
* With this patch I'm trying to introduce a file-type object in logger, which ↵Liutauras Adomaitis2018-05-171-45/+15
| | | | | | | | | | | | | | | | | | could swallow everything thrown to stderr (and possibly stdout) and redirect to python logger. Python smtplib debug mode prints everything to stderr, but when wallace runs... Summary: ...in fork mode stderr is not available (Bad file descriptor error) and thus wallace traceback when it tries to send emails Test Plan: none Reviewers: vanmeeuwen, machniak, petersen Reviewed By: vanmeeuwen Subscribers: petersen, machniak, vanmeeuwen Maniphest Tasks: T2498, T2163, T3751 Differential Revision: https://git.kolab.org/D577
* Address inefficiencies and possible misfunction over delegated mailboxes in ↵Jeroen van Meeuwen (Kolab Systems)2017-07-221-27/+72
| | | | | | | | | | | | | | | | | | other user namespace Summary: Resolves T2582 Test Plan: None Reviewers: #pykolab_developers, machniak, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Subscribers: adomaitis, machniak, #pykolab_developers Maniphest Tasks: T2582 Differential Revision: https://git.kolab.org/D485
* Little change to improve invitation policy logging - log if iTip requires ↵Liutauras Adomaitis2017-07-221-1/+1
| | | | | | | | | | | | re-scheduling and print event uid Summary: Little change to improve invitation policy logging - log if iTip requires re-scheduling and print event uid Reviewers: vanmeeuwen Reviewed By: vanmeeuwen Differential Revision: https://git.kolab.org/D491
* A delegated mailbox may in fact not have a result attributeJeroen van Meeuwen (Kolab Systems)2016-12-131-1/+5
|
* Use COMMENT in invitation policy notifications (#5403)Aleksander Machniak2016-07-011-15/+60
| | | | | | | | | | | | Summary: Fixes #5403 Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Subscribers: vanmeeuwen Differential Revision: https://git.kolab.org/D159
* Fix default folder selection for new invitation objects (#5378)Aleksander Machniak2016-04-151-15/+15
| | | | | | | | | | | | Summary: Fixes #5378. Makes that folders marked as default are prefered over other folders when savin pending invitation objects Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Subscribers: venc Differential Revision: https://git.kolab.org/D132
* Add note to cancellation notification body that it's for single occurrence ↵Aleksander Machniak2016-04-141-0/+3
| | | | | | | | | | | | when it is (#5375) Summary: Fixes #5375 Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Differential Revision: https://git.kolab.org/D124
* Fix typos in notification messagesAleksander Machniak2016-04-041-4/+4
| | | | | | Reviewers: #pykolab_developers Differential Revision: https://git.kolab.org/D119
* Fix From header encoding in invitation notifications (#4258)Aleksander Machniak2016-04-041-4/+8
| | | | | | | | | | Summary: Fixes https://issues.kolab.org/show_bug.cgi?id=4258 Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Differential Revision: https://git.kolab.org/D120
* Avoid traceback if the list of user folders is not a list with a length > 0 ↵Jeroen van Meeuwen (Kolab Systems)2015-08-051-26/+32
| | | | (#5181)
* Fix lock check after changed in rP929e67a6Thomas Bruederli2015-05-261-4/+2
|
* Limit number of retries to send an update notification; fix the ↵Thomas Bruederli2015-05-261-2/+8
| | | | smtplib.SMTP.sendmail() mock to also return success status
* Don't smtp.quit() if no connection had been created (successfully), and ↵Jeroen van Meeuwen (Kolab Systems)2015-05-141-6/+9
| | | | please do attempt to send the result again and again (logging errors helps)
* Actually expire a locked object, by updating what locktime is being compared toJeroen van Meeuwen (Kolab Systems)2015-05-141-8/+12
|
* Don't change partstat on new invitations saved to calendar (#4948)Thomas Bruederli2015-03-271-2/+4
|
* Select folder annotated as 'private' for storing events flagged as such (#4788)Thomas Bruederli2015-03-241-1/+5
|
* New *_CANCEL_DELETE policy to remove cancelled objects rather than flagging ↵Thomas Bruederli2015-03-111-26/+58
| | | | as cancelled (#4306)
* Force RRULE UNTIL attribute to be a UTC date/time but also account for it to ↵Thomas Bruederli2015-03-101-2/+1
| | | | be a date-only value
* Only take delegated mailboxes into account when receiving iTip REPLY ↵Thomas Bruederli2015-03-091-5/+7
| | | | messages (#4798) as initially intened in commit e94e4e2
* Store reservations for single occurrences with the same UID in one object ↵Thomas Bruederli2015-03-021-1/+0
| | | | (#4766)
* Remove commented codeThomas Bruederli2015-03-021-10/+1
|
* Store invitations to single occurrences with the same UID in one object (#4726)Thomas Bruederli2015-03-021-6/+16
|
* Reset return vars when recurrence-id doesn't match (#4706)Thomas Bruederli2015-02-261-0/+2
|
* Minor improvement in notification message text (newlines)Thomas Bruederli2015-02-231-1/+1
|
* Reset vars on exceptionThomas Bruederli2015-02-231-0/+2
|
* Better regex for UID; set partstat + rsvp before adding to list of updated ↵Thomas Bruederli2015-02-201-5/+6
| | | | attendees
* Consolidate duplicate code to resolve recurrence instancesThomas Bruederli2015-02-201-78/+16
|
* Don't reply with PARTSTAT=NEEDS-ACTIONThomas Bruederli2015-02-201-1/+1
|
* Support iTip CANCEL requests with THISANDFUTRE rangeThomas Bruederli2015-02-201-0/+9
|
* Add support for invitations of recurring events and single occurrences (#4552)Thomas Bruederli2015-02-171-47/+183
|
* Prevent wallace from failing on bogus configurations (#4555)Thomas Bruederli2015-02-111-1/+1
|
* Consider kolabDelegate status when searching for events to be updated on ↵Thomas Bruederli2015-02-021-2/+10
| | | | iTip replies (#4261)
* Fix pykolab.imap.namespaces function return and usage (#4277)Thomas Bruederli2015-02-021-6/+3
|
* Implement additional policy value *_SAVE_AND_FORWARD to still pass through ↵Thomas Bruederli2015-02-021-1/+11
| | | | the original iTip message after saving it to the invitation calendar (#4269)
* Localize notification message texts with gettext (#4256)Thomas Bruederli2015-01-211-8/+8
|
* Consider all valid recipient email addresses, including aliases, when ↵Thomas Bruederli2014-12-231-3/+10
| | | | identifying attendees in iTip messages (#4074)
* Build iTip response and notification messages with unicode strings (#3926) + ↵Thomas Bruederli2014-11-191-6/+14
| | | | adjust tests
* Store confidential iTip invitation events in a dedicated folder - if exists ↵Thomas Bruederli2014-08-231-3/+11
| | | | (#3639)