Merged [2644] from fenner@fenron.net:
Fill in the X-IETF-IDTracker header with the I-D Tracker version number. This fixes #513 - Legacy-Id: 2647 Note: SVN reference [2644] has been migrated to Git commit 77a401f7eb3f06427d3cfae81ec71e4277d828cc
This commit is contained in:
parent
0ffd03cd09
commit
e8de267a1d
|
@ -10,6 +10,7 @@ from django.conf import settings
|
|||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.template.loader import render_to_string
|
||||
from django.template import Context,RequestContext
|
||||
import ietf
|
||||
from ietf.utils import log
|
||||
import sys
|
||||
import time
|
||||
|
@ -163,6 +164,7 @@ def send_mail_mime(request, to, frm, subject, msg, cc=None, extra=None, toUser=N
|
|||
msg['Cc'] = cc
|
||||
msg['Subject'] = subject
|
||||
msg['X-Test-IDTracker'] = (settings.SERVER_MODE == 'production') and 'no' or 'yes'
|
||||
msg['X-IETF-IDTracker'] = ietf.__version__
|
||||
if extra:
|
||||
for k, v in extra.iteritems():
|
||||
msg[k] = v
|
||||
|
|
Loading…
Reference in a new issue