From 04e706e1fcd1d90072e523915da7aad30ad4e099 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 11 Dec 2019 07:35:16 -0800 Subject: [PATCH] Restore FIXME_ variables loop and add FIXME_DISPLAYNAME THis code originally had variable replacement like this, but when the inputs started to be be fully MIME-encoded without any plain text, that stopped working. Inputs we're using have that now, so this works again, and thus this feature is restored. --- scripts/send-supporter-emails-by-category.plx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/send-supporter-emails-by-category.plx b/scripts/send-supporter-emails-by-category.plx index b93cee5..185771e 100644 --- a/scripts/send-supporter-emails-by-category.plx +++ b/scripts/send-supporter-emails-by-category.plx @@ -163,9 +163,11 @@ foreach my $id (@supporterIds) { open(my $sendmailFH, "|-", '/usr/lib/sendmail', '-f', $FROM_ADDDRESS, '-oi', '-oem', '--', @emails); - print $sendmailFH "To: $fullEmailLine\n"; - print $sendmailFH @{$groupLines{$group}}; + foreach my $line (@{$groupLines{$group}}) { + s/FIXME_DISPLAYNAME/$displayName/g; + print $sendmailFH $line; + } close $sendmailFH; usleep(60000); $groupCounts{$group}++;