diff mbox series

[bug#39336] gnu: Add emacs-gnus-harvest.

Message ID 20200129001044.11421-1-mab@gnu.org
State Accepted
Headers show
Series [bug#39336] gnu: Add emacs-gnus-harvest. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job

Commit Message

Amin Bandali Jan. 29, 2020, 12:10 a.m. UTC
* gnu/packages/emacs-xyz.scm (emacs-gnus-harvest): New variable.
---
 gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

Comments

Nicolas Goaziou Feb. 2, 2020, 1:48 p.m. UTC | #1
Hello,

Amin Bandali <mab@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 Feb. 6, 2020, 6:22 p.m. UTC | #2
Applied as 57f06234c7cb64a1d9c6d3fd1a9837b43b20a7eb.

Closing.
diff mbox series

Patch

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+))))