Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | replace 'except:' with 'except Exception:' | Richard van der Hoff | 2017-10-23 | 1 | -1/+1 |
| | | | | what could possibly go wrong | ||||
* | Only load jinja2 templates once | Erik Johnston | 2017-05-22 | 1 | -12/+3 |
| | | | | | Instead of every time a new email pusher is created, as loading jinja2 templates is slow. | ||||
* | Ensure we pass positive ints to delay function | Erik Johnston | 2017-02-22 | 1 | -1/+2 |
| | |||||
* | Reduce redundant database work in email pusher | Erik Johnston | 2016-10-18 | 1 | -0/+4 |
| | | | | | | | Update the last stream ordering if the `get_unread_push_actions_for_user_in_range_for_email` returns no new push actions. This reduces the range that it needs to check next iteration. | ||||
* | Ignore AlreadyCalled errors on timer cancel | Erik Johnston | 2016-07-31 | 1 | -2/+10 |
| | |||||
* | Create separate methods for getting messages to push | Mark Haines | 2016-07-28 | 1 | -3/+2 |
| | | | | | | | | | | | for the email and http pushers rather than trying to make a single method that will work with their conflicting requirements. The http pusher needs to get the messages in ascending stream order, and doesn't want to miss a message. The email pusher needs to get the messages in descending timestamp order, and doesn't mind if it misses messages. | ||||
* | Merge remote-tracking branch 'origin/develop' into dbkr/email_unsubscribe | David Baker | 2016-06-02 | 1 | -2/+8 |
|\ | |||||
| * | Disable INCLUDE_ALL_UNREAD_NOTIFS | Erik Johnston | 2016-06-02 | 1 | -1/+2 |
| | | |||||
| * | if an email pusher specifies a brand param, use it | Matthew Hodgson | 2016-06-02 | 1 | -1/+6 |
| | | |||||
* | | Email unsubscribing that may in theory, work | David Baker | 2016-06-02 | 1 | -1/+1 |
|/ | | | | Were it not for that fact that you can't use the base handler in the pusher because it pulls in the world. Comitting while I fix that on a different branch. | ||||
* | Tune email notifs to make them quieter: | Matthew Hodgson | 2016-05-23 | 1 | -8/+18 |
| | | | | | | | | * After initial 10 minute window, only alert every 24h for room notifs * Reset room state after 6h of idleness * Synchronise throttles for messages sent in the same notif, so the 24 hourly notifs 'line up' * Fix the email subjects to say what triggered the notification * Order the rooms in reverse activity order in the email, so the 'reason' room should always come first | ||||
* | tune email notifs, fix CSS a bit, and add debugging details | Matthew Hodgson | 2016-05-16 | 1 | -8/+24 |
| | |||||
* | Add constant for throttle multiplier | David Baker | 2016-04-29 | 1 | -1/+2 |
| | |||||
* | Remove unused function | David Baker | 2016-04-29 | 1 | -4/+0 |
| | |||||
* | Remove unused arg | David Baker | 2016-04-29 | 1 | -2/+2 |
| | |||||
* | Remove rather pointless get function | David Baker | 2016-04-29 | 1 | -9/+1 |
| | |||||
* | Stop processing notifs once we've sent a mail | David Baker | 2016-04-29 | 1 | -0/+1 |
| | |||||
* | Put back real delay before mailing | David Baker | 2016-04-28 | 1 | -1/+1 |
| | |||||
* | Better grammar for multiple messages in a room | David Baker | 2016-04-27 | 1 | -1/+1 |
| | | | | Say who the messages are from if there's no room name, otherwise it's a bit nonsensical | ||||
* | No inlineCallbacks necessary on this | David Baker | 2016-04-22 | 1 | -1/+0 |
| | |||||
* | Flesh out email templating | David Baker | 2016-04-21 | 1 | -0/+7 |
| | | | | Mostly WIP porting the room name calculation logic from the web client so our room names in the email mirror the clients. | ||||
* | Generate mails from a template | David Baker | 2016-04-20 | 1 | -8/+4 |
| | |||||
* | Send a rather basic email notif | David Baker | 2016-04-20 | 1 | -9/+23 |
| | | | | Also pep8 fixes | ||||
* | Add single instance & logging stuff | David Baker | 2016-04-19 | 1 | -8/+39 |
| | | | | Copy the stuff over from http pusher that prevents multiple instances of process running at once and sets up logging and measure blocks. | ||||
* | First bits of emailpusher | David Baker | 2016-04-19 | 1 | -0/+214 |
Mostly logic of when to send an email |