Commit | Line | Data |
---|---|---|
a661e420 | 1 | ;;; GNU Guix --- Functional package management for GNU |
05aa576b | 2 | ;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org> |
722ec722 | 3 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> |
29a7c98a | 4 | ;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net> |
98e9e22f | 5 | ;;; Copyright © 2014 Sou Bunnbu <iyzsong@gmail.com> |
f58f767b | 6 | ;;; Copyright © 2014 Julien Lepiller <julien@lepiller.eu> |
66cc3ab2 | 7 | ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> |
17dd4329 | 8 | ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org> |
f6292baf | 9 | ;;; Copyright © 2015, 2016 Eric Bavier <bavier@member.fsf.org> |
2e88d113 | 10 | ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr> |
21565719 | 11 | ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il> |
34dd26af | 12 | ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
8a75c589 | 13 | ;;; Copyright © 2016 Al McElrath <hello@yrns.org> |
823e2ed4 | 14 | ;;; Copyright © 2016 Leo Famulari <leo@famulari.name> |
e90819c4 | 15 | ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org> |
99404fff | 16 | ;;; Copyright © 2016 Alex Kost <alezost@gmail.com> |
a2cb16b0 | 17 | ;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com> |
6d3dda4f | 18 | ;;; Copyright © 2016 ng0 <ngillmann@runbox.com> |
24262239 | 19 | ;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org> |
e0d7b421 | 20 | ;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net> |
5d87088c | 21 | ;;; Copyright © 2016 John Darrington <jmd@gnu.org> |
7a6213cb | 22 | ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com> |
a661e420 LC |
23 | ;;; |
24 | ;;; This file is part of GNU Guix. | |
25 | ;;; | |
26 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
27 | ;;; under the terms of the GNU General Public License as published by | |
28 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
29 | ;;; your option) any later version. | |
30 | ;;; | |
31 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
32 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
33 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
34 | ;;; GNU General Public License for more details. | |
35 | ;;; | |
36 | ;;; You should have received a copy of the GNU General Public License | |
37 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
38 | ||
1fdd3ee2 | 39 | (define-module (gnu packages mail) |
59a43334 | 40 | #:use-module (gnu packages) |
d983a14f | 41 | #:use-module (gnu packages autotools) |
d2938d59 | 42 | #:use-module (gnu packages base) |
e8435c4d | 43 | #:use-module (gnu packages backup) |
ee886454 | 44 | #:use-module (gnu packages bash) |
f8ae32a2 | 45 | #:use-module (gnu packages bison) |
f58f767b | 46 | #:use-module (gnu packages curl) |
4fd6bf53 | 47 | #:use-module (gnu packages cyrus-sasl) |
81ce19f4 | 48 | #:use-module (gnu packages databases) |
d983a14f | 49 | #:use-module (gnu packages dejagnu) |
8b53366c | 50 | #:use-module (gnu packages dns) |
7a6213cb | 51 | #:use-module (gnu packages documentation) |
d2938d59 | 52 | #:use-module (gnu packages emacs) |
e8435c4d | 53 | #:use-module (gnu packages enchant) |
e8435c4d | 54 | #:use-module (gnu packages ghostscript) |
d2938d59 | 55 | #:use-module (gnu packages glib) |
e8435c4d | 56 | #:use-module (gnu packages gnome) |
524e1df6 | 57 | #:use-module (gnu packages gnupg) |
152ffe7c | 58 | #:use-module (gnu packages groff) |
d6e941bc | 59 | #:use-module (gnu packages gsasl) |
e8435c4d | 60 | #:use-module (gnu packages gtk) |
1ffa7090 | 61 | #:use-module (gnu packages guile) |
f8ae32a2 | 62 | #:use-module (gnu packages flex) |
e8435c4d | 63 | #:use-module (gnu packages libcanberra) |
8b53366c | 64 | #:use-module (gnu packages libevent) |
d6e941bc | 65 | #:use-module (gnu packages libidn) |
d983a14f | 66 | #:use-module (gnu packages linux) |
152ffe7c | 67 | #:use-module (gnu packages lua) |
d983a14f | 68 | #:use-module (gnu packages m4) |
1ffa7090 | 69 | #:use-module (gnu packages ncurses) |
66cc3ab2 | 70 | #:use-module (gnu packages pcre) |
13f04f48 | 71 | #:use-module (gnu packages perl) |
3919a31a | 72 | #:use-module (gnu packages python) |
1ffa7090 | 73 | #:use-module (gnu packages readline) |
d2938d59 | 74 | #:use-module (gnu packages search) |
1ffa7090 | 75 | #:use-module (gnu packages texinfo) |
681a6588 MW |
76 | #:use-module (gnu packages compression) |
77 | #:use-module (gnu packages glib) | |
78 | #:use-module (gnu packages pkg-config) | |
a7e59c50 | 79 | #:use-module (gnu packages flex) |
1bd3f849 | 80 | #:use-module (gnu packages gdb) |
6cf27c89 | 81 | #:use-module (gnu packages man) |
1bd3f849 | 82 | #:use-module (gnu packages samba) |
6cf27c89 | 83 | #:use-module (gnu packages screen) |
a7fd7b68 | 84 | #:use-module (gnu packages tls) |
be0c5733 DM |
85 | #:use-module (gnu packages networking) |
86 | #:use-module (gnu packages web) | |
f58f767b | 87 | #:use-module (gnu packages xml) |
e8435c4d | 88 | #:use-module (gnu packages xorg) |
d983a14f | 89 | #:use-module ((guix licenses) |
61c30e9d | 90 | #:select (gpl2 gpl2+ gpl3 gpl3+ lgpl2.1 lgpl2.1+ lgpl3+ |
24262239 | 91 | non-copyleft (expat . license:expat) bsd-3 |
8b53366c | 92 | public-domain bsd-4 isc (openssl . license:openssl) |
93 | bsd-2)) | |
a661e420 LC |
94 | #:use-module (guix packages) |
95 | #:use-module (guix download) | |
f8ae32a2 | 96 | #:use-module (guix git-download) |
29a7c98a | 97 | #:use-module (guix utils) |
681a6588 | 98 | #:use-module (guix build-system gnu) |
ebda902f | 99 | #:use-module (guix build-system perl) |
24262239 CL |
100 | #:use-module (guix build-system python) |
101 | #:use-module (guix build-system trivial)) | |
a661e420 LC |
102 | |
103 | (define-public mailutils | |
104 | (package | |
105 | (name "mailutils") | |
106 | (version "2.2") | |
107 | (source (origin | |
108 | (method url-fetch) | |
109 | (uri (string-append "mirror://gnu/mailutils/mailutils-" | |
110 | version ".tar.bz2")) | |
111 | (sha256 | |
112 | (base32 | |
01eafd38 | 113 | "0szbqa12zqzldqyw97lxqax3ja2adis83i7brdfsxmrfw68iaf65")) |
fc1adab1 | 114 | (patches (search-patches "m4-gets-undeclared.patch")))) |
a661e420 LC |
115 | (build-system gnu-build-system) |
116 | (arguments | |
117 | '(;; TODO: Add `--with-sql'. | |
a661e420 LC |
118 | #:phases (alist-cons-before |
119 | 'build 'pre-build | |
120 | (lambda _ | |
121 | ;; Use Guile 2.0's public API. | |
122 | (substitute* "libmu_scm/mu_message.c" | |
123 | (("scm_i_string_length") | |
124 | "scm_c_string_length")) | |
125 | ||
126 | ;; This file should be generated to use the right | |
127 | ;; value of $(libdir) et al. | |
128 | (delete-file "libmu_scm/mailutils.scm") | |
129 | ||
130 | ;; Use the right file name for `cat'. | |
131 | (substitute* "testsuite/lib/mailutils.exp" | |
132 | (("/bin/cat") | |
133 | (which "cat")))) | |
134 | %standard-phases) | |
135 | #:parallel-tests? #f)) | |
136 | (inputs | |
137 | `(("dejagnu" ,dejagnu) | |
138 | ("m4" ,m4) | |
139 | ("texinfo" ,texinfo) | |
140 | ("guile" ,guile-2.0) | |
141 | ("gnutls" ,gnutls) | |
142 | ("ncurses" ,ncurses) | |
eb8cc645 MW |
143 | |
144 | ;; With Readline 6.3, examples/pop3client.c fails to build because it | |
145 | ;; uses the now undefined 'CPPFunction' type. | |
146 | ("readline" ,readline-6.2) | |
147 | ||
a661e420 | 148 | ("linux-pam" ,linux-pam) |
3246cc91 | 149 | ("libltdl" ,libltdl) |
01eafd38 | 150 | ("gdbm" ,gdbm))) |
a661e420 | 151 | (home-page "http://www.gnu.org/software/mailutils/") |
f50d2669 | 152 | (synopsis "Utilities and library for reading and serving mail") |
a661e420 | 153 | (description |
79c311b8 LC |
154 | "GNU Mailutils is a collection of programs for managing, viewing and |
155 | processing electronic mail. It contains both utilities and server daemons | |
156 | and all operate in a protocol-agnostic way. The underlying libraries are | |
157 | also available, simplifying the addition of mail capabilities to new | |
158 | software.") | |
a661e420 LC |
159 | (license |
160 | ;; Libraries are under LGPLv3+, and programs under GPLv3+. | |
161 | (list gpl3+ lgpl3+)))) | |
d983a14f AE |
162 | |
163 | (define-public fetchmail | |
164 | (package | |
165 | (name "fetchmail") | |
166 | (version "6.3.26") | |
167 | (source (origin | |
168 | (method url-fetch) | |
169 | (uri (string-append "mirror://sourceforge/fetchmail/branch_6.3/fetchmail-" | |
170 | version ".tar.xz")) | |
171 | (sha256 | |
172 | (base32 | |
173 | "0l78ayvi9dm8hd190gl139cs2xqsrf7r9ncilslw20mgvd6cbd3r")))) | |
174 | (build-system gnu-build-system) | |
175 | (inputs | |
176 | `(("openssl" ,openssl))) | |
177 | (arguments | |
178 | `(#:configure-flags (list (string-append "--with-ssl=" | |
179 | (assoc-ref %build-inputs "openssl"))))) | |
07af3e5e | 180 | (home-page "http://www.fetchmail.info/") |
ae2189a9 | 181 | (synopsis "Remote-mail retrieval and forwarding utility") |
d983a14f AE |
182 | (description |
183 | "Fetchmail is a full-featured, robust, well-documented remote-mail | |
184 | retrieval and forwarding utility intended to be used over on-demand | |
185 | TCP/IP links (such as SLIP or PPP connections). It supports every | |
186 | remote-mail protocol now in use on the Internet: POP2, POP3, RPOP, APOP, | |
187 | KPOP, all flavors of IMAP, ETRN, and ODMR. It can even support IPv6 | |
188 | and IPSEC. | |
189 | ||
190 | Fetchmail retrieves mail from remote mail servers and forwards it via SMTP, | |
191 | so it can then be read by normal mail user agents such as mutt, elm | |
192 | or BSD Mail. It allows all your system MTA's filtering, forwarding, and | |
193 | aliasing facilities to work just as they would on normal mail.") | |
194 | (license gpl2+))) ; most files are actually public domain or x11 | |
13f04f48 AE |
195 | |
196 | (define-public mutt | |
197 | (package | |
198 | (name "mutt") | |
04ed5444 | 199 | (version "1.7.1") |
13f04f48 AE |
200 | (source (origin |
201 | (method url-fetch) | |
d82633d0 AE |
202 | (uri (string-append "ftp://ftp.mutt.org/pub/mutt/mutt-" |
203 | version ".tar.gz")) | |
13f04f48 AE |
204 | (sha256 |
205 | (base32 | |
04ed5444 | 206 | "1pyns0xw52s4yma1a93pdcl4dirs55q2m1hd7w1r11nlhf7giip9")) |
fc1adab1 | 207 | (patches (search-patches "mutt-store-references.patch")))) |
13f04f48 AE |
208 | (build-system gnu-build-system) |
209 | (inputs | |
4fd6bf53 | 210 | `(("cyrus-sasl" ,cyrus-sasl) |
b0bb0136 | 211 | ("gdbm" ,gdbm) |
524e1df6 | 212 | ("gpgme" ,gpgme) |
4fd6bf53 | 213 | ("ncurses" ,ncurses) |
13f04f48 AE |
214 | ("openssl" ,openssl) |
215 | ("perl" ,perl))) | |
216 | (arguments | |
217 | `(#:configure-flags '("--enable-smtp" | |
218 | "--enable-imap" | |
219 | "--enable-pop" | |
524e1df6 | 220 | "--enable-gpgme" |
b0bb0136 | 221 | "--enable-hcache" ; for header caching |
0323fe80 | 222 | "--enable-sidebar" |
13f04f48 | 223 | "--with-ssl" |
4fd6bf53 | 224 | "--with-sasl" |
13f04f48 AE |
225 | ;; so that mutt does not check whether the path |
226 | ;; exists, which it does not in the chroot | |
227 | "--with-mailpath=/var/mail"))) | |
228 | (home-page "http://www.mutt.org/") | |
229 | (synopsis "Mail client") | |
230 | (description | |
231 | "Mutt is a small but very powerful text-based mail client for Unix | |
232 | operating systems.") | |
233 | (license gpl2+))) | |
681a6588 MW |
234 | |
235 | (define-public gmime | |
236 | (package | |
237 | (name "gmime") | |
cc955356 | 238 | (version "2.6.20") |
681a6588 MW |
239 | (source (origin |
240 | (method url-fetch) | |
75630043 | 241 | (uri (string-append "mirror://gnome/sources/gmime/" |
29a7c98a | 242 | (version-major+minor version) |
681a6588 MW |
243 | "/gmime-" version ".tar.xz")) |
244 | (sha256 | |
245 | (base32 | |
cc955356 | 246 | "0rfzbgsh8ira5p76kdghygl5i3fvmmx4wbw5rp7f8ajc4vxp18g0")))) |
681a6588 MW |
247 | (build-system gnu-build-system) |
248 | (native-inputs | |
249 | `(("pkg-config" ,pkg-config) | |
250 | ("gnupg" ,gnupg))) ; for tests only | |
251 | (inputs `(("glib" ,glib) | |
252 | ("gpgme" ,gpgme) | |
253 | ("zlib" ,zlib))) | |
254 | (arguments | |
255 | `(#:phases | |
cc955356 EF |
256 | (modify-phases %standard-phases |
257 | (add-after | |
258 | 'unpack 'patch-paths-in-tests | |
259 | (lambda _ | |
260 | ;; The test programs run several programs using 'system' with | |
ae83dcf6 | 261 | ;; hard-coded paths. Here we patch them all. |
262 | ;; We use ISO-8859-1 here because test-iconv.c contains | |
cc955356 EF |
263 | ;; raw byte sequences in several different encodings. |
264 | (with-fluids ((%default-port-encoding #f)) | |
265 | (substitute* (find-files "tests" "\\.c$") | |
266 | (("(system *\\(\")(/[^ ]*)" all pre prog-path) | |
267 | (let* ((base (basename prog-path)) | |
ae83dcf6 | 268 | (prog (which base))) |
cc955356 EF |
269 | (string-append pre |
270 | (or prog (error "not found: " base)))))))))))) | |
681a6588 MW |
271 | (home-page "http://spruce.sourceforge.net/gmime/") |
272 | (synopsis "MIME message parser and creator library") | |
273 | (description | |
274 | "GMime provides a core library and set of utilities which may be used for | |
275 | the creation and parsing of messages using the Multipurpose Internet Mail | |
276 | Extension (MIME).") | |
277 | (license (list lgpl2.1+ gpl2+ gpl3+)))) | |
278 | ||
a7e59c50 LC |
279 | (define-public bogofilter |
280 | (package | |
281 | (name "bogofilter") | |
282 | (version "1.2.4") | |
283 | (source (origin | |
284 | (method url-fetch) | |
285 | (uri (string-append "mirror://sourceforge/bogofilter/bogofilter-" | |
286 | version "/bogofilter-" | |
287 | version ".tar.bz2")) | |
288 | (sha256 | |
289 | (base32 | |
290 | "1d56n2m9inm8gnzm88aa27xl2a7sp7aff3484vmflpqkinjqf0p1")))) | |
291 | (build-system gnu-build-system) | |
292 | (arguments | |
293 | '(#:phases (alist-cons-before | |
294 | 'check 'pre-check | |
295 | (lambda _ | |
296 | (substitute* "src/tests/t.frame" | |
297 | (("GREP=/bin/grep") | |
298 | (string-append "GREP=" (which "grep") "\n")))) | |
299 | %standard-phases))) | |
300 | (native-inputs `(("flex" ,flex))) | |
301 | (inputs `(("bdb" ,bdb))) | |
302 | (home-page "http://bogofilter.sourceforge.net/") | |
303 | (synopsis "Mail classifier based on a Bayesian filter") | |
304 | (description | |
305 | "Bogofilter is a mail filter that classifies mail as spam or ham | |
306 | (non-spam) by a statistical analysis of the message's header and | |
307 | content (body). The program is able to learn from the user's classifications | |
308 | and corrections. It is based on a Bayesian filter.") | |
309 | (license gpl2))) | |
310 | ||
3919a31a EB |
311 | (define-public offlineimap |
312 | (package | |
313 | (name "offlineimap") | |
812de5bf | 314 | (version "7.0.9") |
3919a31a EB |
315 | (source (origin |
316 | (method url-fetch) | |
317 | (uri (string-append "https://github.com/OfflineIMAP/offlineimap/" | |
318 | "archive/v" version ".tar.gz")) | |
f586c877 | 319 | (file-name (string-append name "-" version ".tar.gz")) |
3919a31a EB |
320 | (sha256 |
321 | (base32 | |
812de5bf | 322 | "04kapx0ddz7ccwhcjshkml2y916wcan3rl28mpmq25p4gywlkhxf")))) |
3919a31a | 323 | (build-system python-build-system) |
7a6213cb MB |
324 | (native-inputs |
325 | `(("asciidoc" ,asciidoc) | |
326 | ("libxslt" ,libxslt))) ; for xsltproc | |
a4ea25d3 EF |
327 | (inputs `(("python2-pysqlite" ,python2-pysqlite) |
328 | ("python2-six" ,python2-six))) | |
3919a31a EB |
329 | (arguments |
330 | ;; The setup.py script expects python-2. | |
331 | `(#:python ,python-2 | |
332 | ;; Tests require a modifiable IMAP account. | |
42aa73b3 EF |
333 | #:tests? #f |
334 | #:phases | |
335 | (modify-phases %standard-phases | |
7a6213cb MB |
336 | (add-after 'build 'build-documentation |
337 | (lambda _ | |
338 | (substitute* "docs/Makefile" | |
339 | ;; Prevent xmllint and xsltproc from downloading a DTD file. | |
340 | (("a2x -v") "a2x --no-xmllint --xsltproc-opts=--nonet -v")) | |
341 | (zero? (system* "make" "-C" "docs" "man")))) | |
342 | (add-after 'install 'install-documentation | |
343 | (lambda* (#:key outputs #:allow-other-keys) | |
344 | (let* ((out (assoc-ref outputs "out")) | |
345 | (man (string-append out "/share/man"))) | |
346 | (install-file "docs/offlineimap.1" (string-append man "/man1")) | |
347 | (install-file "docs/offlineimapui.7" (string-append man "/man7")) | |
348 | #t))) | |
349 | (add-after 'install-documentation 'wrap-binary | |
350 | (lambda* (#:key outputs #:allow-other-keys) | |
42aa73b3 EF |
351 | (let* ((out (assoc-ref outputs "out")) |
352 | (bin (string-append out "/bin/offlineimap"))) | |
353 | (wrap-program bin | |
354 | `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))) | |
355 | #t)))))) | |
3919a31a | 356 | (home-page "http://www.offlineimap.org") |
31e98ca6 | 357 | (synopsis "Sync emails between two repositories") |
3919a31a EB |
358 | (description |
359 | "OfflineImap synchronizes emails between two repositories, so that you | |
360 | can read the same mailbox from multiple computers. It supports IMAP as REMOTE | |
361 | repository and Maildir/IMAP as LOCAL repository.") | |
7886e23b | 362 | (license gpl2+))) |
3919a31a | 363 | |
d2938d59 EB |
364 | (define-public mu |
365 | (package | |
366 | (name "mu") | |
47c96a57 | 367 | (version "0.9.16") |
d2938d59 EB |
368 | (source (origin |
369 | (method url-fetch) | |
922eaede | 370 | (uri (string-append "https://github.com/djcb/mu/archive/v" |
d2938d59 | 371 | version ".tar.gz")) |
922eaede | 372 | (file-name (string-append "mu-" version ".tar.gz")) |
d2938d59 EB |
373 | (sha256 |
374 | (base32 | |
47c96a57 | 375 | "0p7hqri1r1x6750x138cc29mh81kdav2dcim26y58s8an206h25g")))) |
d2938d59 EB |
376 | (build-system gnu-build-system) |
377 | (native-inputs | |
378 | `(("pkg-config" ,pkg-config) | |
9fd571a2 | 379 | ("glib" ,glib "bin") ; for gtester |
922eaede PW |
380 | ("autoconf" ,autoconf) |
381 | ("automake" ,automake) | |
b8fc3622 | 382 | ("emacs" ,emacs-minimal) |
922eaede | 383 | ("libtool" ,libtool) |
d2938d59 EB |
384 | ("texinfo" ,texinfo))) |
385 | ;; TODO: Add webkit and gtk to build the mug GUI. | |
386 | (inputs | |
387 | `(("xapian" ,xapian) | |
d2938d59 EB |
388 | ("guile" ,guile-2.0) |
389 | ("glib" ,glib) | |
390 | ("gmime" ,gmime) | |
391 | ("tzdata" ,tzdata))) ;for mu/test/test-mu-query.c | |
392 | (arguments | |
704f2196 AK |
393 | `(#:modules ((guix build gnu-build-system) |
394 | (guix build utils) | |
395 | (guix build emacs-utils)) | |
396 | #:imported-modules (,@%gnu-build-system-modules | |
397 | (guix build emacs-utils)) | |
398 | #:phases | |
99404fff | 399 | (modify-phases %standard-phases |
789bda83 AK |
400 | (add-after 'unpack 'patch-configure.ac |
401 | ;; By default, elisp code goes to "share/emacs/site-lisp/mu4e", | |
402 | ;; so our Emacs package can't find it. Setting "--with-lispdir" | |
403 | ;; configure flag doesn't help because "mu4e" will be added to | |
404 | ;; the lispdir anyway, so we have to modify "configure.ac". | |
405 | (lambda _ | |
406 | (substitute* "configure.ac" | |
407 | (("^ +lispdir=.*") "")) | |
408 | #t)) | |
409 | (add-after 'patch-configure.ac 'autoreconf | |
99404fff AK |
410 | (lambda _ |
411 | (zero? (system* "autoreconf" "-vi")))) | |
412 | (add-before 'check 'check-tz-setup | |
413 | (lambda* (#:key inputs #:allow-other-keys) | |
414 | ;; For mu/test/test-mu-query.c | |
415 | (setenv "TZDIR" | |
416 | (string-append (assoc-ref inputs "tzdata") | |
417 | "/share/zoneinfo")) | |
704f2196 AK |
418 | #t)) |
419 | (add-after 'install 'install-emacs-autoloads | |
420 | (lambda* (#:key outputs #:allow-other-keys) | |
421 | (emacs-generate-autoloads | |
422 | "mu4e" | |
423 | (string-append (assoc-ref outputs "out") | |
424 | "/share/emacs/site-lisp")) | |
99404fff | 425 | #t))))) |
d2938d59 EB |
426 | (home-page "http://www.djcbsoftware.nl/code/mu/") |
427 | (synopsis "Quickly find emails") | |
428 | (description | |
429 | "Mu is a tool for dealing with e-mail messages stored in the | |
430 | Maildir-format. Mu's purpose in life is to help you to quickly find the | |
431 | messages you need; in addition, it allows you to view messages, extract | |
432 | attachments, create new maildirs, and so on.") | |
433 | (license gpl3+))) | |
434 | ||
a2cb16b0 TS |
435 | (define-public alot |
436 | (package | |
437 | (name "alot") | |
438 | (version "0.3.7") | |
439 | (source (origin | |
440 | (method url-fetch) | |
1b94f182 TS |
441 | ;; package author intends on distributing via github rather |
442 | ;; than pypi: | |
443 | ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331 | |
a2cb16b0 TS |
444 | (uri (string-append "https://github.com/pazz/alot/archive/" |
445 | version ".tar.gz")) | |
446 | (file-name (string-append "alot-" version ".tar.gz")) | |
447 | (sha256 | |
448 | (base32 | |
449 | "09md9llg38r6xby8l0y0zf8nhlh91cr4xs0r15b294hhp8hl2bgx")))) | |
450 | (build-system python-build-system) | |
451 | (arguments | |
452 | `(#:tests? #f ; no tests | |
1b94f182 TS |
453 | ;; python 3 is unsupported, more info: |
454 | ;; https://github.com/pazz/alot/blob/0.3.7/docs/source/faq.rst | |
a2cb16b0 TS |
455 | #:python ,python-2)) |
456 | (inputs | |
457 | `(("python2-magic" ,python2-magic) | |
458 | ("python2-configobj" ,python2-configobj) | |
459 | ("python2-twisted" ,python2-twisted) | |
460 | ("python2-urwid" ,python2-urwid) | |
461 | ("python2-urwidtrees" ,python2-urwidtrees) | |
462 | ("python2-pygpgme" ,python2-pygpgme) | |
463 | ("python2-notmuch" ,python2-notmuch))) | |
464 | (home-page "https://github.com/pazz/alot") | |
465 | (synopsis "Commandline MUA using notmuch") | |
466 | (description | |
467 | "Alot is an experimental terminal mail user agent (MUA) based on | |
468 | @code{notmuch} mail. It is written in Python using the @code{urwid} toolkit.") | |
469 | (license gpl3+))) | |
470 | ||
0350a8bb HG |
471 | (define-public notifymuch |
472 | (let | |
473 | ((commit "9d4aaf54599282ce80643b38195ff501120807f0") | |
474 | (revision "1")) | |
475 | (package | |
476 | (name "notifymuch") | |
477 | (version (string-append "0.1-" revision "." (string-take commit 7))) | |
478 | (source | |
479 | (origin | |
480 | (method git-fetch) | |
481 | (uri (git-reference | |
482 | (url "https://github.com/kspi/notifymuch.git") | |
483 | (commit commit))) | |
484 | (sha256 | |
485 | (base32 | |
486 | "1lssr7iv43mp5v6nzrfbqlfzx8jcc7m636wlfyhhnd8ydd39n6k4")) | |
487 | (file-name (string-append name "-" version "-checkout")))) | |
488 | (build-system python-build-system) | |
489 | (inputs | |
490 | `(("python-notmuch" ,python-notmuch) | |
491 | ("python-pygobject" ,python-pygobject) | |
492 | ("gobject-introspection" ,gobject-introspection) | |
493 | ("libnotify" ,libnotify) | |
494 | ("gtk+" ,gtk+))) | |
495 | (arguments | |
496 | `(#:phases | |
497 | (modify-phases %standard-phases | |
498 | (add-after 'install 'wrap-binary | |
499 | (lambda* (#:key outputs #:allow-other-keys) | |
500 | (let* ((out (assoc-ref outputs "out")) | |
501 | (bin (string-append out "/bin/notifymuch"))) | |
502 | (wrap-program bin | |
503 | `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))) | |
504 | `("GI_TYPELIB_PATH" ":" prefix | |
505 | (,(getenv "GI_TYPELIB_PATH") | |
506 | ,(string-append out "/lib/girepository-1.0"))))) | |
507 | #t))))) | |
508 | (home-page "https://github.com/kspi/notifymuch") | |
509 | (synopsis "Displays notifications for changes in the notmuch email database") | |
510 | (description "notifymuch displays desktop notifications for messages in | |
511 | the notmuch database. The notifications are sent using libnotify to a | |
512 | notification daemon. The query to find messages to send a notification about | |
513 | is configurable, and a notification for the same message will not be send | |
514 | within a configurable period (defaults to 48 hours). To use notifymuch, run | |
515 | @command{notifymuch} after new mail is indexed, this can be automated by | |
516 | invoking @command{notifymuch} from the post-new hook.") | |
517 | (license gpl3)))) | |
518 | ||
1bd3f849 DT |
519 | (define-public notmuch |
520 | (package | |
521 | (name "notmuch") | |
d2a9b531 | 522 | (version "0.23.1") |
1bd3f849 DT |
523 | (source (origin |
524 | (method url-fetch) | |
866fade9 | 525 | (uri (string-append "https://notmuchmail.org/releases/notmuch-" |
1bd3f849 DT |
526 | version ".tar.gz")) |
527 | (sha256 | |
528 | (base32 | |
d2a9b531 | 529 | "106ijsnilqf8760z4cq99rqzjsvyaw86d0lgnzz7v95gm4d2l0g8")))) |
1bd3f849 DT |
530 | (build-system gnu-build-system) |
531 | (arguments | |
6cf27c89 | 532 | '(#:make-flags (list "V=1") ; Verbose test output. |
eb537f57 | 533 | #:phases (modify-phases %standard-phases |
6cf27c89 MB |
534 | (add-after 'unpack 'patch-notmuch-lib.el |
535 | (lambda _ | |
536 | (substitute* "emacs/notmuch-lib.el" | |
537 | (("/bin/sh") (which "sh"))) | |
538 | #t)) | |
eb537f57 DT |
539 | (replace 'configure |
540 | (lambda* (#:key outputs #:allow-other-keys) | |
541 | (setenv "CC" "gcc") | |
542 | (setenv "CONFIG_SHELL" (which "sh")) | |
ee886454 | 543 | |
eb537f57 DT |
544 | (let ((out (assoc-ref outputs "out"))) |
545 | (zero? (system* "./configure" | |
6cf27c89 MB |
546 | (string-append "--prefix=" out)))))) |
547 | (add-before 'check 'prepare-test-environment | |
548 | (lambda _ | |
549 | (setenv "TEST_CC" "gcc") | |
550 | ;; Patch various inline shell invocations. | |
551 | (substitute* (find-files "test" "\\.sh$") | |
552 | (("/bin/sh") (which "sh"))) | |
553 | #t))))) | |
1bd3f849 | 554 | (native-inputs |
2c5b91dc | 555 | `(("bash-completion" ,bash-completion) |
6cf27c89 | 556 | ("emacs" ,emacs-no-x) ; Minimal lacks libxml, needed for some tests. |
2c5b91dc | 557 | ("pkg-config" ,pkg-config) |
ee886454 | 558 | ("python" ,python-2) |
eb537f57 | 559 | ("python-docutils" ,python2-docutils) |
6cf27c89 MB |
560 | ("python-sphinx" ,python2-sphinx) |
561 | ||
562 | ;; The following are required for tests only. | |
563 | ("which" ,which) | |
564 | ("dtach" ,dtach) | |
565 | ("gnupg" ,gnupg) | |
566 | ("man" ,man-db) | |
567 | ("perl" ,perl))) | |
1bd3f849 | 568 | (inputs |
2c5b91dc | 569 | `(("glib" ,glib) |
1bd3f849 DT |
570 | ("gmime" ,gmime) |
571 | ("talloc" ,talloc) | |
572 | ("xapian" ,xapian) | |
573 | ("zlib" ,zlib))) | |
540d6cc7 | 574 | (home-page "https://notmuchmail.org/") |
1bd3f849 DT |
575 | (synopsis "Thread-based email index, search, and tagging") |
576 | (description | |
577 | "Notmuch is a command-line based program for indexing, searching, read- | |
578 | ing, and tagging large collections of email messages.") | |
579 | (license gpl3+))) | |
580 | ||
8a75c589 AM |
581 | (define-public notmuch-addrlookup-c |
582 | (package | |
583 | (name "notmuch-addrlookup-c") | |
584 | (version "7") | |
585 | (source (origin | |
586 | (method url-fetch) | |
587 | (uri (string-append | |
588 | "https://github.com/aperezdc/" name "/archive/v" | |
589 | version ".tar.gz")) | |
590 | (file-name (string-append name "-" version ".tar.gz")) | |
591 | (sha256 | |
592 | (base32 | |
593 | "0rslg2ifgyhl6asv3yr1f62m9xjfcinv7i6qb07h2k217jqlmrri")))) | |
594 | (build-system gnu-build-system) | |
595 | (arguments | |
596 | '(#:tests? #f ; no tests | |
597 | #:make-flags (list "CC=gcc" | |
598 | (string-append "PREFIX=" | |
599 | (assoc-ref %outputs "out"))) | |
600 | #:phases (modify-phases %standard-phases | |
601 | (delete 'configure) | |
602 | ;; Remove vim code completion config, it's not needed to | |
603 | ;; build (or be patched). | |
604 | (add-before 'patch-source-shebangs 'delete-ycm-file | |
605 | (lambda _ (delete-file ".ycm_extra_conf.py"))) | |
606 | (replace 'install | |
607 | (lambda* (#:key outputs #:allow-other-keys) | |
608 | (let ((bin (string-append | |
609 | (assoc-ref outputs "out") "/bin"))) | |
610 | (install-file "notmuch-addrlookup" bin))))))) | |
611 | (native-inputs | |
612 | `(("pkg-config" ,pkg-config))) | |
613 | (inputs | |
614 | `(("glib" ,glib) | |
615 | ("notmuch" ,notmuch))) | |
616 | (home-page "https://github.com/aperezdc/notmuch-addrlookup-c") | |
617 | (synopsis "Address lookup tool for Notmuch") | |
618 | (description "This is an address lookup tool using a Notmuch database, | |
619 | useful for email address completion.") | |
620 | (license license:expat))) | |
621 | ||
4b6909bc TS |
622 | (define-public python-notmuch |
623 | (package | |
624 | (name "python-notmuch") | |
540d6cc7 | 625 | (version (package-version notmuch)) |
4b6909bc TS |
626 | ;; Notmuch python bindings are now unavailable on pypi. The |
627 | ;; bindings are distributed via the notmuch release tarball. | |
628 | (source (package-source notmuch)) | |
629 | (build-system python-build-system) | |
630 | (inputs `(("notmuch" ,notmuch))) | |
631 | (arguments | |
632 | `(#:tests? #f ; no "test" target | |
633 | #:phases | |
634 | (modify-phases %standard-phases | |
635 | ;; This python package lives in a subdirectory of the notmuch source | |
636 | ;; tree, so chdir into it before building. | |
637 | (add-after 'unpack 'enter-python-dir | |
638 | (lambda _ (chdir "bindings/python") #t)) | |
639 | ;; Make sure the correct notmuch shared library gets loaded. | |
640 | (add-before 'build 'set-libnotmuch-file-name | |
641 | (lambda* (#:key inputs #:allow-other-keys) | |
642 | (let ((notmuch (assoc-ref inputs "notmuch"))) | |
643 | (substitute* "notmuch/globals.py" | |
644 | (("libnotmuch\\.so\\.") | |
645 | (string-append notmuch "/lib/libnotmuch.so."))) | |
646 | #t)))))) | |
540d6cc7 | 647 | (home-page (package-home-page notmuch)) |
4b6909bc TS |
648 | (synopsis "Python bindings of the Notmuch mail indexing library") |
649 | (description | |
650 | "This package provides Python bindings to use the Notmuch mail indexing | |
651 | and search library.") | |
652 | (license gpl3+))) | |
653 | ||
1c74da21 | 654 | (define-public python2-notmuch |
caa6fc89 | 655 | (package-with-python2 python-notmuch)) |
1c74da21 | 656 | |
98e9e22f SB |
657 | (define-public getmail |
658 | (package | |
659 | (name "getmail") | |
1a5fd02a | 660 | (version "4.49.0") |
98e9e22f SB |
661 | (source |
662 | (origin | |
663 | (method url-fetch) | |
664 | (uri (string-append "http://pyropus.ca/software/getmail/old-versions/" | |
665 | name "-" version ".tar.gz")) | |
666 | (sha256 | |
667 | (base32 | |
1a5fd02a | 668 | "1m0yzxd05fklwbmjj1n2q4sx397c1j5qi9a0r5fv3h8pplz4lv0w")))) |
98e9e22f SB |
669 | (build-system python-build-system) |
670 | (arguments | |
671 | `(#:tests? #f ; no tests | |
672 | #:python ,python-2)) | |
673 | (home-page "http://pyropus.ca/software/getmail/") | |
674 | (synopsis "Mail retriever") | |
675 | (description | |
676 | "A flexible, extensible mail retrieval system with support for | |
677 | POP3, IMAP4, SSL variants of both, maildirs, mboxrd files, external MDAs, | |
678 | arbitrary message filtering, single-user and domain-mailboxes, and many other | |
679 | useful features.") | |
680 | ||
681 | ;; License is specified in file '__init__.py'. | |
682 | (license gpl2))) | |
683 | ||
f58f767b JL |
684 | (define-public libetpan |
685 | (package | |
686 | (name "libetpan") | |
c1748912 | 687 | (version "1.7.2") |
f58f767b JL |
688 | (source (origin |
689 | (method url-fetch) | |
690 | (uri (string-append "https://github.com/dinhviethoa/" name | |
691 | "/archive/" version ".tar.gz")) | |
f586c877 | 692 | (file-name (string-append name "-" version ".tar.gz")) |
f58f767b | 693 | (sha256 |
c1748912 | 694 | (base32 "081ixgj3skglq9i7v0jb835lmfx21zi4i5b7997igwr0lj174y9j")))) |
f58f767b JL |
695 | (build-system gnu-build-system) |
696 | (native-inputs `(("autoconf" ,(autoconf-wrapper)) | |
697 | ("automake" ,automake) | |
3246cc91 | 698 | ("libtool" ,libtool) |
f58f767b JL |
699 | ("pkg-config" ,pkg-config))) |
700 | (propagated-inputs | |
701 | ;; 'libetpan-config --libs' returns '-lssl -lcrypto -lsasl2', so these | |
702 | ;; libraries need to be propagated. | |
703 | `(("cyrus-sasl" ,cyrus-sasl) | |
704 | ("openssl" ,openssl))) | |
705 | (inputs | |
706 | `(("curl" ,curl) | |
c1748912 EF |
707 | ("expat" ,expat) |
708 | ("zlib" ,zlib))) | |
f58f767b | 709 | (arguments |
602460ea EF |
710 | '(#:phases |
711 | (modify-phases %standard-phases | |
712 | (add-after 'unpack 'autogen | |
713 | (lambda _ | |
714 | (setenv "NOCONFIGURE" "true") | |
715 | (zero? (system* "sh" "autogen.sh"))))) | |
f58f767b JL |
716 | #:configure-flags |
717 | '("--disable-static" "--disable-db"))) | |
718 | (home-page "http://www.etpan.org/libetpan.html") | |
719 | (synopsis "Portable middleware for email access") | |
720 | (description | |
721 | "The purpose of this mail library is to provide a portable, efficient | |
722 | framework for different kinds of mail access: IMAP, SMTP, POP and NNTP. It | |
723 | provides an API for C language. It's the low-level API used by MailCore and | |
724 | MailCore 2.") | |
166191b3 | 725 | (license (non-copyleft "file://COPYING")))) |
f58f767b | 726 | |
e8435c4d JL |
727 | (define-public claws-mail |
728 | (package | |
729 | (name "claws-mail") | |
a9a023ad | 730 | (version "3.14.0") |
e8435c4d JL |
731 | (source (origin |
732 | (method url-fetch) | |
733 | (uri (string-append | |
762b1971 | 734 | "http://www.claws-mail.org/releases/" name "-" version |
6ea4b094 | 735 | ".tar.xz")) |
e8435c4d | 736 | (sha256 |
ec92806a | 737 | (base32 |
a9a023ad | 738 | "0nfchgga3ir91s8rky0a0vnz8cgj2f6h716wh3cmb466a01xfss6")))) |
e8435c4d JL |
739 | (build-system gnu-build-system) |
740 | (native-inputs `(("pkg-config" ,pkg-config))) | |
741 | (inputs `(("bogofilter" ,bogofilter) | |
742 | ("curl" ,curl) | |
743 | ("dbus-glib" ,dbus-glib) | |
e8435c4d JL |
744 | ("enchant" ,enchant) |
745 | ("expat" ,expat) | |
746 | ("ghostscript" ,ghostscript) | |
747 | ("hicolor-icon-theme" ,hicolor-icon-theme) | |
748 | ("gnupg" ,gnupg) | |
749 | ("gnutls" ,gnutls) | |
750 | ("gpgme" ,gpgme) | |
751 | ("gtk" ,gtk+-2) | |
752 | ("libarchive" ,libarchive) | |
753 | ("libcanberra" ,libcanberra) | |
754 | ("libetpan" ,libetpan) | |
755 | ("libnotify" ,libnotify) | |
756 | ("libsm" ,libsm) | |
757 | ("libxml2" ,libxml2) | |
758 | ("perl" ,perl) | |
f6292baf EB |
759 | ("python-2" ,python-2) |
760 | ("mime-info" ,shared-mime-info))) | |
e8435c4d JL |
761 | (arguments |
762 | '(#:configure-flags | |
f6292baf EB |
763 | '("--enable-gnutls" "--enable-pgpmime-plugin" "--enable-enchant") |
764 | #:phases (modify-phases %standard-phases | |
765 | (add-before 'build 'patch-mime | |
766 | (lambda* (#:key inputs #:allow-other-keys) | |
767 | (substitute* "src/procmime.c" | |
768 | (("/usr/share/mime/globs") | |
769 | (string-append (assoc-ref inputs "mime-info") | |
770 | "/share/mime/globs")))))))) | |
e8435c4d JL |
771 | (synopsis "GTK-based Email client") |
772 | (description | |
773 | "Claws-Mail is an email client (and news reader) based on GTK+. The | |
774 | appearance and interface are designed to be familiar to new users coming from | |
775 | other popular email clients, as well as experienced users. Almost all commands | |
776 | are accessible with the keyboard. Plus, Claws-Mail is extensible via addons | |
777 | which can add many functionalities to the base client.") | |
778 | (home-page "http://www.claws-mail.org/") | |
779 | (license gpl3+))) ; most files are actually public domain or x11 | |
780 | ||
d6e941bc TČ |
781 | (define-public msmtp |
782 | (package | |
783 | (name "msmtp") | |
d23d1ddf | 784 | (version "1.6.5") |
d6e941bc TČ |
785 | (source |
786 | (origin | |
787 | (method url-fetch) | |
d23d1ddf LF |
788 | (uri (string-append "mirror://sourceforge/msmtp/msmtp/" version |
789 | "/msmtp-" version ".tar.xz")) | |
790 | (sha256 | |
791 | (base32 | |
792 | "01jh9ba49bih8zsh40myw6qq1ll210q1vw0jg865vrn7jc3dd83n")))) | |
d6e941bc TČ |
793 | (build-system gnu-build-system) |
794 | (inputs | |
795 | `(("libidn" ,libidn) | |
72d8b5ba | 796 | ("libsecret" ,libsecret) |
d6e941bc TČ |
797 | ("gnutls" ,gnutls) |
798 | ("zlib" ,zlib) | |
799 | ("gsasl" ,gsasl))) | |
800 | (native-inputs | |
801 | `(("pkg-config" ,pkg-config))) | |
802 | (home-page "http://msmtp.sourceforge.net/") | |
803 | (arguments | |
804 | `(#:configure-flags (list "--with-libgsasl" | |
805 | "--with-libidn" | |
823e2ed4 LF |
806 | "--with-tls=gnutls") |
807 | #:phases | |
808 | (modify-phases %standard-phases | |
809 | (add-after 'install 'install-msmtpq | |
810 | (lambda* (#:key outputs #:allow-other-keys) | |
811 | (let* ((out (assoc-ref outputs "out")) | |
812 | (bin (string-append out "/bin")) | |
813 | (doc (string-append out "/share/doc/msmtp")) | |
814 | (msmtpq (string-append "scripts/msmtpq"))) | |
815 | (install-file (string-append msmtpq "/msmtpq") bin) | |
816 | (install-file (string-append msmtpq "/msmtp-queue") bin) | |
817 | (install-file (string-append msmtpq "/README.msmtpq") doc) | |
818 | #t)))))) | |
d6e941bc TČ |
819 | (synopsis |
820 | "Simple and easy to use SMTP client with decent sendmail compatibility") | |
821 | (description | |
822 | "msmtp is an SMTP client. In the default mode, it transmits a mail to | |
823 | an SMTP server (for example at a free mail provider) which takes care of further | |
824 | delivery.") | |
825 | (license gpl3+))) | |
826 | ||
66cc3ab2 TUBK |
827 | (define-public exim |
828 | (package | |
829 | (name "exim") | |
cf316a59 | 830 | (version "4.87") |
66cc3ab2 TUBK |
831 | (source |
832 | (origin | |
833 | (method url-fetch) | |
fc6fdc05 LF |
834 | (uri (list (string-append "ftp://ftp.exim.org/pub/exim/exim4/exim-" |
835 | version ".tar.bz2") | |
836 | (string-append "ftp://ftp.exim.org/pub/exim/exim4/old/exim-" | |
837 | version ".tar.bz2"))) | |
66cc3ab2 | 838 | (sha256 |
513f8ab4 | 839 | (base32 |
cf316a59 | 840 | "1jbxn13shq90kpn0s73qpjnx5xm8jrpwhcwwgqw5s6sdzw6iwsbl")))) |
66cc3ab2 TUBK |
841 | (build-system gnu-build-system) |
842 | (inputs | |
843 | `(("bdb" ,bdb) | |
844 | ("gnutls" ,gnutls) | |
845 | ("gzip" ,gzip) | |
846 | ("bzip2" ,bzip2) | |
847 | ("xz" ,xz) | |
66cc3ab2 TUBK |
848 | ("perl" ,perl) |
849 | ("libxt" ,libxt) | |
850 | ("libxaw" ,libxaw))) | |
851 | (native-inputs | |
42773138 EF |
852 | `(("pcre" ,pcre "bin") |
853 | ("perl" ,perl))) | |
66cc3ab2 TUBK |
854 | (arguments |
855 | '(#:phases | |
856 | (alist-replace | |
857 | 'configure | |
858 | ;; We'd use #:make-flags but the top-level Makefile calls others | |
859 | ;; recursively, so just set all variables this way. | |
860 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
861 | (substitute* '("Makefile" "OS/Makefile-Default") | |
862 | (("(RM_COMMAND=).*" all var) | |
863 | (string-append var "rm\n"))) | |
864 | (copy-file "src/EDITME" "Local/Makefile") | |
865 | (copy-file "exim_monitor/EDITME" "Local/eximon.conf") | |
866 | (let ((out (assoc-ref outputs "out")) | |
867 | (gzip (assoc-ref inputs "gzip")) | |
868 | (bzip2 (assoc-ref inputs "bzip2")) | |
869 | (xz (assoc-ref inputs "xz"))) | |
870 | (substitute* '("Local/Makefile") | |
871 | (("(BIN_DIRECTORY=).*" all var) | |
872 | (string-append var out "/bin\n")) | |
873 | (("(CONFIGURE_FILE=).*" all var) | |
874 | (string-append var out "/etc/exim.conf\n")) | |
875 | (("(EXIM_USER=).*" all var) | |
876 | (string-append var "nobody\n")) | |
877 | (("(FIXED_NEVER_USERS=).*" all var) | |
878 | (string-append var "\n")) ;XXX no root in build environment | |
879 | (("(COMPRESS_COMMAND=).*" all var) | |
880 | (string-append var gzip "/bin/gzip\n")) | |
881 | (("(ZCAT_COMMAND=).*" all var) | |
882 | (string-append var gzip "/bin/zcat\n"))) | |
883 | ;; This file has hardcoded names for tools despite the zcat | |
884 | ;; configuration above. | |
885 | (substitute* '("src/exigrep.src") | |
886 | (("'zcat'") (string-append "'" gzip "/bin/zcat'")) | |
887 | (("'bzcat'") (string-append "'" bzip2 "/bin/bzcat'")) | |
888 | (("'xzcat'") (string-append "'" xz "/bin/xzcat'")) | |
889 | (("'lzma'") (string-append "'" xz "/bin/lzma'"))))) | |
890 | (alist-cons-before | |
891 | 'build 'fix-sh-paths | |
892 | (lambda* (#:key inputs #:allow-other-keys) | |
893 | (substitute* '("scripts/lookups-Makefile" "scripts/reversion") | |
894 | (("SHELL=/bin/sh") "SHELL=sh")) | |
895 | (substitute* '("scripts/Configure-config.h") | |
896 | (("\\| /bin/sh") "| sh")) | |
897 | (let ((bash (assoc-ref inputs "bash"))) | |
898 | (substitute* '("scripts/Configure-eximon") | |
899 | (("#!/bin/sh") (string-append "#!" bash "/bin/sh"))))) | |
900 | %standard-phases)) | |
901 | #:make-flags '("INSTALL_ARG=-no_chown") | |
902 | ;; No 'check' target. | |
903 | #:tests? #f)) | |
904 | (home-page "http://www.exim.org/") | |
905 | (synopsis | |
906 | "Message Transfer Agent (MTA) developed at the University of Cambridge") | |
907 | (description | |
908 | "Exim is a message transfer agent (MTA) developed at the University of | |
909 | Cambridge for use on Unix systems connected to the Internet. In style it is | |
910 | similar to Smail 3, but its facilities are more general. There is a great | |
911 | deal of flexibility in the way mail can be routed, and there are extensive | |
912 | facilities for checking incoming mail.") | |
913 | (license gpl2+))) | |
914 | ||
7d2b784b MW |
915 | (define-public dovecot |
916 | (package | |
917 | (name "dovecot") | |
873966e3 | 918 | (version "2.2.25") |
7d2b784b MW |
919 | (source |
920 | (origin | |
921 | (method url-fetch) | |
922 | (uri (string-append "http://www.dovecot.org/releases/" | |
923 | (version-major+minor version) "/" | |
924 | name "-" version ".tar.gz")) | |
925 | (sha256 (base32 | |
873966e3 | 926 | "0rwn5wc5b8j9fzqcjggdgpzmb77myrf4ra294z1gg5v3hhng7nfq")))) |
7d2b784b MW |
927 | (build-system gnu-build-system) |
928 | (native-inputs | |
929 | `(("pkg-config" ,pkg-config))) | |
930 | (inputs | |
931 | `(("openssl" ,openssl) | |
932 | ("zlib" ,zlib) | |
933 | ("bzip2" ,bzip2) | |
fd5c70f8 AW |
934 | ("sqlite" ,sqlite) |
935 | ("linux-pam" ,linux-pam))) | |
7d2b784b MW |
936 | (arguments |
937 | `(#:configure-flags '("--sysconfdir=/etc" | |
938 | "--localstatedir=/var") | |
939 | #:phases (modify-phases %standard-phases | |
940 | (add-before | |
941 | 'configure 'pre-configure | |
942 | (lambda _ | |
943 | ;; Simple hack to avoid installing in /etc | |
944 | (substitute* '("doc/Makefile.in" | |
945 | "doc/example-config/Makefile.in") | |
946 | (("pkgsysconfdir = .*") | |
947 | "pkgsysconfdir = /tmp/etc")) | |
948 | #t))))) | |
949 | (home-page "http://www.dovecot.org") | |
950 | (synopsis "Secure POP3/IMAP server") | |
951 | (description | |
952 | "Dovecot is a mail server whose major goals are security and reliability. | |
953 | It supports mbox/Maildir and its own dbox/mdbox formats.") | |
954 | ;; Most source files are covered by either lgpl2.1 or expat. The SHA code | |
955 | ;; is covered by a variant of BSD-3, and UnicodeData.txt is covered by the | |
956 | ;; Unicode, Inc. License Agreement for Data Files and Software. | |
957 | (license (list lgpl2.1 license:expat (non-copyleft "file://COPYING"))))) | |
958 | ||
81ce19f4 TČ |
959 | (define-public isync |
960 | (package | |
961 | (name "isync") | |
2c3d13fe | 962 | (version "1.2.1") |
81ce19f4 TČ |
963 | (source |
964 | (origin | |
965 | (method url-fetch) | |
966 | (uri (string-append "mirror://sourceforge/isync/isync/" | |
967 | version "/isync-" version ".tar.gz")) | |
968 | (sha256 (base32 | |
2c3d13fe | 969 | "1bij6nm06ghkg98n2pdyacam2fyg5y8f7ajw0d5653m0r4ldw5p7")))) |
81ce19f4 TČ |
970 | (build-system gnu-build-system) |
971 | (inputs | |
972 | `(("bdb" ,bdb) | |
973 | ("openssl" ,openssl))) | |
974 | (home-page "http://isync.sourceforge.net/") | |
975 | (synopsis "Mailbox synchronization program") | |
976 | (description | |
977 | "isync/mbsync is command line tool for two-way synchronization of | |
978 | mailboxes. Currently Maildir and IMAP are supported types.") | |
979 | (license gpl2+))) | |
980 | ||
26b8de19 EB |
981 | (define-public perl-email-abstract |
982 | (package | |
983 | (name "perl-email-abstract") | |
984 | (version "3.008") | |
985 | (source | |
986 | (origin | |
987 | (method url-fetch) | |
988 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
989 | "Email-Abstract-" version ".tar.gz")) | |
990 | (sha256 | |
991 | (base32 | |
992 | "0h42rhvp769wb421cpbbg6v6xjp8iv86mvz70pqgfgf4nsn6jwgw")))) | |
993 | (build-system perl-build-system) | |
994 | (propagated-inputs | |
995 | `(("perl-email-simple" ,perl-email-simple) | |
a2190ccc | 996 | ("perl-module-pluggable" ,perl-module-pluggable) |
26b8de19 EB |
997 | ("perl-mro-compat" ,perl-mro-compat))) |
998 | (home-page "http://search.cpan.org/dist/Email-Abstract") | |
999 | (synopsis "Interface to mail representations") | |
1000 | (description "Email::Abstract provides module writers with the ability to | |
1001 | write simple, representation-independent mail handling code.") | |
1002 | (license (package-license perl)))) | |
1003 | ||
ebda902f EB |
1004 | (define-public perl-email-address |
1005 | (package | |
1006 | (name "perl-email-address") | |
1007 | (version "1.907") | |
1008 | (source | |
1009 | (origin | |
1010 | (method url-fetch) | |
1011 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1012 | "Email-Address-" version ".tar.gz")) | |
1013 | (sha256 | |
1014 | (base32 | |
1015 | "1ai4r149pzjv9dc2vddir8zylj0z1pii93rm4g591lx7avim71hx")))) | |
1016 | (build-system perl-build-system) | |
1017 | (home-page "http://search.cpan.org/dist/Email-Address") | |
1018 | (synopsis "Email address parsing and creation") | |
1019 | (description "Email::Address implements a regex-based RFC 2822 parser that | |
1020 | locates email addresses in strings and returns a list of Email::Address | |
1021 | objects found. Alternatively you may construct objects manually.") | |
1022 | (license (package-license perl)))) | |
1023 | ||
aa86a3be EB |
1024 | (define-public perl-email-date-format |
1025 | (package | |
1026 | (name "perl-email-date-format") | |
1027 | (version "1.005") | |
1028 | (source | |
1029 | (origin | |
1030 | (method url-fetch) | |
1031 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1032 | "Email-Date-Format-" version ".tar.gz")) | |
1033 | (sha256 | |
1034 | (base32 | |
1035 | "012ivfwpnbl3wr50f9c6f4azhdlxnm31pdn72528g79v61z6372p")))) | |
1036 | (build-system perl-build-system) | |
1037 | (home-page "http://search.cpan.org/dist/Email-Date-Format") | |
1038 | (synopsis "Produce RFC 2822 date strings") | |
1039 | (description "Email::Date::Format provides a means for generating an RFC | |
1040 | 2822 compliant datetime string.") | |
1041 | (license (package-license perl)))) | |
1042 | ||
08bf7095 EB |
1043 | (define-public perl-email-messageid |
1044 | (package | |
1045 | (name "perl-email-messageid") | |
1046 | (version "1.405") | |
1047 | (source | |
1048 | (origin | |
1049 | (method url-fetch) | |
1050 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1051 | "Email-MessageID-" version ".tar.gz")) | |
1052 | (sha256 | |
1053 | (base32 | |
1054 | "09216naz21x99ff33wdm3j3zq1zhdbxhrsmx8bvavjrw3gjsvrq3")))) | |
1055 | (build-system perl-build-system) | |
1056 | (home-page "http://search.cpan.org/dist/Email-MessageID") | |
1057 | (synopsis "Generate world unique message-ids") | |
1058 | (description "Email::MessageID generates recommended message-ids to | |
1059 | identify a message uniquely.") | |
1060 | (license (package-license perl)))) | |
1061 | ||
0a4c49f6 EB |
1062 | (define-public perl-email-mime |
1063 | (package | |
1064 | (name "perl-email-mime") | |
1065 | (version "1.929") | |
1066 | (source | |
1067 | (origin | |
1068 | (method url-fetch) | |
1069 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1070 | "Email-MIME-" version ".tar.gz")) | |
1071 | (sha256 | |
1072 | (base32 | |
1073 | "1sf7dldg4dvicyw6dl1vx6s1gjq3fcppi0103ikl0vi6v5xjdjdh")))) | |
1074 | (build-system perl-build-system) | |
1075 | (propagated-inputs | |
1076 | `(("perl-email-address" ,perl-email-address) | |
1077 | ("perl-email-messageid" ,perl-email-messageid) | |
1078 | ("perl-email-mime-contenttype" ,perl-email-mime-contenttype) | |
1079 | ("perl-email-mime-encodings" ,perl-email-mime-encodings) | |
1080 | ("perl-email-simple" ,perl-email-simple) | |
1081 | ("perl-mime-types" ,perl-mime-types))) | |
1082 | (home-page "http://search.cpan.org/dist/Email-MIME") | |
1083 | (synopsis "MIME message handling") | |
1084 | (description "Email::MIME is an extension of the Email::Simple module, to | |
1085 | handle MIME encoded messages. It takes a message as a string, splits it up | |
1086 | into its constituent parts, and allows you access to various parts of the | |
1087 | message. Headers are decoded from MIME encoding.") | |
1088 | (license (package-license perl)))) | |
1089 | ||
55025bb5 EB |
1090 | (define-public perl-email-mime-contenttype |
1091 | (package | |
1092 | (name "perl-email-mime-contenttype") | |
1093 | (version "1.017") | |
1094 | (source | |
1095 | (origin | |
1096 | (method url-fetch) | |
1097 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1098 | "Email-MIME-ContentType-" version ".tar.gz")) | |
1099 | (sha256 | |
1100 | (base32 | |
1101 | "1cl1l97lg690dh7i704hqi7yhxalq1chy7ylld5yc5v38jqa6gcn")))) | |
1102 | (build-system perl-build-system) | |
1103 | (native-inputs | |
1104 | `(("perl-capture-tiny" ,perl-capture-tiny))) | |
1105 | (home-page "http://search.cpan.org/dist/Email-MIME-ContentType") | |
1106 | (synopsis "Parse MIME Content-Type headers") | |
1107 | (description "Email::MIME::ContentType parses a MIME Content-Type | |
1108 | header.") | |
1109 | (license (package-license perl)))) | |
1110 | ||
02e29936 EB |
1111 | (define-public perl-email-mime-encodings |
1112 | (package | |
1113 | (name "perl-email-mime-encodings") | |
1114 | (version "1.315") | |
1115 | (source | |
1116 | (origin | |
1117 | (method url-fetch) | |
1118 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1119 | "Email-MIME-Encodings-" version ".tar.gz")) | |
1120 | (sha256 | |
1121 | (base32 | |
1122 | "0p5b8g9gh35m8fqrpx60g4bp98rvwd02n5b0vm9wh7mk0xah8wac")))) | |
1123 | (build-system perl-build-system) | |
1124 | (native-inputs | |
1125 | `(("perl-capture-tiny" ,perl-capture-tiny))) | |
1126 | (home-page "http://search.cpan.org/dist/Email-MIME-Encodings") | |
1127 | (synopsis "Unified interface to MIME encoding and decoding") | |
1128 | (description "This module wraps MIME::Base64 and MIME::QuotedPrint.") | |
1129 | (license (package-license perl)))) | |
1130 | ||
a24c5420 EB |
1131 | (define-public perl-email-sender |
1132 | (package | |
1133 | (name "perl-email-sender") | |
1134 | (version "1.300016") | |
1135 | (source | |
1136 | (origin | |
1137 | (method url-fetch) | |
1138 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1139 | "Email-Sender-" version ".tar.gz")) | |
1140 | (sha256 | |
1141 | (base32 | |
1142 | "18x26fjh399q3s2g8dajb9r10633c46jrnbvycpnpclgnzhjs100")))) | |
1143 | (build-system perl-build-system) | |
1144 | (native-inputs | |
1145 | `(("perl-capture-tiny" ,perl-capture-tiny))) | |
1146 | (propagated-inputs | |
1147 | `(("perl-email-abstract" ,perl-email-abstract) | |
1148 | ("perl-email-address" ,perl-email-address) | |
1149 | ("perl-email-simple" ,perl-email-simple) | |
1150 | ("perl-list-moreutils" ,perl-list-moreutils) | |
1151 | ("perl-module-runtime" ,perl-module-runtime) | |
1152 | ("perl-moo" ,perl-moo) | |
1153 | ("perl-moox-types-mooselike" ,perl-moox-types-mooselike) | |
1154 | ("perl-sub-exporter" ,perl-sub-exporter) | |
1155 | ("perl-throwable" ,perl-throwable) | |
1156 | ("perl-try-tiny" ,perl-try-tiny))) | |
1157 | (home-page "http://search.cpan.org/dist/Email-Sender") | |
1158 | (synopsis "Perl library for sending email") | |
1159 | (description "Email::Sender replaces the old and sometimes problematic | |
1160 | Email::Send library.") | |
1161 | (license (package-license perl)))) | |
1162 | ||
151ef3ed EB |
1163 | (define-public perl-email-simple |
1164 | (package | |
1165 | (name "perl-email-simple") | |
1166 | (version "2.206") | |
1167 | (source | |
1168 | (origin | |
1169 | (method url-fetch) | |
1170 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1171 | "Email-Simple-" version ".tar.gz")) | |
1172 | (sha256 | |
1173 | (base32 | |
1174 | "19dpy3j5na2k9qw1jcpc8ia25038068r9j1bn34f9yyrisz7s522")))) | |
1175 | (build-system perl-build-system) | |
1176 | (propagated-inputs | |
1177 | `(("perl-email-date-format" ,perl-email-date-format))) | |
1178 | (home-page "http://search.cpan.org/dist/Email-Simple") | |
1179 | (synopsis "Parsing of RFC 2822 messages") | |
1180 | (description "Email::Simple provides simple parsing of RFC 2822 message | |
1181 | format and headers.") | |
1182 | (license (package-license perl)))) | |
1183 | ||
f5dceecb AW |
1184 | (define-public libesmtp |
1185 | (package | |
1186 | (name "libesmtp") | |
1187 | (version "1.0.6") | |
1188 | (source | |
1189 | (origin | |
1190 | (method url-fetch) | |
1191 | (uri (string-append "http://www.stafford.uklinux.net/libesmtp/libesmtp-" | |
1192 | version ".tar.bz2")) | |
1193 | (sha256 | |
1194 | (base32 | |
1195 | "02zbniyz7qys1jmx3ghx21kxmns1wc3hmv80gp7ag7yra9f1m9nh")))) | |
1196 | (build-system gnu-build-system) | |
1197 | (propagated-inputs | |
1198 | `(("openssl" ,openssl))) | |
1199 | (home-page "http://www.stafford.uklinux.net/libesmtp/") | |
1200 | (synopsis "Library for sending mail via remote hosts using SMTP") | |
1201 | (description "libESMTP is an SMTP client which manages posting (or | |
1202 | submission of) electronic mail via a preconfigured Mail Transport Agent (MTA). | |
1203 | It may be used as part of a Mail User Agent (MUA) or other program that must | |
1204 | be able to post electronic mail where mail functionality may not be that | |
1205 | program's primary purpose.") | |
1206 | (license (list lgpl2.1+ gpl2+)))) | |
1207 | ||
f8ae32a2 AW |
1208 | (define-public esmtp |
1209 | (package | |
1210 | (name "esmtp") | |
1211 | (version "1.2") | |
1212 | (source | |
1213 | (origin | |
1214 | (method git-fetch) | |
1215 | (uri (git-reference | |
1216 | (url "https://github.com/andywingo/esmtp.git") | |
1217 | (commit "01bf9fc"))) | |
1218 | (sha256 | |
1219 | (base32 | |
1220 | "1ay282rrl92h0m0m8z5zzjnwiiagi7c78aq2qvhia5mw7prwfyw2")) | |
1221 | (file-name (string-append name "-" version "-checkout")))) | |
1222 | (arguments | |
1223 | `(#:phases (modify-phases %standard-phases | |
1224 | (add-before | |
1225 | 'configure 'autoconf | |
1226 | (lambda _ (zero? (system* "autoreconf" "-vfi"))))))) | |
1227 | (build-system gnu-build-system) | |
1228 | (native-inputs | |
1229 | `(("bison" ,bison) | |
1230 | ("flex" ,flex) | |
1231 | ("autoconf" ,autoconf) | |
1232 | ("automake" ,automake) | |
1233 | ("libtool" ,libtool))) | |
1234 | (inputs | |
718c5dd6 | 1235 | `(("libesmtp" ,libesmtp))) |
f8ae32a2 AW |
1236 | (home-page "http://sourceforge.net/projects/esmtp/") |
1237 | (synopsis "Relay-only mail transfer agent (MTA)") | |
1238 | (description "Esmtp is a simple relay-only mail transfer agent built using | |
1239 | libESMTP. It sends e-mail via a remote SMTP server using credentials from the | |
1240 | user's @file{$HOME/.esmtprc} configuration file; see the @command{esmtprc} man | |
1241 | page for more on configuration. This package also provides minimal | |
1242 | compatibility shims for the @command{sendmail}, @command{mailq}, and | |
1243 | @command{newaliases} commands.") | |
1244 | (license gpl2+))) | |
1245 | ||
34dd26af CAW |
1246 | (define-public fdm |
1247 | (package | |
1248 | (name "fdm") | |
1249 | (version "1.9") | |
1250 | (source (origin | |
1251 | (method url-fetch) | |
1252 | (uri (string-append "https://github.com/nicm/fdm/releases/download/" | |
1253 | version "/fdm-" | |
1254 | version ".tar.gz")) | |
1255 | (file-name (string-append name "-" version ".tar.gz")) | |
1256 | (sha256 | |
1257 | (base32 "054rscijahiza5f9qha79rg3siji3bk5mk10f8c2vqx7m4w6qh8n")))) | |
1258 | (build-system gnu-build-system) | |
1259 | (inputs | |
1260 | `(("tdb" ,tdb) | |
1261 | ("openssl" ,openssl) | |
1262 | ("zlib" ,zlib))) | |
1263 | (home-page "https://github.com/nicm/fdm") | |
1264 | (synopsis "Mail Retrieval Agent (MRA) and Mail Delivery Agent (MDA)") | |
1265 | (description "fdm is a program designed to fetch mail from POP3 | |
1266 | or IMAP servers, or receive local mail from stdin, and | |
1267 | deliver it in various ways.") | |
1268 | (license | |
1269 | ;; Why point to a source file? Well, all the individual files have a | |
1270 | ;; copy of this license in their headers, but there's no seprate file | |
1271 | ;; with that information. | |
16966d5b | 1272 | (non-copyleft "https://github.com/nicm/fdm/blob/master/command.c")))) |
34dd26af | 1273 | |
e90819c4 LG |
1274 | |
1275 | (define-public procmail | |
1276 | (package | |
1277 | (name "procmail") | |
1278 | (version "3.22") | |
1279 | (source | |
1280 | (origin | |
1281 | (method url-fetch) | |
1282 | (uri (string-append | |
1283 | "ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-" | |
1284 | version | |
1285 | ".tar.gz")) | |
1286 | (sha256 | |
1287 | (base32 | |
1288 | "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08")) | |
1289 | ;; The following patch fixes an ambiguous definition of | |
1290 | ;; getline() in formail.c. The patch is provided by Debian as | |
1291 | ;; patch 24. | |
1d982d78 LF |
1292 | (patches (search-patches "procmail-ambiguous-getline-debian.patch" |
1293 | "procmail-CVE-2014-3618.patch")))) | |
e90819c4 LG |
1294 | (arguments |
1295 | `(#:phases (modify-phases %standard-phases | |
1296 | (replace 'configure | |
1297 | (lambda _ | |
1298 | (substitute* "Makefile" | |
1299 | (("/bin/sh") | |
1300 | (which "sh")) | |
1301 | (("/usr") | |
1302 | (assoc-ref %outputs "out")) | |
1303 | (("/bin/rm") | |
1304 | (which "rm"))) | |
1305 | #t))) | |
1306 | #:tests? #f)) ;; There are no tests indicating a successful | |
1307 | ;; build. Some tests of basic locking mechanisms provided by the | |
8f65585b | 1308 | ;; file system are performed during 'make install'. However, these |
e90819c4 LG |
1309 | ;; are performed before the actual build process. |
1310 | (build-system gnu-build-system) | |
05aa576b | 1311 | (inputs `(("exim" ,exim))) |
e90819c4 LG |
1312 | (home-page "http://www.procmail.org/") |
1313 | (synopsis "Versatile mail delivery agent (MDA)") | |
1314 | (description "Procmail is a mail delivery agent (MDA) featuring support | |
1315 | for a variety of mailbox formats such as mbox, mh and maildir. Incoming mail | |
1316 | can be sorted into separate files/directories and arbitrary commands can be | |
1317 | executed on mail arrival. Procmail is considered stable, but is no longer | |
1318 | maintained.") | |
1319 | (license gpl2+))) ;; procmail allows to choose the | |
1320 | ;; nonfree Artistic License 1.0 | |
1321 | ;; as alternative to the GPL2+. | |
1322 | ;; This option is not listed here. | |
e90819c4 | 1323 | |
61c30e9d LF |
1324 | (define-public khard |
1325 | (package | |
1326 | (name "khard") | |
d99f6ffb | 1327 | (version "0.9.0") |
61c30e9d LF |
1328 | (source (origin |
1329 | (method url-fetch) | |
1330 | (uri (pypi-uri name version)) | |
1331 | (sha256 | |
1332 | (base32 | |
d99f6ffb | 1333 | "0y83rji4f270hbb41m4jpr0z3yzvpvbsl32mpg9d38hlydw8fk1s")))) |
61c30e9d LF |
1334 | (build-system python-build-system) |
1335 | (arguments | |
1336 | `(#:python ,python-2 ; only python-2 is supported. | |
1337 | #:phases | |
1338 | (modify-phases %standard-phases | |
1339 | (add-before 'build 'disable-egg-compression | |
1340 | ;; Do not compress the egg. | |
1341 | (lambda _ | |
1342 | (let ((port (open-file "setup.cfg" "a"))) | |
1343 | (display "\n[easy_install]\nzip_ok = 0\n" | |
1344 | port) | |
1345 | (close-port port) | |
1346 | #t))) | |
1347 | (add-after 'install 'install-doc | |
1348 | (lambda* (#:key outputs #:allow-other-keys) | |
1349 | (let* ((out (assoc-ref outputs "out")) | |
1350 | (doc (string-append out "/share/doc/khard"))) | |
1351 | (copy-recursively "misc/khard" doc))))))) | |
1352 | (native-inputs | |
1353 | `(("python2-setuptools" ,python2-setuptools))) | |
1354 | (propagated-inputs | |
1355 | `(("python2-vobject" ,python2-vobject) | |
1356 | ("python2-pyyaml" ,python2-pyyaml) | |
1357 | ("python2-atomicwrites" ,python2-atomicwrites) | |
1358 | ("python2-configobj" ,python2-configobj))) | |
1359 | (synopsis "Console address book using CardDAV") | |
1360 | (description "Khard is an address book for the console. It creates, reads, | |
1361 | modifies and removes CardDAV address book entries at your local machine. For | |
1362 | synchronizing with a remote address book, @command{vdirsyncer} is recommended. | |
1363 | Khard can also be used from within the email client @command{mutt}.") | |
1364 | (home-page "https://github.com/scheibler/khard") | |
1365 | (license gpl3+))) | |
be0c5733 DM |
1366 | |
1367 | (define-public perl-mail-spf | |
1368 | (package | |
1369 | (name "perl-mail-spf") | |
1370 | (version "v2.9.0") | |
1371 | (source | |
1372 | (origin | |
1373 | (method url-fetch) | |
1374 | (uri (string-append | |
1375 | "mirror://cpan/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-" | |
1376 | version | |
1377 | ".tar.gz")) | |
1378 | (sha256 | |
1379 | (base32 | |
1380 | "0qk1rfgfm5drj4iyniiabrasrpqv570vzhgz66lwgb67y4amkjv1")))) | |
1381 | (build-system perl-build-system) | |
1382 | (native-inputs | |
1383 | `(("perl-module-build" ,perl-module-build) | |
1384 | ("perl-net-dns-resolver-programmable" | |
1385 | ,perl-net-dns-resolver-programmable))) | |
1386 | (arguments | |
1387 | `(#:phases (modify-phases %standard-phases | |
1388 | (add-before 'configure 'modify-Build.PL | |
1389 | (lambda* (#:key outputs #:allow-other-keys) | |
1390 | (substitute* "Build.PL" | |
1391 | (("'/usr/sbin'") (string-append "'" | |
1392 | (assoc-ref outputs "out") | |
1393 | "/sbin'"))) | |
1394 | #t))))) | |
1395 | (inputs | |
1396 | `(("perl-error" ,perl-error) | |
1397 | ("perl-net-dns" ,perl-net-dns) | |
1398 | ("perl-netaddr-ip" ,perl-netaddr-ip) | |
1399 | ("perl-uri" ,perl-uri))) | |
1400 | (home-page | |
1401 | "http://search.cpan.org/dist/Mail-SPF") | |
1402 | (synopsis | |
1403 | "Perl implementation of Sender Policy Framework") | |
1404 | (description "Mail::SPF is the Sender Policy Framework implemented | |
1405 | in Perl.") | |
1406 | (license bsd-3))) | |
24262239 CL |
1407 | |
1408 | (define-public mb2md | |
1409 | (package | |
1410 | (name "mb2md") | |
1411 | (version "3.20") | |
1412 | (source (origin | |
1413 | (method url-fetch) | |
1414 | (uri (string-append | |
1415 | "http://batleth.sapienti-sat.org/projects/mb2md/mb2md-" | |
1416 | version ".pl.gz")) | |
1417 | (sha256 | |
1418 | (base32 | |
1419 | "0bvkky3c90738h3skd2f1b2yy5xzhl25cbh9w2dy97rs86ssjidg")))) | |
1420 | (build-system trivial-build-system) | |
1421 | (arguments | |
1422 | '(#:modules ((guix build utils)) | |
1423 | #:builder | |
1424 | (begin | |
1425 | (use-modules (guix build utils)) | |
1426 | (let* ((source (assoc-ref %build-inputs "source")) | |
1427 | (out (assoc-ref %outputs "out")) | |
1428 | (bin (string-append out "/bin")) | |
1429 | (perl (assoc-ref %build-inputs "perl")) | |
1430 | (gzip (assoc-ref %build-inputs "gzip")) | |
1431 | (perl-timedate (assoc-ref %build-inputs "perl-timedate")) | |
1432 | (perl5lib (string-append perl-timedate "/lib/perl5/site_perl"))) | |
1433 | (mkdir-p bin) | |
1434 | (with-directory-excursion bin | |
1435 | (copy-file source "mb2md.gz") | |
1436 | (system* (string-append gzip "/bin/gzip") "-d" "mb2md.gz") | |
1437 | (substitute* "mb2md" | |
1438 | (("#!/usr/bin/perl") | |
1439 | (string-append "#!/usr/bin/perl -I " perl5lib))) | |
1440 | (patch-shebang "mb2md" (list (string-append perl "/bin"))) | |
1441 | (chmod "mb2md" #o555)) | |
1442 | #t)))) | |
1443 | (native-inputs `(("gzip", gzip))) | |
1444 | (inputs `(("perl" ,perl) | |
1445 | ("perl-timedate" ,perl-timedate))) | |
1446 | (home-page "http://batleth.sapienti-sat.org/projects/mb2md/") | |
1447 | (synopsis "Mbox to maildir converter") | |
1448 | (description | |
1449 | "Mb2md is a Perl script that takes one or more mbox format files and | |
1450 | converts them to maildir format directories.") | |
1451 | (license public-domain))) | |
e0d7b421 AI |
1452 | |
1453 | (define-public mpop | |
1454 | (package | |
1455 | (name "mpop") | |
1456 | (version "1.2.5") | |
1457 | (source | |
1458 | (origin | |
1459 | (method url-fetch) | |
1460 | (uri (string-append "http://downloads.sourceforge.net/mpop/mpop-" | |
1461 | version ".tar.xz")) | |
1462 | (sha256 | |
1463 | (base32 | |
1464 | "0n0ij258kn8lfa6nyr6l6plc4hf1wvyf1hkwicvdbjqdqrgjnq81")))) | |
1465 | (build-system gnu-build-system) | |
1466 | (inputs | |
1467 | `(("gnutls" ,gnutls) | |
1468 | ("libidn" ,libidn))) | |
1469 | (native-inputs | |
1470 | `(("pkg-config" ,pkg-config))) | |
1471 | (arguments | |
1472 | `(#:configure-flags (list "--with-tls=gnutls"))) | |
1473 | (home-page "http://mpop.sourceforge.net/") | |
1474 | (synopsis "POP3 mail client") | |
1475 | (description "mpop is a small and fast POP3 client suitable as a | |
1476 | fetchmail replacement. | |
1477 | ||
1478 | mpop supports multiple accounts, header based mail filtering, delivery | |
1479 | to mbox files, maildir folders or a Mail Delivery Agent (MDA), | |
1480 | TLS/SSL, several authentication methods, Internationalized Domain | |
1481 | Names (IDN) and SOCKS proxies.") | |
1482 | (license gpl3+))) | |
74c0282c | 1483 | |
1484 | (define-public mhonarc | |
1485 | (package | |
1486 | (name "mhonarc") | |
1487 | (version "2.6.19") | |
1488 | (source | |
1489 | (origin | |
1490 | (method url-fetch) | |
1491 | (uri (string-append "mirror://cpan/authors/id/E/EH/EHOOD/MHonArc-" | |
1492 | version ".tar.gz")) | |
1493 | (sha256 | |
1494 | (base32 | |
1495 | "0ll3v93yji334zqp6xfzfxc0127pmjcznmai1l5q6dzawrs2igzq")))) | |
1496 | (build-system perl-build-system) | |
1497 | (home-page "https://www.mhonarc.org/") | |
1498 | (synopsis "Create HTML archives of mail/news messages") | |
1499 | (description | |
1500 | "MHonArc is a Perl mail-to-HTML converter. MHonArc | |
1501 | provides HTML mail archiving with index, mail thread linking, | |
1502 | etc; plus other capabilities including support for MIME and | |
1503 | powerful user customization features.") | |
1504 | (license gpl2+))) | |
5d87088c JD |
1505 | |
1506 | ||
1507 | (define-public sendmail | |
1508 | (package | |
1509 | (name "sendmail") | |
1510 | (version "8.15.2") | |
1511 | (source | |
1512 | (origin | |
1513 | (method url-fetch) | |
1514 | (uri (string-append | |
1515 | "ftp://ftp.sendmail.org/pub/sendmail/sendmail." | |
1516 | version ".tar.gz")) | |
1517 | (sha256 | |
1518 | (base32 | |
1519 | "0fdl9ndmspqspdlmghzxlaqk56j3yajk52d7jxcg21b7sxglpy94")))) | |
1520 | (build-system gnu-build-system) | |
1521 | (arguments | |
1522 | `(#:phases | |
1523 | (modify-phases %standard-phases | |
1524 | (add-before 'build 'replace-/bin/sh | |
1525 | (lambda _ | |
1526 | (substitute* | |
1527 | (append | |
1528 | (list "smrsh/smrsh.c" "sendmail/conf.c" "contrib/mailprio" | |
1529 | "contrib/mmuegel" "devtools/bin/configure.sh") | |
1530 | (find-files "." ".*\\.m4") | |
1531 | (find-files "." ".*\\.cf")) | |
1532 | (("/bin/sh") (which "bash"))) | |
1533 | ||
1534 | (substitute* "devtools/bin/Build" | |
1535 | (("SHELL=/bin/sh") (string-append "SHELL=" (which "bash")))) | |
1536 | #t)) | |
1537 | (replace 'configure | |
1538 | (lambda _ | |
1539 | ||
1540 | ;; Render harmless any attempts to chown or chgrp | |
1541 | (substitute* "devtools/bin/install.sh" | |
1542 | (("owner=\\$2") "owner=''") | |
1543 | (("group=\\$2") "group=''")) | |
1544 | ||
1545 | (with-output-to-file "devtools/Site/site.config.m4" | |
1546 | (lambda () | |
1547 | (format #t " | |
1548 | define(`confCC', `gcc') | |
1549 | define(`confOPTIMIZE', `-g -O2') | |
1550 | define(`confLIBS', `-lresolv') | |
1551 | define(`confINSTALL', `~a/devtools/bin/install.sh') | |
1552 | define(`confDEPEND_TYPE', `CC-M') | |
1553 | define(`confINST_DEP', `') | |
1554 | " (getcwd)))))) | |
1555 | (replace 'build | |
1556 | (lambda _ | |
1557 | (and (zero? (system* "sh" "Build")) | |
1558 | (with-directory-excursion "cf/cf" | |
1559 | (begin | |
1560 | (copy-file "generic-linux.mc" "sendmail.mc") | |
1561 | (zero? (system* "sh" "Build" "sendmail.cf"))))))) | |
1562 | (add-before 'install 'pre-install | |
1563 | (lambda _ | |
1564 | (let ((out (assoc-ref %outputs "out"))) | |
1565 | (mkdir-p (string-append out "/usr/bin")) | |
1566 | (mkdir-p (string-append out "/usr/sbin")) | |
1567 | (mkdir-p (string-append out "/etc/mail")) | |
1568 | (setenv "DESTDIR" out) | |
1569 | (with-directory-excursion "cf/cf" | |
1570 | (zero? (system* "sh" "Build" "install-cf"))))))) | |
1571 | ;; There is no make check. There are some post installation tests, but those | |
1572 | ;; require root privileges | |
1573 | #:tests? #f)) | |
1574 | (inputs | |
1575 | `(("m4" ,m4) | |
1576 | ("perl" ,perl))) | |
1577 | (home-page "http://sendmail.org") | |
1578 | (synopsis | |
1579 | "Highly configurable Mail Transfer Agent (MTA)") | |
1580 | (description | |
1581 | "Sendmail is a mail transfer agent (MTA) originally developed by Eric | |
1582 | Allman. It is highly configurable and supports many delivery methods and many | |
1583 | transfer protocols.") | |
1584 | (license (non-copyleft "file://LICENSE" | |
1585 | "See LICENSE in the distribution.")))) | |
1586 | ||
8b53366c | 1587 | (define-public opensmtpd |
1588 | (package | |
1589 | (name "opensmtpd") | |
1590 | (version "5.9.2p1") | |
1591 | (source (origin | |
1592 | (method url-fetch) | |
1593 | (uri (string-append "https://www.opensmtpd.org/archives/" | |
1594 | name "-" version ".tar.gz")) | |
1595 | (sha256 | |
1596 | (base32 | |
1597 | "07d7f1m5sxyz6mkk228rcm7fsf7350994ayvmhgph333q5rz48im")))) | |
1598 | (build-system gnu-build-system) | |
1599 | (inputs | |
1600 | `(("bdb" ,bdb) | |
1601 | ("libressl" ,libressl) | |
1602 | ("libevent" ,libevent) | |
1603 | ("libasr" ,libasr) | |
1604 | ("linux-pam" ,linux-pam) | |
1605 | ("zlib" ,zlib))) | |
1606 | (native-inputs | |
1607 | `(("bison" ,bison))) | |
1608 | (arguments | |
1609 | `(#:configure-flags (list "--with-table-db" "--localstatedir=/var" | |
1610 | "--with-user-smtpd=smtpd" "--with-user-queue=smtpq" | |
1611 | "--with-group-queue=smtpq") | |
1612 | #:phases | |
1613 | (modify-phases %standard-phases | |
1614 | ;; OpenSMTPD provides a single utility smtpctl to control the daemon and | |
1615 | ;; the local submission subsystem. To accomodate systems that require | |
1616 | ;; historical interfaces such as sendmail, newaliases or makemap, the | |
1617 | ;; smtpctl utility can operate in compatibility mode if called with the | |
1618 | ;; historical name. | |
1619 | (add-after 'install 'install-compabilitymode | |
1620 | (lambda _ | |
1621 | (let* ((out (assoc-ref %outputs "out")) | |
1622 | (sbin (string-append out "/sbin/"))) | |
1623 | (for-each (lambda (cmd) | |
1624 | (symlink "smtpctl" (string-append sbin cmd))) | |
1625 | '("makemap" "sendmail" "send-mail" | |
1626 | "newaliases" "mailq"))) | |
1627 | #t))))) | |
1628 | (synopsis "Lightweight SMTP daemon") | |
1629 | (description | |
1630 | "OpenSMTPD is an implementation of the server-side SMTP protocol, with | |
1631 | some additional standard extensions. It allows ordinary machines to exchange | |
1632 | e-mails with other systems speaking the SMTP protocol.") | |
1633 | (home-page "https://www.opensmtpd.org") | |
1634 | (license (list bsd-2 bsd-3 bsd-4 (non-copyleft "file://COPYING") | |
19262a71 | 1635 | public-domain isc license:openssl)))) |
152ffe7c | 1636 | |
1637 | (define-public opensmtpd-extras | |
1638 | (package | |
1639 | (name "opensmtpd-extras") | |
1640 | (version "5.7.1") | |
1641 | (source (origin | |
1642 | (method url-fetch) | |
1643 | (uri (string-append "https://www.opensmtpd.org/archives/" | |
1644 | name "-" version ".tar.gz")) | |
1645 | (sha256 | |
1646 | (base32 | |
1647 | "1kld4hxgz792s0cb2gl7m2n618ikzqkj88w5dhaxdrxg4x2c4vdm")))) | |
1648 | (build-system gnu-build-system) | |
1649 | (inputs | |
1650 | `(("libressl" ,libressl) | |
1651 | ("libevent" ,libevent) | |
1652 | ("libasr" ,libasr) | |
1653 | ("python-2" ,python-2) | |
1654 | ("opensmtpd" ,opensmtpd) | |
1655 | ("perl" ,perl) | |
1656 | ("lua" ,lua) | |
1657 | ("postgresql" ,postgresql) | |
1658 | ("sqlite" ,sqlite) | |
1659 | ("linux-pam" ,linux-pam))) | |
1660 | (native-inputs | |
1661 | `(("bison" ,bison) | |
1662 | ("pkg-config" ,pkg-config) | |
1663 | ("groff" ,groff) | |
1664 | ("automake" ,automake) | |
1665 | ("autoconf" ,autoconf))) | |
1666 | (arguments | |
1667 | `(;; We have to configure it like this because the default checks for for example | |
1668 | ;; python in /usr/local/bin, /usr/bin and fails otherwise. | |
1669 | #:configure-flags (list | |
1670 | "--with-filter-clamav" "--with-filter-dkim-signer" | |
1671 | "--with-filter-dnsbl" "--with-filter-lua" | |
1672 | "--with-filter-monkey" "--with-filter-pause" | |
1673 | "--with-filter-perl" "--with-filter-python" | |
1674 | "--with-filter-regex" "--with-filter-spamassassin" | |
1675 | "--with-filter-stub" "--with-filter-trace" | |
1676 | "--with-filter-void" | |
1677 | ||
1678 | "--with-queue-null" "--with-queue-python" | |
1679 | "--with-queue-ram" "--with-queue-stub" | |
1680 | ||
1681 | "--with-scheduler-python" "--with-scheduler-ram" | |
1682 | "--with-scheduler-stub" | |
1683 | ||
1684 | "--with-table-ldap" ; "--with-table-mysql" | |
1685 | "--with-table-passwd" "--with-table-postgres" | |
1686 | "--with-table-python" "--with-table-socketmap" | |
1687 | "--with-table-sqlite" "--with-table-stub" | |
1688 | ;;"--with-table-redis" ; TODO: package hiredis | |
1689 | ||
1690 | "--with-user=smtpd" "--with-privsep-user=smtpd" | |
1691 | "--localstatedir=/var" "--sysconfdir=/etc" | |
1692 | "--with-lua-type=lua" ; can use lua or luajit | |
1693 | ||
1694 | (string-append "--with-python=" | |
1695 | (assoc-ref %build-inputs "python-2")) | |
1696 | (string-append "--with-lua=" | |
1697 | (assoc-ref %build-inputs "lua"))))) | |
19262a71 LC |
1698 | (license (list bsd-2 bsd-3 bsd-4 |
1699 | public-domain isc license:openssl)) | |
152ffe7c | 1700 | (synopsis "Extra tables, filters, and various other addons for OpenSMTPD") |
1701 | (description | |
1702 | "This package provides extra tables, filters, and various other addons | |
1703 | for OpenSMTPD to extend its functionality.") | |
1704 | (home-page "https://www.opensmtpd.org"))) | |
6d3dda4f | 1705 | |
1706 | (define-public python-mailmanclient | |
1707 | (package | |
1708 | (name "python-mailmanclient") | |
1709 | (version "1.0.1") | |
1710 | (source | |
1711 | (origin | |
1712 | (method url-fetch) | |
1713 | (uri (pypi-uri "mailmanclient" version)) | |
1714 | (sha256 | |
1715 | (base32 | |
1716 | "1cfjh45fgbsax5hjj2inq9nk33dhdvh63xhysc8dhnqidgqgm8c5")))) | |
1717 | (build-system python-build-system) | |
1718 | (arguments | |
1719 | `(#:tests? #f)) ; Requires mailman running | |
1720 | (inputs | |
1721 | `(("python-six" ,python-six) | |
1722 | ("python-httplib2" ,python-httplib2))) | |
1723 | (home-page "https://launchpad.net/mailman.client") | |
1724 | (synopsis "Python bindings for the Mailman 3 REST API") | |
1725 | (description | |
1726 | "The mailmanclient library provides official Python bindings for | |
1727 | the GNU Mailman 3 REST API.") | |
7f8393f3 | 1728 | (properties `((python2-variant . ,(delay python2-mailmanclient)))) |
6d3dda4f | 1729 | (license lgpl3+))) |
1730 | ||
1731 | (define-public python2-mailmanclient | |
1732 | (let ((base (package-with-python2 | |
1733 | (strip-python2-variant python-mailmanclient)))) | |
1734 | (package (inherit base) | |
1735 | (native-inputs | |
1736 | `(("python2-setuptools" ,python2-setuptools)))))) |