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.
This commit is contained in:
Bradley M. Kuhn 2019-12-11 07:35:16 -08:00
parent a1b7dc5458
commit 04e706e1fc

View file

@ -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}++;