From unknown Mon Jun 23 05:58:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#39336 <39336@debbugs.gnu.org> To: bug#39336 <39336@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add emacs-gnus-harvest. Reply-To: bug#39336 <39336@debbugs.gnu.org> Date: Mon, 23 Jun 2025 12:58:11 +0000 retitle 39336 [PATCH] gnu: Add emacs-gnus-harvest. reassign 39336 guix-patches submitter 39336 Amin Bandali severity 39336 normal tag 39336 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 28 19:11:47 2020 Received: (at submit) by debbugs.gnu.org; 29 Jan 2020 00:11:47 +0000 Received: from localhost ([127.0.0.1]:33075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwaxP-0003H5-CG for submit@debbugs.gnu.org; Tue, 28 Jan 2020 19:11:47 -0500 Received: from lists.gnu.org ([209.51.188.17]:39715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwaxN-0003Gy-VE for submit@debbugs.gnu.org; Tue, 28 Jan 2020 19:11:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57388) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwaxJ-0005jz-K1 for guix-patches@gnu.org; Tue, 28 Jan 2020 19:11:45 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_20 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iwaxJ-0005pp-G9 for guix-patches@gnu.org; Tue, 28 Jan 2020 19:11:41 -0500 Received: from cpe00fc8d518353-cm00fc8d518350.cpe.net.cable.rogers.com ([99.228.8.225]:33250 helo=chaman.hitronhub.home) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iwaxI-00034j-AN; Tue, 28 Jan 2020 19:11:40 -0500 From: Amin Bandali To: guix-patches@gnu.org Subject: [PATCH] gnu: Add emacs-gnus-harvest. Date: Tue, 28 Jan 2020 19:10:44 -0500 Message-Id: <20200129001044.11421-1-mab@gnu.org> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: submit Cc: Amin Bandali 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.7 (-) * gnu/packages/emacs-xyz.scm (emacs-gnus-harvest): New variable. --- gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index e834dfffb3..8a955f06bc 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -21237,3 +21237,31 @@ mode-line text (lighter) of major and minor modes.") (description "@code{unkillable-scratch} helps prevent killing buffers matching a given regexp.") (license license:gpl2+)))) + +(define-public emacs-gnus-harvest + ;; Use the latest commit, as there are no tagged releases. + (let ((commit "feda071a87b799bd5d23cacde3ee71f0b166e75d") + (revision "0")) + (package + (name "emacs-gnus-harvest") + (version (git-version "1.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jwiegley/gnus-harvest.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08zb7vc3v3wdxkzgi902vlc5ybfvm8fxrvm5drnwfsjj9873pbcb")))) + (build-system emacs-build-system) + (propagated-inputs + `(("sqlite" ,sqlite))) + (home-page "https://github.com/jwiegley/gnus-harvest") + (synopsis + "Harvest email addresses from read/written Gnus articles") + (description "@code{gnus-harvest} notices email address in every +message or post you read or write, and collects them in a SQLite +database, which can be easily and quickly queried to determine the +completion list. Optionally uses @code{bbdb} and @code{message-x}.") + (license license:gpl3+)))) -- 2.25.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 02 08:48:48 2020 Received: (at 39336) by debbugs.gnu.org; 2 Feb 2020 13:48:48 +0000 Received: from localhost ([127.0.0.1]:39617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyFcF-0001k4-BT for submit@debbugs.gnu.org; Sun, 02 Feb 2020 08:48:48 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:22671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyFcD-0001jt-ND for 39336@debbugs.gnu.org; Sun, 02 Feb 2020 08:48:46 -0500 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 01E02240003; Sun, 2 Feb 2020 13:48:43 +0000 (UTC) From: Nicolas Goaziou To: Amin Bandali Subject: Re: [bug#39336] [PATCH] gnu: Add emacs-gnus-harvest. References: <20200129001044.11421-1-mab@gnu.org> Date: Sun, 02 Feb 2020 14:48:34 +0100 In-Reply-To: <20200129001044.11421-1-mab@gnu.org> (Amin Bandali's message of "Tue, 28 Jan 2020 19:10:44 -0500") Message-ID: <87blqhayml.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39336 Cc: 39336@debbugs.gnu.org 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.7 (-) Hello, Amin Bandali writes: > * gnu/packages/emacs-xyz.scm (emacs-gnus-harvest): New variable. Thank you. > + (propagated-inputs > + `(("sqlite" ,sqlite))) Must "sqlite" be a propagated input? IOW, could you patch source so it can be an input instead? > + (description "@code{gnus-harvest} notices email address in every > +message or post you read or write, and collects them in a SQLite > +database, which can be easily and quickly queried to determine the > +completion list. Optionally uses @code{bbdb} and @code{message-x}.") Would it make sense to add "emacs-message-x" as a propagated input too? Regards, -- Nicolas Goaziou From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 02 13:07:08 2020 Received: (at 39336) by debbugs.gnu.org; 2 Feb 2020 18:07:08 +0000 Received: from localhost ([127.0.0.1]:40515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyJeG-0004T6-Em for submit@debbugs.gnu.org; Sun, 02 Feb 2020 13:07:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36411) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyJeF-0004Sc-0d for 39336@debbugs.gnu.org; Sun, 02 Feb 2020 13:07:07 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iyJe9-0006FB-EP; Sun, 02 Feb 2020 13:07:01 -0500 Received: from cpe00fc8d518353-cm00fc8d518350.cpe.net.cable.rogers.com ([99.228.8.225]:35300 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iyJde-0002Ll-U7; Sun, 02 Feb 2020 13:06:33 -0500 From: Amin Bandali To: Nicolas Goaziou Subject: Re: [bug#39336] [PATCH] gnu: Add emacs-gnus-harvest. Organization: GNU References: <20200129001044.11421-1-mab@gnu.org> <87blqhayml.fsf@nicolasgoaziou.fr> Date: Sun, 02 Feb 2020 13:06:26 -0500 In-Reply-To: <87blqhayml.fsf@nicolasgoaziou.fr> Message-ID: <87h808rhi5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39336 Cc: 39336@debbugs.gnu.org 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.7 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hi, Nicolas Goaziou writes: [...] > > Must "sqlite" be a propagated input? IOW, could you patch source so it > can be an input instead? > Indeed, I see no particular preason to have it as a propagated input. The v2 attached below implements your suggestion of making it an input and patching gnus-harvest.el to use it. > >> + (description "@code{gnus-harvest} notices email address in every >> +message or post you read or write, and collects them in a SQLite >> +database, which can be easily and quickly queried to determine the >> +completion list. Optionally uses @code{bbdb} and @code{message-x}.") > > Would it make sense to add "emacs-message-x" as a propagated input too? > Summarizing our short chat in #guix, I'm a bit torn on this. I would personally probably add message-x to my profile whenever I wanted to use gnus-harvest, but I'm not sure if I'd want to impose that onto others. Especially since message-x, like bbdb, is an optional dependency and is mentioned in the package description. Of course, if it turns out that people really always want message-x automatically pulled in along with gnus-harvest, we could then add it as a propagated input. -amin * * * --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-emacs-gnus-harvest.patch Content-Transfer-Encoding: quoted-printable From=206e56509fca510da3a07107d9ebf00c52de0a39b5 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sun, 2 Feb 2020 12:52:54 -0500 Subject: [PATCH v2] gnu: Add emacs-gnus-harvest. * gnu/packages/emacs-xyz.scm (emacs-gnus-harvest): New variable. =2D-- gnu/packages/emacs-xyz.scm | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 8265b44d88..d302067216 100644 =2D-- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -21357,3 +21357,42 @@ sense on the @samp{Newsgroups} header, whereas mai= l alias expansion makes sense in the @samp{To} and @samp{Cc} headers). When in the message body, = this executes a different function (default: @code{indent-relative}).") (license license:gpl2+)))) + +(define-public emacs-gnus-harvest + (let ((commit "feda071a87b799bd5d23cacde3ee71f0b166e75d") + (revision "0")) + (package + (name "emacs-gnus-harvest") + (version (git-version "1.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jwiegley/gnus-harvest.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08zb7vc3v3wdxkzgi902vlc5ybfvm8fxrvm5drnwfsjj9873pbcb"))= )) + (build-system emacs-build-system) + (inputs + `(("sqlite" ,sqlite))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'build 'patch-exec-paths + (lambda* (#:key inputs #:allow-other-keys) + (let ((sqlite (assoc-ref inputs "sqlite")) + (file "gnus-harvest.el")) + (make-file-writable file) + (emacs-substitute-variables file + ("gnus-harvest-sqlite-program" + (string-append sqlite "/bin/sqlite3")))) + #t))))) + (home-page "https://github.com/jwiegley/gnus-harvest") + (synopsis + "Harvest email addresses from read/written Gnus articles") + (description "@code{gnus-harvest} notices email address in every +message or post you read or write, and collects them in a SQLite +database, which can be easily and quickly queried to determine the +completion list. Optionally uses @code{bbdb} and @code{message-x}.") + (license license:gpl3+)))) =2D-=20 2.25.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEObM8jZRIDS3cwqSYi0Sgzce5VvIFAl43D6IACgkQi0Sgzce5 VvJnow/+KGdue7R4UElEbWg3y6aQ+dNxVKaIyjUKdWABDHYP7VhHWpqKejgsP3Oe VnVs6deXWwUsXwuayRi8IQ+C9C3d5XE/kTIHPOLUKPiFAtZPUyAOxRF6ukk/qzP6 NZGe6oDqH/jb1HvSJSPVDLe2woSTGpiX80gtckxyUuBUvfRbs5VrXIRY8t2LD/8Z esSCvuUpYqk9gr1RFkSV/tRHka2VXu6AQkl8UeGtsQ1SxYDpXTDPCkqHohUO+d7Q +7yRRr4/5ZXWCH5Eptpqc221py5gFEQJxQAD3GimDXPVL4OYSmbCU6XswiRVuy2n z25rSB5Z2NsBREFyitHcDlmvhmwO4cPj433M1t6GVX5JJsOzzkYCAYfCh7ONCs9m RCqptYX/qLWPQS55xE+mZe5ROzaiEJW6uvblQyWi2Tw/wZJSXN++lctMLZ7hsFxX rxE3WD8FByhS6kORKPchp0eUACHhOERP0Z/EgwwH5ja4bMWlH2Fhc3ZOp9hHgKe5 AQSw4ppYAKvPxU2oDzbAStpAH3kDEJCpELIAZFW8Vv+0+58HXjP96cMcmI7pB4vh MFkBdJxe43WeFrC2qWmJtiP696riCD9J2FOwmxH7q9cUfqZazsg08sG5wSBfYJYX s2AByATshCwrIGFM51TX7bBhiYHvcnktEF2I4xyx5RrhGHTdt+I= =Xd2J -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 06 13:23:09 2020 Received: (at 39336-done) by debbugs.gnu.org; 6 Feb 2020 18:23:09 +0000 Received: from localhost ([127.0.0.1]:48449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izlnw-0000d2-Tr for submit@debbugs.gnu.org; Thu, 06 Feb 2020 13:23:09 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:45407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izlnv-0000cu-6C for 39336-done@debbugs.gnu.org; Thu, 06 Feb 2020 13:23:07 -0500 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 3C9EC200006 for <39336-done@debbugs.gnu.org>; Thu, 6 Feb 2020 18:23:04 +0000 (UTC) From: Nicolas Goaziou To: 39336-done@debbugs.gnu.org Subject: Re: [bug#39336] [PATCH] gnu: Add emacs-gnus-harvest. Date: Thu, 06 Feb 2020 19:22:54 +0100 Message-ID: <87h8031sox.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39336-done 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.7 (-) Applied as 57f06234c7cb64a1d9c6d3fd1a9837b43b20a7eb. Closing. From unknown Mon Jun 23 05:58:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 06 Mar 2020 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator