From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 5C7D46DE1075 for ; Wed, 10 Apr 2019 06:21:40 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -1.01 X-Spam-Level: X-Spam-Status: No, score=-1.01 tagged_above=-999 required=5 tests=[AWL=-0.310, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BGQ7wq51tpC8 for ; Wed, 10 Apr 2019 06:21:39 -0700 (PDT) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by arlo.cworth.org (Postfix) with ESMTPS id 265C16DE0F7A for ; Wed, 10 Apr 2019 06:21:38 -0700 (PDT) X-Originating-IP: 92.169.116.19 Received: from bababa (lfbn-1-4117-19.w92-169.abo.wanadoo.fr [92.169.116.19]) (Authenticated sender: pierre@atlas.engineer) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 9430D20013; Wed, 10 Apr 2019 13:21:36 +0000 (UTC) From: Pierre Neidhardt To: David Edmondson , notmuch@notmuchmail.org Subject: Re: Save multiple / all attachments without prompting (unless overwriting) In-Reply-To: References: <87h8bxlxl4.fsf@bababa.i-did-not-set--mail-host-address--so-tickle-me> <87d0lub11i.fsf@ambrevar.xyz> Date: Wed, 10 Apr 2019 15:21:36 +0200 Message-ID: <87sguq9esf.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Apr 2019 13:21:40 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi David, Thanks for the suggestion! > You might be able to avoid mm altogether and go direct to notmuch to > save the parts, which might make things a bit easier to control from the > front end. > > Iterate over the buttons in the region, examining them to see if they > are attachments, then provoke the 'save' method (which might need some > surgery to use a default directory and avoid prompting). Unless I'm misunderstood, it seems that notmuch dispatches all the saving to `mm-save-part'. I don't see how to avoid mm without re-implementing a big part of mm. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlyt7eAACgkQm9z0l6S7 zH8xnQf/dxYWoBFRKp5o9irqy0Q6OdfCtxNu2me+CFJV2BneuJOvAiSuhhZcVVxV QPBcaNA+U40CJIx1UhHHAq5xt/zd5/Qx3mw5u3XmzUwbwtYtN9Mmj8HXVRWn2fdn HxJGZUO0F1tWxbm/Mzfgt522KFOwhuEwXkljLwKdlpnCqVfVT/y2M1/9qstbSULT Ynx2qG4kW+t1atTusfS/3vZiqNJ0+EXp0Ct0hoNGMMayt5StBU3X8m4A26MzNVSw Hn2b4Fnvz8Y+5DW+MDw0TilsEONPtgKklIywUWhfjsChtts6e42pLr/T5OkeXCAC 35Cux5Q7RmOoH6tl3C8pSYHUJl1+0w== =tP23 -----END PGP SIGNATURE----- --=-=-=--