unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#32294] [PATCH] gnu: Add imapfilter.
@ 2018-07-27 16:19 Jelle Licht
  2018-07-29 14:00 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Jelle Licht @ 2018-07-27 16:19 UTC (permalink / raw)
  To: 32294

* gnu/packages/mail.scm (imapfilter): New variable.
---
 gnu/packages/mail.scm | 44 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 3d7b0e463..fc02fa50e 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -2554,3 +2554,47 @@ and binaries. It supports offline reading, scoring and killfiles, yEnc, NZB,
 PGP handling, multiple servers, and secure connections.")
     ;; License of the docs: fdl-1.1; Others: gpl2.
     (license (list fdl1.1+ gpl2))))
+
+(define-public imapfilter
+  (package
+    (name "imapfilter")
+    (version "2.6.11")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append "https://github.com/lefcha/imapfilter/archive/"
+                       "v" version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1yslvwr3w5fnl06gfrp0lim8zdlasx3cvgd2fsqi0695xnb9bsms"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f
+       #:make-flags
+       (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
+             "CC=gcc")
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (add-after 'unpack 'fix-include-path
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((pcre (assoc-ref inputs "pcre")))
+               (substitute* "src/Makefile"
+                 (("INCDIRS =")
+                  (string-append "INCDIRS ="
+                                 "-I" pcre "/include")))
+               #t))))))
+    (native-inputs
+     `(("lua" ,lua)
+       ("pcre" ,pcre)
+       ("openssl" ,openssl)))
+    (home-page "https://github.com/lefcha/imapfilter")
+    (synopsis "IMAP mail filtering utility")
+    (description "@code{IMAPFilter} is a mail filtering utility.  It connects
+to remote mail servers using IMAP, sends searching queries to the server and
+processes mailboxes based on the results.  It can be used to delete, copy,
+move, flag, etc. messages residing in mailboxes at the same or different mail
+servers.  The 4rev1 and 4 versions of IMAP are supported.")
+    (license license:expat)))
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#32294] [PATCH] gnu: Add imapfilter.
  2018-07-27 16:19 [bug#32294] [PATCH] gnu: Add imapfilter Jelle Licht
@ 2018-07-29 14:00 ` Ludovic Courtès
  2018-08-03  1:21   ` bug#32294: " Jelle Licht
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2018-07-29 14:00 UTC (permalink / raw)
  To: Jelle Licht; +Cc: 32294

Hi,

Jelle Licht <jlicht@fsfe.org> skribis:

> * gnu/packages/mail.scm (imapfilter): New variable.

[...]

> +    (home-page "https://github.com/lefcha/imapfilter")
> +    (synopsis "IMAP mail filtering utility")
> +    (description "@code{IMAPFilter} is a mail filtering utility.  It connects

I think you can omit @code here (since “IMAPFilter” is a proper name and
not an identifier or command name), but otherwise LGTM.  Thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#32294: [PATCH] gnu: Add imapfilter.
  2018-07-29 14:00 ` Ludovic Courtès
@ 2018-08-03  1:21   ` Jelle Licht
  0 siblings, 0 replies; 3+ messages in thread
From: Jelle Licht @ 2018-08-03  1:21 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 32294-done

[-- Attachment #1: Type: text/plain, Size: 622 bytes --]

2018-07-29 16:00 GMT+02:00 Ludovic Courtès <ludo@gnu.org>:

> Hi,
>
> Jelle Licht <jlicht@fsfe.org> skribis:
>
> > * gnu/packages/mail.scm (imapfilter): New variable.
>
> [...]
>
> > +    (home-page "https://github.com/lefcha/imapfilter")
> > +    (synopsis "IMAP mail filtering utility")
> > +    (description "@code{IMAPFilter} is a mail filtering utility.  It
> connects
>
> I think you can omit @code here (since “IMAPFilter” is a proper name and
> not an identifier or command name), but otherwise LGTM.  Thanks!
>
> Ludo’.
>

done, and pushed as ae7c1c3704187405a1c4e7c039bf70df9327e6a6

[-- Attachment #2: Type: text/html, Size: 1197 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-03  1:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-27 16:19 [bug#32294] [PATCH] gnu: Add imapfilter Jelle Licht
2018-07-29 14:00 ` Ludovic Courtès
2018-08-03  1:21   ` bug#32294: " Jelle Licht

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).