From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.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#36572: Proposal: mm-default-filename-template Date: Wed, 10 Jul 2019 05:54:24 +0800 Message-ID: <87a7dmx4a7.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="89013"; mail-complaints-to="usenet@blaine.gmane.org" To: 36572@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 10 09:24:20 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hl6xd-000MtQ-RI for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Jul 2019 09:24:18 +0200 Original-Received: from localhost ([::1]:58586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hl6xU-0006Ow-OO for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Jul 2019 03:24:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33811) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hl6xP-0006Od-Dv for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2019 03:24:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hl6xO-0006uH-Ck for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2019 03:24:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54191) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hl6xO-0006tw-1v for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2019 03:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hl6xN-0002w0-Ng; Wed, 10 Jul 2019 03:24:01 -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: 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-Debbugs-Original-To: submit@debbugs.gnu.org (The Gnus Bugfixing Girls + Boys) Original-Received: via spool by submit@debbugs.gnu.org id=B.156274342411253 (code B ref -1); Wed, 10 Jul 2019 07:24:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jul 2019 07:23:44 +0000 Original-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 Original-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 Original-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) Original-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 Original-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 Original-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= Original-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 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrgeehgdeiiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeduudegrdegiedrheeirddvtddvnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddugedrgeeirdehiedrvddtvddprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopehsuhgsmhhithesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:162603 Archived-At: 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