From unknown Thu Aug 21 14:52:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36572: Proposal: mm-default-filename-template 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: Wed, 10 Jul 2019 07:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36572 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: 36572@debbugs.gnu.org X-Debbugs-Original-To: submit@debbugs.gnu.org (The Gnus Bugfixing Girls + Boys) Received: via spool by submit@debbugs.gnu.org id=B.156274342411253 (code B ref -1); Wed, 10 Jul 2019 07:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Jul 2019 07:23:44 +0000 Received: from localhost ([127.0.0.1]:34779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hl6x6-0002vR-9Y for submit@debbugs.gnu.org; Wed, 10 Jul 2019 03:23:44 -0400 Received: from bird.elm.relay.mailchannels.net ([23.83.212.17]:40723) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hl6x4-0002vG-HR for submit@debbugs.gnu.org; Wed, 10 Jul 2019 03:23:43 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1A45E8C2248 for ; Wed, 10 Jul 2019 07:23:41 +0000 (UTC) Received: from pdx1-sub0-mail-a35.g.dreamhost.com (100-96-1-113.trex.outbound.svc.cluster.local [100.96.1.113]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A982D8C0A71 for ; Wed, 10 Jul 2019 07:23:40 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a35.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Wed, 10 Jul 2019 07:23:41 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Squirrel-Skirt: 05c002a21792c036_1562743420937_3231686447 X-MC-Loop-Signature: 1562743420936:2889552812 X-MC-Ingress-Time: 1562743420936 Received: from pdx1-sub0-mail-a35.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a35.g.dreamhost.com (Postfix) with ESMTP id 7361C7F077 for ; Wed, 10 Jul 2019 00:23:35 -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; s= jidanni.org; bh=LQiLrSHwrpnlvl9WgCwO+LK4krQ=; b=IxPt5c+7xNOOFHnf UQE0mGgF0gMU7+u4+MMC8srDB8eM+fx2am/jL12cMjkMQ9jX+XGWaU9+iCxGQNfw mrRD17SnWPBCdF6kfZ8vuz3jHhu6nisH/9aPzab+IOUBYpIPtQgjdLVKYDVD17Ys 49+VwlrLctIel1EXBt9X/CDFQCA= Received: from jidanni.org (114-46-56-202.dynamic-ip.hinet.net [114.46.56.202]) (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-a35.g.dreamhost.com (Postfix) with ESMTPSA id BB9977F656 for ; Wed, 10 Jul 2019 00:23:33 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a35 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Date: Wed, 10 Jul 2019 05:54:24 +0800 Message-ID: <87a7dmx4a7.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrgeehgdeiiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeduudegrdegiedrheeirddvtddvnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddugedrgeeirdehiedrvddtvddprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopehsuhgsmhhithesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Don't you hate when you have to fill in the blank to an empty Save MIME part to: ~/ prompt? Sure one can set mm-default-directory, but what about the filename? (Yes, one can cheat a little (setq mm-default-directory "/tmp/vvv-")) Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: jidanni.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [23.83.212.17 listed in list.dnswl.org] 1.1 DATE_IN_PAST_06_12 Date: is 6 to 12 hours before Received: date -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FROM_EXCESS_BASE64 From: base64 encoded unnecessarily X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) Don't you hate when you have to fill in the blank to an empty Save MIME part to: ~/ prompt? Sure one can set mm-default-directory, but what about the filename? (Yes, one can cheat a little (setq mm-default-directory "/tmp/vvv-")) So there should be some filename template variable, nil by default, that will prompt to save to xyz-%d.%s e.g., xyz-001.html depending if that file doesn't exist yet. Even GIMP prompts with Untitled.jpg. Even ... prompts with ... Let's take a look at a typical HTML mail, ! MIME-Version: 1.0 ! Content-Type: text/html; charset=utf-8 ! Content-Transfer-Encoding: base64 So here we can already know we can help the user put an .html at the end of the proposed target filename. Gnus v5.13 GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.4) of 2019-02-03, modified by Debian From unknown Thu Aug 21 14:52:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36572: Proposal: mm-default-filename-template Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 10 Jul 2019 12:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36572 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 36572@debbugs.gnu.org Received: via spool by 36572-submit@debbugs.gnu.org id=B36572.156276123014466 (code B ref 36572); Wed, 10 Jul 2019 12:21:01 +0000 Received: (at 36572) by debbugs.gnu.org; 10 Jul 2019 12:20:30 +0000 Received: from localhost ([127.0.0.1]:34989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlBaI-0003lG-IV for submit@debbugs.gnu.org; Wed, 10 Jul 2019 08:20:30 -0400 Received: from quimby.gnus.org ([80.91.231.51]:36628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlBaG-0003l6-Me for 36572@debbugs.gnu.org; Wed, 10 Jul 2019 08:20:29 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hlBaB-00006U-Ie; Wed, 10 Jul 2019 14:20:26 +0200 From: Lars Ingebrigtsen References: <87a7dmx4a7.5.fsf@jidanni.org> Date: Wed, 10 Jul 2019 14:20:23 +0200 In-Reply-To: <87a7dmx4a7.5.fsf@jidanni.org> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Wed, 10 Jul 2019 05:54:24 +0800") Message-ID: <87o9225beg.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson writes: > Even GIMP prompts with Untitled.jpg. > Even ... prompts with ... > > Let's take a look at a typical HTML mail, > > ! MIME-Version: 1.0 > ! Content-Type: text/html; charset=utf-8 > ! Content-Transfer [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > Even GIMP prompts with Untitled.jpg. > Even ... prompts with ... > > Let's take a look at a typical HTML mail, > > ! MIME-Version: 1.0 > ! Content-Type: text/html; charset=3Dutf-8 > ! Content-Transfer-Encoding: base64 > > So here we can already know we can help the user put an .html at the end > of the proposed target filename. If the MIME part doesn't have a specified file name, then I don't think Emacs can usefully suggest anything as a default name, and it's kinda un-emacsey. If you've opened a buffer and activated html-mode, `C-x C-w' doesn't suggest "Untitled.html" as a file name, but leaves that up to the user. Closing. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 10 08:20:36 2019 Received: (at control) by debbugs.gnu.org; 10 Jul 2019 12:20:36 +0000 Received: from localhost ([127.0.0.1]:34992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlBaN-0003lY-Rc for submit@debbugs.gnu.org; Wed, 10 Jul 2019 08:20:36 -0400 Received: from quimby.gnus.org ([80.91.231.51]:36642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlBaL-0003lP-FH for control@debbugs.gnu.org; Wed, 10 Jul 2019 08:20:33 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hlBaI-00006e-QW for control@debbugs.gnu.org; Wed, 10 Jul 2019 14:20:32 +0200 Date: Wed, 10 Jul 2019 14:20:30 +0200 Message-Id: <87muhm5be9.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #36572 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 36572 wontfix close 36572 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 36572 wontfix close 36572 quit