From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id A3B3D1F670 for ; Sun, 24 Oct 2021 21:43:59 +0000 (UTC) From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=t-8ch.de; s=mail; t=1635111836; bh=CnucuSh9qc7iCSoRSM8NiiwUiIFDCGEn4rdloLesNzU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FGnU0OIAX9ylk5CImESr8YWnomD34eah+9h/qx7an8slJAejIamnV1e7k+XtHtYAd BfoeSjySgfO58EQjVrzypG7HkbTaxcirAKjvFdqcJXSZgQp4eYfGBKHp4Rl2hHeCcB NTMk9TVLpERu7vm4BQoWh8weKmmrjJw8hAkVcEgg= To: meta@public-inbox.org Cc: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Subject: [PATCH 3/3] mbox: Specify encoding for raw message display Date: Sun, 24 Oct 2021 23:43:37 +0200 Message-Id: <20211024214337.161779-3-thomas@t-8ch.de> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211024214337.161779-2-thomas@t-8ch.de> References: <20211024214337.161779-1-thomas@t-8ch.de> <20211024214337.161779-2-thomas@t-8ch.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: --- 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