From: "Thomas Weißschuh" <thomas@t-8ch.de>
To: meta@public-inbox.org
Cc: "Thomas Weißschuh" <thomas@t-8ch.de>
Subject: [PATCH 3/3] mbox: Specify encoding for raw message display
Date: Sun, 24 Oct 2021 23:43:37 +0200 [thread overview]
Message-ID: <20211024214337.161779-3-thomas@t-8ch.de> (raw)
In-Reply-To: <20211024214337.161779-2-thomas@t-8ch.de>
---
lib/PublicInbox/Mbox.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm
index dede4825..1e30e4ea 100644
--- a/lib/PublicInbox/Mbox.pm
+++ b/lib/PublicInbox/Mbox.pm
@@ -58,10 +58,10 @@ sub res_hdr ($$) {
my @hdr = ('Content-Type');
if ($ctx->{ibx}->{obfuscate}) {
# obfuscation is stupid, but maybe scrapers are, too...
- push @hdr, 'application/mbox';
+ push @hdr, 'application/mbox; charset=UTF-8';
$fn .= '.mbox';
} else {
- push @hdr, 'text/plain';
+ push @hdr, 'text/plain; charset=UTF-8';
$fn .= '.txt';
}
push @hdr, 'Content-Disposition', "inline; filename=$fn";
--
2.33.1
next prev parent reply other threads:[~2021-10-24 21:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-24 21:43 [PATCH 1/3] t/watch_maildir: support non-master default branch Thomas Weißschuh
2021-10-24 21:43 ` [PATCH 2/3] t/git: " Thomas Weißschuh
2021-10-24 21:43 ` Thomas Weißschuh [this message]
2021-10-25 0:08 ` [PATCH 3/3] mbox: Specify encoding for raw message display Eric Wong
2021-10-25 5:42 ` Thomas Weißschuh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211024214337.161779-3-thomas@t-8ch.de \
--to=thomas@t-8ch.de \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).