summary refs log tree commit diff
path: root/synapse/push/mailer.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Only load jinja2 templates onceErik Johnston2017-05-221-33/+54
| | | | | Instead of every time a new email pusher is created, as loading jinja2 templates is slow.
* Support authenticated SMTPDaniel Dent2017-04-051-1/+5
| | | | | | Closes (SYN-714) #1385 Signed-off-by: Daniel Dent <matrixcontrib@contactdaniel.net>
* Get current state by using current_state_events tableErik Johnston2017-03-101-1/+1
|
* Fix email push in pusher workerErik Johnston2017-02-021-2/+2
| | | | | | This was broken when device list updates were implemented, as Mailer could no longer instantiate an AuthHandler due to a dependency on federation sending.
* Allow configuring the Riot URL used in notification emailsAdrian Perez de Castro2017-01-131-6/+14
| | | | | | | | | | The URLs used for notification emails were hardcoded to use either matrix.to or vector.im; but for self-hosted setups where Riot is also self-hosted it may be desirable to allow configuring an alternative Riot URL. Fixes #1809. Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
* Fix push notifications for a single unread messageErik Johnston2016-10-181-1/+1
|
* Fix email push notifs being droppedErik Johnston2016-10-131-14/+25
| | | | | | | | A lot of email push notifications were failing to be sent due to an exception being thrown along one of the (many) paths. This was due to a change where we moved from pulling out the full state for each room, but rather pulled out the event ids for the state and separately loaded the full events when needed.
* Fix email notifs by adding missing paramErik Johnston2016-08-301-1/+1
|
* Fix room name in email notifsErik Johnston2016-08-261-19/+20
|
* Fix up push to use get_current_state_idsErik Johnston2016-08-251-13/+19
|
* Fix ``KeyError: 'msgtype'``. Use ``.get``Mark Haines2016-06-171-14/+15
| | | | | | | | | | | | | Fixes a key error where the mailer tried to get the ``msgtype`` of an event that was missing a ``msgtype``. ``` File "synapse/push/mailer.py", line 264, in get_notif_vars File "synapse/push/mailer.py", line 285, in get_message_vars File ".../frozendict/__init__.py", line 10, in __getitem__ return self.__dict[key] KeyError: 'msgtype' ```
* 3rd time lucky: we'd already calculated it aboveDavid Baker2016-06-031-3/+1
|
* Oops, we're using the dict formDavid Baker2016-06-031-1/+3
|
* Add substitutions to email notif FromDavid Baker2016-06-031-1/+1
|
* Merge branch 'develop' into matthew/brand-from-headerMatthew Hodgson2016-06-031-6/+19
|\
| * Merge pull request #821 from matrix-org/dbkr/email_unsubscribeDavid Baker2016-06-021-5/+18
| |\ | | | | | | Email unsubscribe links that don't require logging in
| | * peppateDavid Baker2016-06-021-1/+3
| | |
| | * Working unsubscribe links going straight to the HSDavid Baker2016-06-021-4/+4
| | | | | | | | | | | | and authed by macaroons that let you delete pushers and nothing else
| | * Merge remote-tracking branch 'origin/dbkr/email_notif_string_fmt_error' into ↵David Baker2016-06-021-1/+1
| | |\ | | | | | | | | | | | | dbkr/email_unsubscribe
| | * \ Merge remote-tracking branch 'origin/develop' into dbkr/email_unsubscribeDavid Baker2016-06-021-2/+2
| | |\ \
| | * \ \ Merge branch 'dbkr/split_out_auth_handler' into dbkr/email_unsubscribeDavid Baker2016-06-021-0/+2
| | |\ \ \
| | * | | | Email unsubscribing that may in theory, workDavid Baker2016-06-021-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | Merge pull request #820 from matrix-org/dbkr/email_notif_string_fmt_errorDavid Baker2016-06-021-1/+1
| |\ \ \ \ \ | | | |_|_|/ | | |/| | | Fix error in email notification string formatting
| | * | | | Fix error in email notification string formattingDavid Baker2016-06-021-1/+1
| | | |_|/ | | |/| |
* | / | | brand the email from headerMatthew Hodgson2016-06-021-1/+8
|/ / / /
* / / / add some branding debuggingMatthew Hodgson2016-06-021-0/+1
|/ / /
* | / if an email pusher specifies a brand param, use itMatthew Hodgson2016-06-021-2/+2
| |/ |/|
* | Use user_id in email greeting if display name is nullDavid Baker2016-06-021-0/+2
|/
* Check for presence of 'avatar_url' keyDavid Baker2016-05-241-1/+3
|
* fix NPE in room orderingMatthew Hodgson2016-05-231-2/+2
|
* consistency is the better part of valourMatthew Hodgson2016-05-231-1/+1
|
* Tune email notifs to make them quieter:Matthew Hodgson2016-05-231-10/+38
| | | | | | | | * 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 detailsMatthew Hodgson2016-05-161-1/+6
|
* fix matrix.to URLsMatthew Hodgson2016-05-131-2/+2
|
* Make email notifs work on the pusher synapseDavid Baker2016-05-131-0/+1
| | | | Plus general bugfix to email notif code
* move filter_events_for_client out of base handlerMark Haines2016-05-111-3/+3
|
* Make pep8 happyDavid Baker2016-05-101-1/+1
|
* Switch from CSS to Table layout for HTML mails so they work in Outlook ↵Matthew Hodgson2016-05-101-7/+18
| | | | | | | aka Word Remove templates-vector and theme templates with variables instead Switch to matrix.to URLs by default for links
* better mail subject linesMatthew Hodgson2016-05-051-1/+1
|
* fix layout; handle app naming in synapse, not jinjaMatthew Hodgson2016-05-051-16/+31
|
* pep8Matthew Hodgson2016-05-051-2/+4
|
* handle fragments correctly on mxc URLs.Matthew Hodgson2016-05-051-14/+45
| | | | | | | switch to vector.im permalinks as matrix.to isn't ready yet. merge overlapping notifications together. give one message of context after a notification (in the unlikely event it exists, but it's possible thanks to throttling). include name of app in mail templates
* Include no contextDavid Baker2016-05-041-1/+1
| | | | until we can de-dup between the context and other notifs
* Add date header & message idDavid Baker2016-05-041-0/+2
|
* Use the constantDavid Baker2016-04-291-1/+2
|
* Avoid `vars` builtinDavid Baker2016-04-291-15/+15
|
* Use named parameter formatDavid Baker2016-04-291-14/+22
|
* pep8David Baker2016-04-291-1/+0
|
* Send mail notifs with a plaintext part tooDavid Baker2016-04-291-7/+20
|
* May as well always include room linkDavid Baker2016-04-281-4/+3
|
* Support file messages & fix plain textDavid Baker2016-04-281-2/+3
|
* Support image notifsDavid Baker2016-04-281-11/+25
|
* pep8David Baker2016-04-281-2/+5
|
* Handle room invites in email notifsDavid Baker2016-04-281-5/+30
|
* Linkify plain text messages tooDavid Baker2016-04-281-1/+12
|
* Run filter_events_for_clientDavid Baker2016-04-271-7/+11
| | | | so we don't accidentally mail out events people shouldn't see
* Make html messages workDavid Baker2016-04-271-10/+21
|
* Better grammar for multiple messages in a roomDavid Baker2016-04-271-9/+32
| | | | Say who the messages are from if there's no room name, otherwise it's a bit nonsensical
* Hopefully all remaining bits for email notifsDavid Baker2016-04-271-22/+144
| | | | Add public facing base url to the server so synapse knows what URL to use when converting mxc to http urls for use in emails
* More variable calculation for email notifsDavid Baker2016-04-251-2/+55
| | | | Include name of the person we're sending to and add summary text at the top giving an overview of what's happened.
* Actually do UTF8 correctlyDavid Baker2016-04-221-1/+1
|
* Mime part is binary so encode it first.David Baker2016-04-221-1/+1
| | | | Doesn't get character enocind right yet but makes it not error.
* Flesh out email templatingDavid Baker2016-04-211-3/+58
| | | | 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 templateDavid Baker2016-04-201-13/+17
|
* more pep8David Baker2016-04-201-1/+1
|
* Send a rather basic email notifDavid Baker2016-04-201-0/+48
Also pep8 fixes