From c500184eeeee923c9308db946b080e2a9707dcbf Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Mon, 9 Dec 2013 19:01:44 +0000 Subject: [PATCH] Script to run from cron to send daily messages to IETF Announce showing the email header field change. This should be run from Jan 6 to Jan 20, after which point we need to deploy analagous changes to the code that constructs last call announcements. This is related to bug #811 Commit ready for merge. - Legacy-Id: 6857 --- ietf/bin/announce-header-change | 37 +++++++++++++++++++ .../templates/utils/header_change_content.txt | 33 +++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100755 ietf/bin/announce-header-change create mode 100644 ietf/templates/utils/header_change_content.txt diff --git a/ietf/bin/announce-header-change b/ietf/bin/announce-header-change new file mode 100755 index 000000000..08eb7c40e --- /dev/null +++ b/ietf/bin/announce-header-change @@ -0,0 +1,37 @@ +#!/usr/bin/env python + +import datetime + +from django.core import management +from django.template.loader import render_to_string + +from ietf import settings +from ietf.utils.mail import send_mail_preformatted +from ietf.utils.mail import send_mail + +management.setup_environ(settings) + +target_date=datetime.date(year=2014,month=1,day=20) + +send_mail(request = None, + to = "IETF-Announce ", + frm = "The IESG ", + subject = "Upcoming change to announcement email header fields (using old header)", + template = "utils/header_change_content.txt", + context = dict(oldornew='old', target_date=target_date), + extra = {'Reply-To' : 'ietf@ietf.org', + 'Sender' : '', + } + ) + +send_mail(request = None, + to = "IETF-Announce:;", + frm = "The IESG ", + subject = "Upcoming change to announcement email header fields (using new header)", + template = "utils/header_change_content.txt", + context = dict(oldornew='new', target_date=target_date), + extra = {'Reply-To' : 'IETF Discussion List ', + 'Sender' : '', + }, + bcc = '', + ) diff --git a/ietf/templates/utils/header_change_content.txt b/ietf/templates/utils/header_change_content.txt new file mode 100644 index 000000000..04d26c0e1 --- /dev/null +++ b/ietf/templates/utils/header_change_content.txt @@ -0,0 +1,33 @@ +{% filter wordwrap:73 %} +We will soon be changing the header fields used in IETF Last Call messages sent to the IETF Announce mailing list. + +This message is to to inform you of the change and allow you to test that you are properly receiving messages using the new header fields. + +We are making this change to make it more likely that replies go to the intended recipients. + +This message will be repeated daily using both the old and new header. +This instance of the message was sent using the {{oldornew}} header. +Please ensure you receive both versions. +These messages will cease, and all Last Call messages to this list will switch to using the new header on or shortly after {{target_date}}. + +The specific changes are: + +{% endfilter %} +Old: + + From: The IESG + To: IETF-Announce + Reply-To: ietf@ietf.org + +New: + + From: The IESG + To: IETF-Announce:; + Reply-To: IETF Discussion List + +and the message sent using the New header fields will also be +Bcc-ed to + +Thanks for your patience as we make this adjustment, + +The IESG