From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#49765: 27.1; add a show mime tree command Date: Wed, 28 Jul 2021 20:52:36 +0800 Message-ID: <87v94ur46j.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13451"; mail-complaints-to="usenet@ciao.gmane.io" To: 49765@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 29 05:30:40 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8wkq-0003Kk-Ef for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Jul 2021 05:30:40 +0200 Original-Received: from localhost ([::1]:60736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8wko-0005Y9-KG for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Jul 2021 23:30:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8wkG-0005Xs-B0 for bug-gnu-emacs@gnu.org; Wed, 28 Jul 2021 23:30:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8wkG-0001eD-1e for bug-gnu-emacs@gnu.org; Wed, 28 Jul 2021 23:30:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m8wkF-00036G-UR; Wed, 28 Jul 2021 23:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 29 Jul 2021 03:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49765 X-GNU-PR-Package: emacs,gnus X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162752938111831 (code B ref -1); Thu, 29 Jul 2021 03:30:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Jul 2021 03:29:41 +0000 Original-Received: from localhost ([127.0.0.1]:56184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8wjt-00034k-6I for submit@debbugs.gnu.org; Wed, 28 Jul 2021 23:29:41 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8wjl-000342-TW for submit@debbugs.gnu.org; Wed, 28 Jul 2021 23:29:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8wjl-0005VY-Js for bug-gnu-emacs@gnu.org; Wed, 28 Jul 2021 23:29:33 -0400 Original-Received: from butterfly.birch.relay.mailchannels.net ([23.83.209.27]:37767) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8wjj-000166-Bs for bug-gnu-emacs@gnu.org; Wed, 28 Jul 2021 23:29:33 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E4E781826B1 for ; Thu, 29 Jul 2021 03:29:27 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a34.g.dreamhost.com (100-96-16-95.trex-nlb.outbound.svc.cluster.local [100.96.16.95]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 64F81182368 for ; Thu, 29 Jul 2021 03:29:27 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a34.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.16.95 (trex/6.3.3); Thu, 29 Jul 2021 03:29:27 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Invention-Tangy: 5faf5aa744813e9f_1627529367734_1147389031 X-MC-Loop-Signature: 1627529367734:2637540371 X-MC-Ingress-Time: 1627529367734 Original-Received: from pdx1-sub0-mail-a34.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a34.g.dreamhost.com (Postfix) with ESMTP id 1A9418B8E2 for ; Wed, 28 Jul 2021 20:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=7RhajY9pmwzI3cx7UI Y3JMD1oPM=; b=pmP6t9211m1OJayxpzTnzvqL4eExYouAdOk+Dqhn0MKXpEn8F5 O0nTHvj1a6RUIa+RufVE48klqiB/DM4/gEVnzM80ro75QVavbacgJLLwBK/+Yf5c /O4oN0L9imLGTQwrFK/iUsR0fygB3eYZWzWymA5tlWZCLP8Est9+8ob4s= Original-Received: from jidanni.org (111-246-96-185.dynamic-ip.hinet.net [111.246.96.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a34.g.dreamhost.com (Postfix) with ESMTPSA id 96BC37ED50 for ; Wed, 28 Jul 2021 20:29:26 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a34 Received-SPF: pass client-ip=23.83.209.27; envelope-from=jidanni@jidanni.org; helo=butterfly.birch.relay.mailchannels.net X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_12_24=1.049, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210850 Archived-At: Mutt's has a handy v command that shows the mime structure of a message: I 1 [multipa/alternativ, 7bitC?, >, 55K] I 2 =E2=94=9C=E2=94=80> [text/plain, quotedC?, utf-= 8>, 2.1K] I 3 =E2=94=94=E2=94=80> [text/html, quotedC?, utf-8= >, 52K] Gnus has commands to buttonize, etc. But none show the tree structure. OK, Gnus has C-d: gnus-summary-enter-digest-group, which shows: . 1 210727||=E5=8F=B0=E9=9B=BB=E9=9B=BB=E5=AD=90=E5=B8=B3=E5=96=AE=E6=9C= =8D:<* mixed> =E5=8F=B0=E9=9B=BBe-Bill 110=E5=B9=B47=E6=9C=88=E9=9B=BB=E8= =B2=BB=E7=B9=B3=E8=B2=BB=E6=86=91=E8=AD=89(=E9=9B=BB=E8=99=9F=EF=BC=9A074= 8730=E7=AD=89) . 1 210727||=E5=8F=B0=E9=9B=BB=E9=9B=BB=E5=AD=90=E5=B8=B3=E5=96=AE=E6=9C= =8D:<1.* alternative> . 1 210727||=E5=8F=B0=E9=9B=BB=E9=9B=BB=E5=AD=90=E5=B8=B3=E5=96=AE=E6=9C= =8D:<1.1 text> . 1 210727||=E5=8F=B0=E9=9B=BB=E9=9B=BB=E5=AD=90=E5=B8=B3=E5=96=AE=E6=9C= =8D:<1.2 html> . 1 210727||=E5=8F=B0=E9=9B=BB=E9=9B=BB=E5=AD=90=E5=B8=B3=E5=96=AE=E6=9C= =8D:<2 pdf> "07487301100723RD.pdf" . 1 210727||=E5=8F=B0=E9=9B=BB=E9=9B=BB=E5=AD=90=E5=B8=B3=E5=96=AE=E6=9C= =8D:<3 pdf> "07488871100723RD.pdf" . 1 210727||=E5=8F=B0=E9=9B=BB=E9=9B=BB=E5=AD=90=E5=B8=B3=E5=96=AE=E6=9C= =8D:<4 pdf> "=E9=A0=98=E7=8D=8E=E6=94=B6=E6=93=9A=E8=81=AF.pdf" Which apparently relies on numbers to indicate the structure. Nice, but maybe indenting could also be used. Also it seems this C-d command was not intended to show mime structures, and I am just lucky it did for this message. So a specialized command is needed. Else sometimes it just shows: . 1 210727||DreamHost :You to your 9-to-5 job: =E2=80=9CWe need to = talk=E2=80=A6=E2=80=9D . 1 210727||DreamHost :You to your 9-to-5 job: =E2=80=9CWe need to = talk=E2=80=A6=E2=80=9D . 1 210727||DreamHost :You to your 9-to-5 job: =E2=80=9CWe need to = talk=E2=80=A6=E2=80=9D (For the message at the top of this bug report.)