diff options
author | Magnus Hagander | 2016-02-12 17:03:26 +0000 |
---|---|---|
committer | Magnus Hagander | 2016-02-12 17:03:26 +0000 |
commit | 986048a270afd56ef4f504d8e417d81f28970362 (patch) | |
tree | ddd42a69157676e6caf311f1ed133ac30ae3011e /pgcommitfest/mailqueue/util.py | |
parent | 6dec4d85a2eb96a5cbf502f282e9087c9f9081a5 (diff) |
Implement notifications
This makes it possible to receive notifications (via email) when a patch
has been updated.
It's possible to subscribe to notifications on a specific patch. It is also
possible to set the user profile up so that one receives notifications for
all patches where one is author, reviewer or committer on.
Notifications are, of course, only sent when other people make modifications
to the entry.
Diffstat (limited to 'pgcommitfest/mailqueue/util.py')
-rw-r--r-- | pgcommitfest/mailqueue/util.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pgcommitfest/mailqueue/util.py b/pgcommitfest/mailqueue/util.py index 525f068..b0601c6 100644 --- a/pgcommitfest/mailqueue/util.py +++ b/pgcommitfest/mailqueue/util.py @@ -18,7 +18,8 @@ def send_simple_mail(sender, receiver, subject, msgtxt, sending_username, attach msg['From'] = sender msg['Date'] = formatdate(localtime=True) msg['User-Agent'] = 'pgcommitfest' - msg['X-cfsender'] = sending_username + if sending_username: + msg['X-cfsender'] = sending_username msg.attach(MIMEText(msgtxt, _charset='utf-8')) |