diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-09-08 17:08:21 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-09-08 11:11:18 -0500 |
commit | f2f00b3c0474c4776e7a7f0e58162dc67ce2ca18 (patch) | |
tree | 4615daee64ce134bed29a6a3095d73a256f5b438 /packages | |
parent | 01a64613eea1ccf5bdb1c7c9b563c9c9597bab74 (diff) |
p/v/flag: Add reply-to to out-of-date notifications
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/views/flag.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/views/flag.py b/packages/views/flag.py index 33cec006..d7302f72 100644 --- a/packages/views/flag.py +++ b/packages/views/flag.py @@ -3,7 +3,7 @@ import re from django import forms from django.conf import settings from django.contrib.auth.decorators import permission_required -from django.core.mail import send_mail +from django.core.mail import send_mail, EmailMessage from django.db import transaction from django.shortcuts import get_object_or_404, redirect, render from django.template import loader, Context @@ -122,11 +122,13 @@ def flag(request, name, repo, arch): 'pkg': pkg, 'packages': flagged_pkgs, }) - send_mail(subject, + msg = EmailMessage(subject, tmpl.render(ctx), 'Arch Website Notification <nobody@archlinux.org>', toemail, - fail_silently=True) + headers={"Reply-To": email } + ) + msg.send(fail_silently=True) return redirect('package-flag-confirmed', name=name, repo=repo, arch=arch) |