From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OJsGHFM40F7WcwAA0tVLHw (envelope-from ) for ; Thu, 28 May 2020 22:16:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OHrlF1M40F7pOQAAB5/wlQ (envelope-from ) for ; Thu, 28 May 2020 22:16:51 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 57624940363 for ; Thu, 28 May 2020 22:16:50 +0000 (UTC) Received: from localhost ([::1]:58478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeQpU-0005m9-0D for larch@yhetil.org; Thu, 28 May 2020 18:16:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeQoe-0005ij-2C for emacs-orgmode@gnu.org; Thu, 28 May 2020 18:15:56 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:49909) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeQod-0000kf-2P for emacs-orgmode@gnu.org; Thu, 28 May 2020 18:15:55 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 76E0A5C00CD; Thu, 28 May 2020 18:15:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 28 May 2020 18:15:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imapmail.org; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm3; bh=jJa3ZVTWgUF6d7U4Mf2MZLwCn3 ZPXN4+UNJPqtyJ3Q0=; b=Y6TfUje6tDoXv0rdqySUoiIK71JbYHwDD7fz8ir6cm KyXLJejfzV874LDAO9SSkW2BZRrDqB24snR0gbzZeiLWUMlCjuUE43bleyZEA68i XRQVL3LfSPak7P89Jnk/KL+s+09vzrOWWv8kEwTZkjo25oBZ96gLO9fH4UV8OrEu p/7cbh6d2A4JYExM8BG9q0sf4XM06o/jBO69r2rDLQhmhoXDPkG82Td5xY8vz5Mr suKdKJ4M9/9rqNGRmtBipBousaRi/WsWR/gMYzQkHPn2eMmlSOSrDbXuOC0IUeuD DZG7N5Sbg7XtAnypWiO2nie9CU8rihkGXooYffCeN1rg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=jJa3ZV TWgUF6d7U4Mf2MZLwCn3ZPXN4+UNJPqtyJ3Q0=; b=wWSgp79jU29I6HoBIeOCdK ncg99CPPWQ1iPDKfgnPpn/ssV64Wkapu87AkZtFR6ULqOSFiCefXmEXo2JK1I2FI zjFNJzzNB810jMnF0XcJvrAlq7MtJMT+ewWpeyFAvLe9b6sGahJSP+ZltdmJahUr 14GzR5OT2LNxUrbBeCTqh4+k3gx3Dt+2nFQ8o1VjSsMNpdKPoYeyVnyz86/JXX2U 2fVk3fiFQ4xw/yn+x2coBMQVFa+ZwUTfwZhyz2FF+RUA2hOWbOj5LpJeiQroT+KL FEipuU2jcVJOERwljk9YzSlUFsEjRjPYXMiECxZRwoOzj0FUtNixtNsLn7R7Bl8g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddvjedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepofgrthhthhgv ficunfhunhguihhnuceomhgulhesihhmrghpmhgrihhlrdhorhhgqeenucggtffrrghtth gvrhhnpeevffegjeffhedvgfevgfelvddvjeeigeffgfevuedvleekiedvgffggfegueeh heenucfkphepjeeirdduiedrudefhedrudduleenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmughlsehimhgrphhmrghilhdrohhrgh X-ME-Proxy: Received: from localhost (c-76-16-135-119.hsd1.il.comcast.net [76.16.135.119]) by mail.messagingengine.com (Postfix) with ESMTPA id 0A6D330618B7; Thu, 28 May 2020 18:15:51 -0400 (EDT) From: Matthew Lundin To: Ihor Radchenko , numbchild@gmail.com, Org Mode Subject: Re: [Feature] add a new org-attach dispatcher command to offline save web page In-Reply-To: <875zcgugq2.fsf@localhost> References: <87sgflu2gw.fsf@gmail.com> <87r1v4wyy4.fsf@fastmail.fm> <87r1v4bodg.fsf@localhost> <874ks0vxpk.fsf@fastmail.fm> <875zcgugq2.fsf@localhost> Date: Thu, 28 May 2020 17:15:45 -0500 Message-ID: <87blm71zam.fsf@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.26; envelope-from=mdl@imapmail.org; helo=out2-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/28 18:15:52 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=imapmail.org header.s=fm3 header.b=Y6TfUje6; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=wWSgp79j; dmarc=pass (policy=none) header.from=imapmail.org; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: oucjfsSfhYTo Ihor Radchenko writes: > My view on this is bare-bones download, in a spirit of org-attach > itself. There is already 'url method in org-attach-attach, but it is > hard-coded to url-retrieve-synchronously. It would be handy if user > could configure alternative retrievers (like monolith, wget, curl, or > some user-defined function). Thanks. I'm learning about this for the first time after using org-attach for years! I have no idea why I've never noticed it. > Note that monolith does not crawl the website. It only collects > everything needed to show the page as you see it in browser into single > html file. This behaviour is what one expects to obtain when saving a > full web-page from browser. Agreed. This looks like the way to go. Keep it simple and abstract the call to url-copy-file to allow the user to configure the command for downloading the page/file. Best, Matt