GNU bug report logs -
#39336
[PATCH] gnu: Add emacs-gnus-harvest.
Previous Next
Reported by: Amin Bandali <mab <at> gnu.org>
Date: Wed, 29 Jan 2020 00:12:02 UTC
Severity: normal
Tags: patch
Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39336 in the body.
You can then email your comments to 39336 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#39336
; Package
guix-patches
.
(Wed, 29 Jan 2020 00:12:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Amin Bandali <mab <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 29 Jan 2020 00:12:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#39336
; Package
guix-patches
.
(Sun, 02 Feb 2020 13:49:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 39336 <at> debbugs.gnu.org (full text, mbox):
Hello,
Amin Bandali <mab <at> gnu.org> 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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#39336
; Package
guix-patches
.
(Sun, 02 Feb 2020 18:08:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 39336 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
Nicolas Goaziou <mail <at> nicolasgoaziou.fr> 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
* * *
[0001-gnu-Add-emacs-gnus-harvest.patch (text/x-patch, inline)]
From 6e56509fca510da3a07107d9ebf00c52de0a39b5 Mon Sep 17 00:00:00 2001
From: Amin Bandali <mab <at> gnu.org>
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.
---
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
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21357,3 +21357,42 @@ sense on the @samp{Newsgroups} header, whereas mail 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+))))
--
2.25.0
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
:
You have taken responsibility.
(Thu, 06 Feb 2020 18:24:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Amin Bandali <mab <at> gnu.org>
:
bug acknowledged by developer.
(Thu, 06 Feb 2020 18:24:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 39336-done <at> debbugs.gnu.org (full text, mbox):
Applied as 57f06234c7cb64a1d9c6d3fd1a9837b43b20a7eb.
Closing.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 06 Mar 2020 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 109 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.