From 214423934e2b74557e89504eb75d6865011a9eb5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 22 2015 18:00:56 +0000 Subject: Add a X-pagure header to notification emails This would allow filtering for different pagure instances --- diff --git a/pagure/lib/notify.py b/pagure/lib/notify.py index 9fd00f1..c936185 100644 --- a/pagure/lib/notify.py +++ b/pagure/lib/notify.py @@ -206,6 +206,7 @@ def send_email(text, subject, to_mail, if in_reply_to: msg['In-Reply-To'] = '<%s>' % in_reply_to + msg['X-pagure'] = pagure.APP.config['APP_URL'] if procject_name is not None: msg['X-pagure-project'] = project_name