fix file naming in view email html

This commit is contained in:
Ray Andrew 2025-12-04 14:45:13 -06:00
parent 634083d3ae
commit e6dfd840c9
Signed by: rayandrew
SSH key fingerprint: SHA256:XYrYrxF0Z3A72n8P/p6mqPRNQZT22F88XcLsG+kX4xw

View file

@ -3,7 +3,7 @@
emlfile="/tmp/neomutt-email-$$.eml" emlfile="/tmp/neomutt-email-$$.eml"
tmpdir="/tmp/neomutt-email-$$" tmpdir="/tmp/neomutt-email-$$"
tmpfile="$tmpdir/email.html" tmpfile="$tmpdir/email-$$.html"
# Save email from stdin # Save email from stdin
mkdir -p "$tmpdir" mkdir -p "$tmpdir"
@ -115,7 +115,7 @@ else
gsub(/</, "\\&lt;", value) gsub(/</, "\\&lt;", value)
gsub(/>/, "\\&gt;", value) gsub(/>/, "\\&gt;", value)
# Only split To, CC, Bcc addresses (not Date, Subject, From) # Only split To, CC, Bcc addresses (not Date, Subject, From)
if (tolower(header) ~ /^(to|cc|bcc)$/) { if (tolower(header) ~ /^(from|to|cc|bcc)$/) {
n = split_addresses(value, addrs) n = split_addresses(value, addrs)
printf "<p><strong>" header ":</strong> <span class=\"addr-list\">" printf "<p><strong>" header ":</strong> <span class=\"addr-list\">"
if (n > 1) { if (n > 1) {