From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yFUNKiK9tGCrYgAAgWs5BA (envelope-from ) for ; Mon, 31 May 2021 12:40:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mOlnJSK9tGBhAwAAB5/wlQ (envelope-from ) for ; Mon, 31 May 2021 10:40:34 +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 DA14211E8E for ; Mon, 31 May 2021 12:40:33 +0200 (CEST) Received: from localhost ([::1]:35248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnfLU-0001Hn-Hi for larch@yhetil.org; Mon, 31 May 2021 06:40:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnfL7-0001HP-B3 for emacs-orgmode@gnu.org; Mon, 31 May 2021 06:40:09 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41309) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnfL5-0002s5-1J for emacs-orgmode@gnu.org; Mon, 31 May 2021 06:40:09 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 9BC1A2400FF for ; Mon, 31 May 2021 12:40:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1622457603; bh=ABWAiz6rGt1wM8PTqqo5yi/jFJLao98rS/T4yiBS0lQ=; h=From:To:Subject:Date:From; b=JvMv/CA9U6RFKbJ3TB+JXJixMXiee39IKRKYe1PAxdMhzU7x8eqecBl1hwFmGjfdU iqPFneFadxFUORf6tZZUF4B4J+90TQyROOtLrxFHjdeqyLz3peGA16F8p4OJ6+tWUS v8UDqwja303bSI4gGn9fXHU6H8aenB1WO9toOL6uLEqAwdeLrSGqX4u8EWQ3//U9hV BmXYAgw7Wxj8er6Qp+xH0jbJyy2+s/G7aGJCYrAXI9GfEeSImWPr2d3TPt/ZcV+A7l 0NBIBmQsoCiyMXRrnKRO/Z5T2hEK7AlMwiRiWVrFA2mcDKCtqJqaIcan7A+jKHCDRM NgNIS7GqZpFWQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FtsHk4l6Fz9rxL for ; Mon, 31 May 2021 12:40:02 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: An attempt to convert Elfeed entries (with parameters) to Org trees Date: Mon, 31 May 2021 10:40:01 +0000 Message-ID: <87bl8rxk3i.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622457634; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=8U54lGC6KEZhoio0TB7bgDV4dAGUxnLfq0IyhkvvMlk=; b=Zegbb9zxgREKed1z2qwy3dvJCOo7iAYGgxWlE73L787lwpF9KA3ZFtQB3IglAxybh3KxzE ijFHScRTtBp4VP73zWDrXg91Dq6b0+CAlhGpe4yNiJSHeWSz0aOaJZRTO7BqSY6lkkGhAg GLNATPpDx6PsvBid0oO+obhpuaUoJPy5TFLZrk5MVENbdwlN4Z7oZjOh7d8CioQX6N1AUt gbYWUkkMmU5baNCvrWpFA2Bf/Mf0iIARa2K+x1GYNp3Y1skEEbSM7mzq9k3bU25VhRiB2A yfmM+gX3hlScvGbHqRnw0joJjKJII9h5+5zmc2EUbVueMOTgE8rLQbCqP1/vKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622457634; a=rsa-sha256; cv=none; b=YcUFLwiTES/IJKP1TCLVuIqvqiBEXdex+Ct+P4G6qyJjLxm9vkdsU/JgRbVdJj1tXDZXHE fO138X8JS7kDjc7jDseCa/Zx+BJRLjKoUifgDXKwTMoq4cqy/+C2Q+Qm7BujejsDL5gaj3 88MZp3LlWJnwl9zIdDudOcoEWUT7Hch0+X3ntnz3pqeRWwlx0cWtGdBcYDdktXz5rBfbhs 0NF5On9He4CENgM734hsVudCwaXQ/RGCsucw2YxYd04EN+vfJea2BMqkcC48EL1ayCMF10 o6Wqj6octZcof3CU+S8MePlQIfgrIIQBPW1Ior2w5tUzP76uOKmztRtnyHON0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="JvMv/CA9"; dmarc=pass (policy=none) header.from=posteo.net; 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-Migadu-Spam-Score: -1.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="JvMv/CA9"; dmarc=pass (policy=none) header.from=posteo.net; 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-Migadu-Queue-Id: DA14211E8E X-Spam-Score: -1.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: Jdt7AFJZoXsf --=-=-= Content-Type: text/plain Hi all, I like to keep up to date with new LaTeX packages that are being uploaded to CTAN and I'm subscribed to the CTAN news feed. I always use Elfeed to check my subscriptions, but it occurred to me to write a function (with org-map-entries) to be able to pass Elfeed entries (with certain parameters) to Org trees. For example, something like: * New on CTAN :PROPERTIES: :ELFEED: @6-months-ago +TeX New on CTAN :END: Or, for /This Month in Org/: * /This Month in Org/ :PROPERTIES: :ELFEED: @3-months-ago +tmio :END: And then run `my-org/insert-entries-elfeed'. If anyone wants to try it, I attach an Org document with the code, which is very preliminary, not too fancy and quite improvable. Feedback welcome! :-) Best regards, Juan Manuel --=-=-= Content-Type: application/vnd.lotus-organizer Content-Disposition: attachment; filename=elfeed-to-org.org Content-Transfer-Encoding: base64 KiBDb2RlCiAgOlBST1BFUlRJRVM6CiAgOkNSRUFURUQ6ICAgWzIwMjEtMDUtMzEgbHVuIDExOjI3 XQogIDpFTkQ6CgpEYXNoIHBhY2thZ2UgaXMgcmVxdWlyZWQuIEFuZCwgb2YgY291cnNlLCBFbGZl ZWQuCgojK2JlZ2luX3NyYyBlbWFjcy1saXNwCihyZXF1aXJlICdkYXNoKQoocmVxdWlyZSAnZWxm ZWVkKQojK2VuZF9zcmMKClR3byB2YXJpY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