summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-09-08 17:08:21 +0200
committerDan McGee <dan@archlinux.org>2012-09-08 18:11:18 +0200
commitf2f00b3c0474c4776e7a7f0e58162dc67ce2ca18 (patch)
tree4615daee64ce134bed29a6a3095d73a256f5b438 /packages
parent01a64613eea1ccf5bdb1c7c9b563c9c9597bab74 (diff)
downloadarchweb-f2f00b3c0474c4776e7a7f0e58162dc67ce2ca18.tar.gz
archweb-f2f00b3c0474c4776e7a7f0e58162dc67ce2ca18.tar.xz
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.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/views/flag.py b/packages/views/flag.py
index 33cec00..d7302f7 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)