Commit | Line | Data |
---|---|---|
a661e420 | 1 | ;;; GNU Guix --- Functional package management for GNU |
3f3c0ab4 | 2 | ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org> |
ee2b2d2f | 3 | ;;; Copyright © 2014, 2015, 2017 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> |
a047122c | 11 | ;;; Copyright © 2015, 2016, 2017 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> |
3f81ca32 | 17 | ;;; Copyright © 2016, 2017 Troy Sankey <sankeytms@gmail.com> |
4a78fd46 | 18 | ;;; Copyright © 2016, 2017, 2018 Nils Gillmann <ng0@n0.is> |
24262239 | 19 | ;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org> |
d72f59a4 | 20 | ;;; Copyright © 2016, 2017, 2018 Arun Isaac <arunisaac@systemreboot.net> |
5d87088c | 21 | ;;; Copyright © 2016 John Darrington <jmd@gnu.org> |
8e020519 | 22 | ;;; Copyright © 2016, 2018 Marius Bakke <mbakke@fastmail.com> |
3e9750c3 | 23 | ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be> |
6800c797 | 24 | ;;; Copyright © 2017 Kyle Meyer <kyle@kyleam.com> |
864f3f1d | 25 | ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
7c16151a | 26 | ;;; Copyright © 2017 Rene Saavedra <rennes@openmailbox.org> |
e5fdc334 | 27 | ;;; Copyright © 2018 Pierre Langlois <pierre.langlois@gmx.com> |
c115a1c8 | 28 | ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com> |
a661e420 LC |
29 | ;;; |
30 | ;;; This file is part of GNU Guix. | |
31 | ;;; | |
32 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
33 | ;;; under the terms of the GNU General Public License as published by | |
34 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
35 | ;;; your option) any later version. | |
36 | ;;; | |
37 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
38 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
39 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
40 | ;;; GNU General Public License for more details. | |
41 | ;;; | |
42 | ;;; You should have received a copy of the GNU General Public License | |
43 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
44 | ||
1fdd3ee2 | 45 | (define-module (gnu packages mail) |
59a43334 | 46 | #:use-module (gnu packages) |
b0eb2af2 | 47 | #:use-module (gnu packages aspell) |
d983a14f | 48 | #:use-module (gnu packages autotools) |
d2938d59 | 49 | #:use-module (gnu packages base) |
e8435c4d | 50 | #:use-module (gnu packages backup) |
ee886454 | 51 | #:use-module (gnu packages bash) |
f8ae32a2 | 52 | #:use-module (gnu packages bison) |
fc9a93cb | 53 | #:use-module (gnu packages calendar) |
ac257f12 | 54 | #:use-module (gnu packages check) |
944a5cdd | 55 | #:use-module (gnu packages crypto) |
f58f767b | 56 | #:use-module (gnu packages curl) |
4fd6bf53 | 57 | #:use-module (gnu packages cyrus-sasl) |
81ce19f4 | 58 | #:use-module (gnu packages databases) |
d983a14f | 59 | #:use-module (gnu packages dejagnu) |
8a3741e6 | 60 | #:use-module (gnu packages django) |
8b53366c | 61 | #:use-module (gnu packages dns) |
7a6213cb | 62 | #:use-module (gnu packages documentation) |
d2938d59 | 63 | #:use-module (gnu packages emacs) |
e8435c4d | 64 | #:use-module (gnu packages enchant) |
e8435c4d | 65 | #:use-module (gnu packages ghostscript) |
aa20b004 | 66 | #:use-module (gnu packages gettext) |
d2938d59 | 67 | #:use-module (gnu packages glib) |
e8435c4d | 68 | #:use-module (gnu packages gnome) |
524e1df6 | 69 | #:use-module (gnu packages gnupg) |
152ffe7c | 70 | #:use-module (gnu packages groff) |
d6e941bc | 71 | #:use-module (gnu packages gsasl) |
e8435c4d | 72 | #:use-module (gnu packages gtk) |
1ffa7090 | 73 | #:use-module (gnu packages guile) |
f8ae32a2 | 74 | #:use-module (gnu packages flex) |
b0eb2af2 | 75 | #:use-module (gnu packages kerberos) |
e8435c4d | 76 | #:use-module (gnu packages libcanberra) |
8b53366c | 77 | #:use-module (gnu packages libevent) |
d6e941bc | 78 | #:use-module (gnu packages libidn) |
d983a14f | 79 | #:use-module (gnu packages linux) |
152ffe7c | 80 | #:use-module (gnu packages lua) |
d983a14f | 81 | #:use-module (gnu packages m4) |
1ffa7090 | 82 | #:use-module (gnu packages ncurses) |
b0eb2af2 | 83 | #:use-module (gnu packages openldap) |
66cc3ab2 | 84 | #:use-module (gnu packages pcre) |
13f04f48 | 85 | #:use-module (gnu packages perl) |
3919a31a | 86 | #:use-module (gnu packages python) |
1b2f753d | 87 | #:use-module (gnu packages python-web) |
1ffa7090 | 88 | #:use-module (gnu packages readline) |
d2938d59 | 89 | #:use-module (gnu packages search) |
1ffa7090 | 90 | #:use-module (gnu packages texinfo) |
681a6588 MW |
91 | #:use-module (gnu packages compression) |
92 | #:use-module (gnu packages glib) | |
93 | #:use-module (gnu packages pkg-config) | |
a7e59c50 | 94 | #:use-module (gnu packages flex) |
1bd3f849 | 95 | #:use-module (gnu packages gdb) |
6cf27c89 | 96 | #:use-module (gnu packages man) |
3e9750c3 | 97 | #:use-module (gnu packages ruby) |
1bd3f849 | 98 | #:use-module (gnu packages samba) |
6cf27c89 | 99 | #:use-module (gnu packages screen) |
b0eb2af2 | 100 | #:use-module (gnu packages tcl) |
33dc54b0 | 101 | #:use-module (gnu packages time) |
a7fd7b68 | 102 | #:use-module (gnu packages tls) |
be0c5733 DM |
103 | #:use-module (gnu packages networking) |
104 | #:use-module (gnu packages web) | |
7c16151a | 105 | #:use-module (gnu packages webkit) |
54a402dd | 106 | #:use-module (gnu packages w3m) |
f58f767b | 107 | #:use-module (gnu packages xml) |
e8435c4d | 108 | #:use-module (gnu packages xorg) |
7596ddf3 | 109 | #:use-module (gnu packages docbook) |
d983a14f | 110 | #:use-module ((guix licenses) |
1679923a | 111 | #:select (fdl1.1+ gpl2 gpl2+ gpl3 gpl3+ lgpl2.1 lgpl2.1+ lgpl3+ |
24262239 | 112 | non-copyleft (expat . license:expat) bsd-3 |
8b53366c | 113 | public-domain bsd-4 isc (openssl . license:openssl) |
2f3108ad | 114 | bsd-2 x11-style agpl3 asl2.0 perl-license)) |
a661e420 LC |
115 | #:use-module (guix packages) |
116 | #:use-module (guix download) | |
f8ae32a2 | 117 | #:use-module (guix git-download) |
29a7c98a | 118 | #:use-module (guix utils) |
681a6588 | 119 | #:use-module (guix build-system gnu) |
ebda902f | 120 | #:use-module (guix build-system perl) |
24262239 CL |
121 | #:use-module (guix build-system python) |
122 | #:use-module (guix build-system trivial)) | |
a661e420 LC |
123 | |
124 | (define-public mailutils | |
125 | (package | |
126 | (name "mailutils") | |
f9035ef2 | 127 | (version "3.4") |
a661e420 LC |
128 | (source (origin |
129 | (method url-fetch) | |
130 | (uri (string-append "mirror://gnu/mailutils/mailutils-" | |
131 | version ".tar.bz2")) | |
132 | (sha256 | |
133 | (base32 | |
3f3c0ab4 LC |
134 | "1dn71p85wlyisnwsb485sk3q5v393k3dizsa9fmimskdwjwgk3ch")) |
135 | (patches | |
136 | (search-patches "mailutils-uninitialized-memory.patch")) | |
137 | (snippet | |
138 | ;; For a rebuild of the Flex/Bison byproducts touched by the | |
139 | ;; patch above. | |
140 | '(for-each delete-file | |
141 | '("mh/mh_alias_lex.c" | |
142 | "libmailutils/cfg/parser.c"))))) | |
a661e420 LC |
143 | (build-system gnu-build-system) |
144 | (arguments | |
de75f0b1 EF |
145 | '(#:phases |
146 | (modify-phases %standard-phases | |
baa6790b | 147 | (add-before 'check 'prepare-test-suite |
de75f0b1 EF |
148 | (lambda _ |
149 | ;; Use the right file name for `cat'. | |
150 | (substitute* "testsuite/lib/mailutils.exp" | |
151 | (("/bin/cat") | |
152 | (which "cat"))) | |
14253017 | 153 | |
de75f0b1 EF |
154 | ;; Tests try to invoke 'maidag' such that it looks up the |
155 | ;; 'root' user, which does not exist in the build | |
156 | ;; environment. | |
157 | (substitute* "maidag/tests/testsuite" | |
158 | (("root <") "nobody <") | |
159 | (("spool/root") "spool/nobody") | |
160 | (("root@localhost") "nobody@localhost")) | |
14253017 | 161 | |
de75f0b1 EF |
162 | ;; The 'pipeact.at' tests generate a shell script; make |
163 | ;; sure it uses the right shell. | |
164 | (substitute* '("sieve/tests/testsuite" | |
165 | "mh/tests/testsuite") | |
166 | (("#! /bin/sh") | |
167 | (string-append "#!" (which "sh")))) | |
14253017 | 168 | |
de75f0b1 EF |
169 | (substitute* "mh/tests/testsuite" |
170 | (("moreproc: /bin/cat") | |
171 | (string-append "moreproc: " (which "cat")))) | |
14253017 | 172 | |
de75f0b1 EF |
173 | ;; XXX: The comsatd tests rely on being able to open |
174 | ;; /dev/tty, but that gives ENODEV in the build | |
175 | ;; environment. Thus, ignore test failures here. | |
176 | (substitute* "comsat/tests/Makefile.in" | |
177 | (("\\$\\(SHELL\\) \\$\\(TESTSUITE\\)" all) | |
178 | (string-append "-" all))) | |
14253017 | 179 | |
baa6790b LC |
180 | ;; 'frm' tests expect write access to $HOME. |
181 | (setenv "HOME" (getcwd)) | |
182 | ||
183 | ;; Avoid the message "I'm going to create the standard MH path | |
184 | ;; for you", which would lead to one test failure (when diffing | |
185 | ;; stdout of 'fmtcheck'.) | |
186 | (call-with-output-file ".mh_profile" | |
187 | (lambda (port) | |
188 | (format port "Path: ~a/Mail-for-tests~%" | |
189 | (getcwd)))) | |
190 | ||
de75f0b1 EF |
191 | #t))) |
192 | ;; TODO: Add `--with-sql'. | |
abe5d2dc | 193 | #:configure-flags '("--sysconfdir=/etc") |
a661e420 | 194 | #:parallel-tests? #f)) |
3f3c0ab4 LC |
195 | (native-inputs |
196 | ;; Note: Bison and Flex needed due to | |
197 | ;; 'mailutils-uninitialized-memory.patch'. | |
198 | `(("bison" ,bison) | |
199 | ("flex" ,flex) | |
200 | ("perl" ,perl))) ;for 'gylwrap' | |
a661e420 LC |
201 | (inputs |
202 | `(("dejagnu" ,dejagnu) | |
203 | ("m4" ,m4) | |
204 | ("texinfo" ,texinfo) | |
205 | ("guile" ,guile-2.0) | |
206 | ("gnutls" ,gnutls) | |
207 | ("ncurses" ,ncurses) | |
abe5d2dc | 208 | ("readline" ,readline) |
a661e420 | 209 | ("linux-pam" ,linux-pam) |
3246cc91 | 210 | ("libltdl" ,libltdl) |
01eafd38 | 211 | ("gdbm" ,gdbm))) |
6fd52309 | 212 | (home-page "https://mailutils.org") |
f50d2669 | 213 | (synopsis "Utilities and library for reading and serving mail") |
a661e420 | 214 | (description |
79c311b8 LC |
215 | "GNU Mailutils is a collection of programs for managing, viewing and |
216 | processing electronic mail. It contains both utilities and server daemons | |
217 | and all operate in a protocol-agnostic way. The underlying libraries are | |
218 | also available, simplifying the addition of mail capabilities to new | |
219 | software.") | |
a661e420 LC |
220 | (license |
221 | ;; Libraries are under LGPLv3+, and programs under GPLv3+. | |
222 | (list gpl3+ lgpl3+)))) | |
d983a14f AE |
223 | |
224 | (define-public fetchmail | |
225 | (package | |
226 | (name "fetchmail") | |
227 | (version "6.3.26") | |
228 | (source (origin | |
229 | (method url-fetch) | |
230 | (uri (string-append "mirror://sourceforge/fetchmail/branch_6.3/fetchmail-" | |
231 | version ".tar.xz")) | |
232 | (sha256 | |
233 | (base32 | |
234 | "0l78ayvi9dm8hd190gl139cs2xqsrf7r9ncilslw20mgvd6cbd3r")))) | |
235 | (build-system gnu-build-system) | |
236 | (inputs | |
237 | `(("openssl" ,openssl))) | |
238 | (arguments | |
239 | `(#:configure-flags (list (string-append "--with-ssl=" | |
240 | (assoc-ref %build-inputs "openssl"))))) | |
07af3e5e | 241 | (home-page "http://www.fetchmail.info/") |
ae2189a9 | 242 | (synopsis "Remote-mail retrieval and forwarding utility") |
d983a14f AE |
243 | (description |
244 | "Fetchmail is a full-featured, robust, well-documented remote-mail | |
245 | retrieval and forwarding utility intended to be used over on-demand | |
246 | TCP/IP links (such as SLIP or PPP connections). It supports every | |
247 | remote-mail protocol now in use on the Internet: POP2, POP3, RPOP, APOP, | |
248 | KPOP, all flavors of IMAP, ETRN, and ODMR. It can even support IPv6 | |
249 | and IPSEC. | |
250 | ||
251 | Fetchmail retrieves mail from remote mail servers and forwards it via SMTP, | |
252 | so it can then be read by normal mail user agents such as mutt, elm | |
253 | or BSD Mail. It allows all your system MTA's filtering, forwarding, and | |
254 | aliasing facilities to work just as they would on normal mail.") | |
255 | (license gpl2+))) ; most files are actually public domain or x11 | |
13f04f48 AE |
256 | |
257 | (define-public mutt | |
258 | (package | |
259 | (name "mutt") | |
cf10095c | 260 | (version "1.9.5") |
13f04f48 AE |
261 | (source (origin |
262 | (method url-fetch) | |
7736bae9 LF |
263 | (uri (string-append "https://bitbucket.org/mutt/mutt/downloads/" |
264 | "mutt-" version ".tar.gz")) | |
13f04f48 AE |
265 | (sha256 |
266 | (base32 | |
cf10095c | 267 | "0lsp72lm3cw490x7lhzia7h8f591bab2mr7qpscaj22fmrj7wqdz")) |
fc1adab1 | 268 | (patches (search-patches "mutt-store-references.patch")))) |
13f04f48 AE |
269 | (build-system gnu-build-system) |
270 | (inputs | |
4fd6bf53 | 271 | `(("cyrus-sasl" ,cyrus-sasl) |
b0bb0136 | 272 | ("gdbm" ,gdbm) |
524e1df6 | 273 | ("gpgme" ,gpgme) |
4fd6bf53 | 274 | ("ncurses" ,ncurses) |
13f04f48 AE |
275 | ("openssl" ,openssl) |
276 | ("perl" ,perl))) | |
277 | (arguments | |
278 | `(#:configure-flags '("--enable-smtp" | |
279 | "--enable-imap" | |
280 | "--enable-pop" | |
524e1df6 | 281 | "--enable-gpgme" |
b0bb0136 | 282 | "--enable-hcache" ; for header caching |
0323fe80 | 283 | "--enable-sidebar" |
13f04f48 | 284 | "--with-ssl" |
4fd6bf53 | 285 | "--with-sasl" |
13f04f48 AE |
286 | ;; so that mutt does not check whether the path |
287 | ;; exists, which it does not in the chroot | |
288 | "--with-mailpath=/var/mail"))) | |
289 | (home-page "http://www.mutt.org/") | |
290 | (synopsis "Mail client") | |
291 | (description | |
292 | "Mutt is a small but very powerful text-based mail client for Unix | |
293 | operating systems.") | |
294 | (license gpl2+))) | |
681a6588 | 295 | |
7596ddf3 | 296 | (define-public neomutt |
297 | (package | |
7596ddf3 | 298 | (name "neomutt") |
faf44e38 | 299 | (version "20180323") |
7596ddf3 | 300 | (source |
301 | (origin | |
302 | (method url-fetch) | |
303 | (uri (string-append "https://github.com/" name "/" name | |
304 | "/archive/" name "-" version ".tar.gz")) | |
7596ddf3 | 305 | (sha256 |
306 | (base32 | |
faf44e38 | 307 | "12v7zkm809cvjxfz0n7jb4qa410ns1ydyf0gjin99vbdrlj88jac")))) |
32fc1ec3 | 308 | (build-system gnu-build-system) |
7596ddf3 | 309 | (inputs |
310 | `(("cyrus-sasl" ,cyrus-sasl) | |
311 | ("gdbm" ,gdbm) | |
312 | ("gpgme" ,gpgme) | |
313 | ("ncurses" ,ncurses) | |
314 | ("gnutls" ,gnutls) | |
315 | ("openssl" ,openssl) ;For smime | |
316 | ("perl" ,perl) | |
5c95465e | 317 | ("kyotocabinet" ,kyotocabinet) |
7596ddf3 | 318 | ("libxslt" ,libxslt) |
319 | ("libidn" ,libidn) | |
320 | ("libxml2" ,libxml2) | |
5c95465e | 321 | ("lmdb" ,lmdb) |
7596ddf3 | 322 | ("notmuch" ,notmuch))) |
323 | (native-inputs | |
54a402dd | 324 | `(("automake" ,automake) |
aa20b004 | 325 | ("gettext-minimal" ,gettext-minimal) |
54a402dd | 326 | ("pkg-config" ,pkg-config) |
327 | ("docbook-xsl" ,docbook-xsl) | |
f58764d8 | 328 | ("docbook-xml" ,docbook-xml-4.2) |
54a402dd | 329 | ("w3m" ,w3m) |
330 | ("tcl" ,tcl))) | |
7596ddf3 | 331 | (arguments |
54a402dd | 332 | `(#:tests? #f |
333 | #:configure-flags | |
334 | (list "--gpgme" | |
7596ddf3 | 335 | |
336 | ;; database, implies header caching | |
54a402dd | 337 | "--disable-tokyocabinet" |
338 | "--disable-qdbm" | |
339 | "--disable-bdb" | |
340 | "--lmdb" | |
341 | "--kyotocabinet" | |
342 | ||
343 | "--gdbm" | |
344 | ||
345 | "--gnutls" | |
346 | "--disable-ssl" | |
347 | "--sasl" | |
348 | (string-append "--with-sasl=" | |
349 | (assoc-ref %build-inputs "cyrus-sasl")) | |
7596ddf3 | 350 | |
7596ddf3 | 351 | |
54a402dd | 352 | "--smime" |
353 | "--notmuch" | |
354 | "--idn" | |
7596ddf3 | 355 | |
356 | ;; If we do not set this, neomutt wants to check | |
357 | ;; whether the path exists, which it does not | |
358 | ;; in the chroot. The workaround is this. | |
359 | "--with-mailpath=/var/mail" | |
360 | ||
54a402dd | 361 | "--with-ui=ncurses" |
362 | (string-append "--with-ncurses=" | |
363 | (assoc-ref %build-inputs "ncurses")) | |
364 | (string-append "--prefix=" | |
365 | (assoc-ref %outputs "out")) | |
366 | "--debug") | |
7596ddf3 | 367 | #:phases |
368 | (modify-phases %standard-phases | |
54a402dd | 369 | ;; TODO: autosetup is meant to be included in the source, |
370 | ;; but we should package autosetup and use our own version of it. | |
54a402dd | 371 | (add-before 'configure 'fix-sasl-test |
7596ddf3 | 372 | (lambda _ |
54a402dd | 373 | ;; Upstream suggestion to fix the failing sasl autosetup test. |
374 | (substitute* "auto.def" | |
375 | (("cc-with \\[list -cflags -I\\$prefix/include -libs") | |
376 | "cc-with [list -includes stddef.h -cflags -I$prefix/include -libs")) | |
377 | #t)) | |
378 | (replace 'configure | |
379 | (lambda* (#:key outputs inputs configure-flags #:allow-other-keys) | |
380 | (let* ((out (assoc-ref outputs "out")) | |
381 | (flags `(,@configure-flags)) | |
382 | (bash (which "bash"))) | |
383 | (setenv "SHELL" bash) | |
384 | (setenv "CONFIG_SHELL" bash) | |
385 | (apply invoke bash | |
386 | (string-append (getcwd) "/configure") | |
387 | flags))))))) | |
7596ddf3 | 388 | (home-page "https://www.neomutt.org/") |
389 | (synopsis "Command-line mail reader based on Mutt") | |
390 | (description | |
391 | "NeoMutt is a command-line mail reader which is based on mutt. | |
32fc1ec3 | 392 | It adds a large amount of new and improved features to mutt.") |
393 | (license gpl2+))) | |
7596ddf3 | 394 | |
681a6588 MW |
395 | (define-public gmime |
396 | (package | |
397 | (name "gmime") | |
8e020519 | 398 | (version "3.2.0") |
681a6588 MW |
399 | (source (origin |
400 | (method url-fetch) | |
75630043 | 401 | (uri (string-append "mirror://gnome/sources/gmime/" |
29a7c98a | 402 | (version-major+minor version) |
681a6588 MW |
403 | "/gmime-" version ".tar.xz")) |
404 | (sha256 | |
405 | (base32 | |
8e020519 | 406 | "1q6palbpf6lh6bvy9ly26q5apl5k0z0r4mvl6zzqh90rz4rn1v3m")))) |
681a6588 MW |
407 | (build-system gnu-build-system) |
408 | (native-inputs | |
409 | `(("pkg-config" ,pkg-config) | |
410 | ("gnupg" ,gnupg))) ; for tests only | |
411 | (inputs `(("glib" ,glib) | |
412 | ("gpgme" ,gpgme) | |
413 | ("zlib" ,zlib))) | |
414 | (arguments | |
415 | `(#:phases | |
cc955356 EF |
416 | (modify-phases %standard-phases |
417 | (add-after | |
418 | 'unpack 'patch-paths-in-tests | |
419 | (lambda _ | |
420 | ;; The test programs run several programs using 'system' with | |
ae83dcf6 | 421 | ;; hard-coded paths. Here we patch them all. |
422 | ;; We use ISO-8859-1 here because test-iconv.c contains | |
cc955356 EF |
423 | ;; raw byte sequences in several different encodings. |
424 | (with-fluids ((%default-port-encoding #f)) | |
425 | (substitute* (find-files "tests" "\\.c$") | |
426 | (("(system *\\(\")(/[^ ]*)" all pre prog-path) | |
427 | (let* ((base (basename prog-path)) | |
ae83dcf6 | 428 | (prog (which base))) |
cc955356 | 429 | (string-append pre |
8e020519 MB |
430 | (or prog (error "not found: " base))))))) |
431 | #t))))) | |
681a6588 MW |
432 | (home-page "http://spruce.sourceforge.net/gmime/") |
433 | (synopsis "MIME message parser and creator library") | |
434 | (description | |
435 | "GMime provides a core library and set of utilities which may be used for | |
436 | the creation and parsing of messages using the Multipurpose Internet Mail | |
437 | Extension (MIME).") | |
438 | (license (list lgpl2.1+ gpl2+ gpl3+)))) | |
439 | ||
8e020519 MB |
440 | ;; Some packages are not ready for GMime 3 yet. |
441 | (define-public gmime-2.6 | |
442 | (package | |
443 | (inherit gmime) | |
444 | (version "2.6.23") | |
445 | (source (origin | |
446 | (method url-fetch) | |
447 | (uri (string-append "mirror://gnome/sources/gmime/" | |
448 | (version-major+minor version) | |
449 | "/gmime-" version ".tar.xz")) | |
450 | (sha256 | |
451 | (base32 | |
452 | "0slzlzcr3h8jikpz5a5amqd0csqh2m40gdk910ws2hnaf5m6hjbi")))))) | |
453 | ||
a7e59c50 LC |
454 | (define-public bogofilter |
455 | (package | |
456 | (name "bogofilter") | |
457 | (version "1.2.4") | |
458 | (source (origin | |
459 | (method url-fetch) | |
460 | (uri (string-append "mirror://sourceforge/bogofilter/bogofilter-" | |
461 | version "/bogofilter-" | |
462 | version ".tar.bz2")) | |
463 | (sha256 | |
464 | (base32 | |
465 | "1d56n2m9inm8gnzm88aa27xl2a7sp7aff3484vmflpqkinjqf0p1")))) | |
466 | (build-system gnu-build-system) | |
467 | (arguments | |
c55fa42b EF |
468 | '(#:phases |
469 | (modify-phases %standard-phases | |
470 | (add-before 'check 'pre-check | |
471 | (lambda _ | |
472 | (substitute* "src/tests/t.frame" | |
473 | (("GREP=/bin/grep") | |
474 | (string-append "GREP=" (which "grep") "\n"))) | |
475 | #t))))) | |
a7e59c50 LC |
476 | (native-inputs `(("flex" ,flex))) |
477 | (inputs `(("bdb" ,bdb))) | |
478 | (home-page "http://bogofilter.sourceforge.net/") | |
479 | (synopsis "Mail classifier based on a Bayesian filter") | |
480 | (description | |
481 | "Bogofilter is a mail filter that classifies mail as spam or ham | |
482 | (non-spam) by a statistical analysis of the message's header and | |
483 | content (body). The program is able to learn from the user's classifications | |
484 | and corrections. It is based on a Bayesian filter.") | |
485 | (license gpl2))) | |
486 | ||
3919a31a EB |
487 | (define-public offlineimap |
488 | (package | |
489 | (name "offlineimap") | |
e0cfc373 | 490 | (version "7.2.0") |
3919a31a EB |
491 | (source (origin |
492 | (method url-fetch) | |
493 | (uri (string-append "https://github.com/OfflineIMAP/offlineimap/" | |
494 | "archive/v" version ".tar.gz")) | |
f586c877 | 495 | (file-name (string-append name "-" version ".tar.gz")) |
3919a31a EB |
496 | (sha256 |
497 | (base32 | |
e0cfc373 | 498 | "1i7pzm1vrj98jcyn1ygsg1yp0gqlsssnc25451icvivysvdwdj5n")))) |
3919a31a | 499 | (build-system python-build-system) |
7a6213cb | 500 | (native-inputs |
4b0e6367 | 501 | `(("asciidoc" ,asciidoc))) |
a4ea25d3 EF |
502 | (inputs `(("python2-pysqlite" ,python2-pysqlite) |
503 | ("python2-six" ,python2-six))) | |
3919a31a EB |
504 | (arguments |
505 | ;; The setup.py script expects python-2. | |
506 | `(#:python ,python-2 | |
507 | ;; Tests require a modifiable IMAP account. | |
42aa73b3 EF |
508 | #:tests? #f |
509 | #:phases | |
510 | (modify-phases %standard-phases | |
7a6213cb MB |
511 | (add-after 'build 'build-documentation |
512 | (lambda _ | |
513 | (substitute* "docs/Makefile" | |
514 | ;; Prevent xmllint and xsltproc from downloading a DTD file. | |
515 | (("a2x -v") "a2x --no-xmllint --xsltproc-opts=--nonet -v")) | |
516 | (zero? (system* "make" "-C" "docs" "man")))) | |
517 | (add-after 'install 'install-documentation | |
518 | (lambda* (#:key outputs #:allow-other-keys) | |
519 | (let* ((out (assoc-ref outputs "out")) | |
520 | (man (string-append out "/share/man"))) | |
521 | (install-file "docs/offlineimap.1" (string-append man "/man1")) | |
522 | (install-file "docs/offlineimapui.7" (string-append man "/man7")) | |
523 | #t))) | |
524 | (add-after 'install-documentation 'wrap-binary | |
525 | (lambda* (#:key outputs #:allow-other-keys) | |
42aa73b3 EF |
526 | (let* ((out (assoc-ref outputs "out")) |
527 | (bin (string-append out "/bin/offlineimap"))) | |
528 | (wrap-program bin | |
529 | `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))) | |
530 | #t)))))) | |
3919a31a | 531 | (home-page "http://www.offlineimap.org") |
31e98ca6 | 532 | (synopsis "Sync emails between two repositories") |
3919a31a EB |
533 | (description |
534 | "OfflineImap synchronizes emails between two repositories, so that you | |
535 | can read the same mailbox from multiple computers. It supports IMAP as REMOTE | |
536 | repository and Maildir/IMAP as LOCAL repository.") | |
7886e23b | 537 | (license gpl2+))) |
3919a31a | 538 | |
3e9750c3 TD |
539 | (define-public emacs-mew |
540 | (package | |
541 | (name "emacs-mew") | |
542 | (version "6.7") | |
543 | (source (origin | |
544 | (method url-fetch) | |
545 | (uri (string-append "http://mew.org/Release/mew-" | |
546 | version ".tar.gz")) | |
547 | (sha256 | |
548 | (base32 | |
549 | "03fzky2kz73vgx4cbps2psbbnrgqgkk5q7jwfldisymkzr9iz03y")))) | |
550 | (native-inputs | |
551 | `(("emacs" ,emacs))) | |
552 | (propagated-inputs | |
553 | `(("ruby-sqlite3" ,ruby-sqlite3) ; optional for the database of messages | |
554 | ("ruby" ,ruby))) ; to set GEM_PATH so ruby-sqlite3 is found at runtime | |
555 | (build-system gnu-build-system) | |
556 | (arguments | |
557 | (let ((elisp-dir "/share/emacs/site-lisp/guix.d/mew") | |
558 | (icon-dir "/share/mew")) | |
559 | `(#:modules ((guix build gnu-build-system) | |
560 | (guix build utils) | |
561 | (guix build emacs-utils)) | |
562 | #:imported-modules (,@%gnu-build-system-modules | |
563 | (guix build emacs-utils)) | |
564 | #:configure-flags | |
565 | (list (string-append "--with-elispdir=" %output ,elisp-dir) | |
566 | (string-append "--with-etcdir=" %output ,icon-dir)) | |
567 | #:phases | |
568 | (modify-phases %standard-phases | |
569 | (add-after 'configure 'patch-mew-icon-directory | |
570 | (lambda* (#:key outputs #:allow-other-keys) | |
571 | (emacs-substitute-sexps "mew-key.el" | |
572 | ("(def.* mew-icon-directory" | |
573 | `(progn | |
574 | (add-to-list 'image-load-path 'mew-icon-directory) | |
575 | ,(string-append (assoc-ref outputs "out") ,icon-dir)))) | |
576 | #t)) | |
577 | (add-after 'install 'generate-autoloads | |
578 | (lambda* (#:key outputs #:allow-other-keys) | |
579 | (emacs-generate-autoloads | |
580 | "mew" (string-append (assoc-ref outputs "out") ,elisp-dir)) | |
581 | #t))) | |
582 | #:tests? #f))) | |
583 | (home-page "http://www.mew.org") | |
584 | (synopsis "Emacs e-mail client") | |
585 | (description "Mew (Messaging in the Emacs World) is a user interface | |
586 | for text messages, multimedia messages (MIME), news articles and | |
587 | security functionality including PGP, S/MIME, SSH, and SSL.") | |
588 | (license bsd-3))) | |
589 | ||
d2938d59 EB |
590 | (define-public mu |
591 | (package | |
592 | (name "mu") | |
e5fdc334 | 593 | (version "1.0") |
d2938d59 EB |
594 | (source (origin |
595 | (method url-fetch) | |
e7b9da24 | 596 | (uri (string-append "https://github.com/djcb/mu/releases/" |
e5fdc334 PL |
597 | "download/v" version "/mu-" |
598 | version ".tar.xz")) | |
d2938d59 EB |
599 | (sha256 |
600 | (base32 | |
e5fdc334 | 601 | "04x5azl19gszw2h7argq666gf9xs4hy9q7w9cbqxvy08n56xqsln")))) |
d2938d59 EB |
602 | (build-system gnu-build-system) |
603 | (native-inputs | |
604 | `(("pkg-config" ,pkg-config) | |
9fd571a2 | 605 | ("glib" ,glib "bin") ; for gtester |
63298f14 | 606 | ("emacs" ,emacs-minimal) |
efe2a283 | 607 | ("tzdata" ,tzdata-for-tests))) ;for mu/test/test-mu-query.c |
d2938d59 EB |
608 | ;; TODO: Add webkit and gtk to build the mug GUI. |
609 | (inputs | |
610 | `(("xapian" ,xapian) | |
d59ec129 | 611 | ("guile" ,guile-2.2) |
d2938d59 | 612 | ("glib" ,glib) |
8e020519 | 613 | ("gmime" ,gmime-2.6))) |
d2938d59 | 614 | (arguments |
704f2196 AK |
615 | `(#:modules ((guix build gnu-build-system) |
616 | (guix build utils) | |
617 | (guix build emacs-utils)) | |
618 | #:imported-modules (,@%gnu-build-system-modules | |
619 | (guix build emacs-utils)) | |
620 | #:phases | |
99404fff | 621 | (modify-phases %standard-phases |
e62e975b | 622 | (add-after 'unpack 'patch-configure |
789bda83 AK |
623 | ;; By default, elisp code goes to "share/emacs/site-lisp/mu4e", |
624 | ;; so our Emacs package can't find it. Setting "--with-lispdir" | |
625 | ;; configure flag doesn't help because "mu4e" will be added to | |
626 | ;; the lispdir anyway, so we have to modify "configure.ac". | |
627 | (lambda _ | |
e62e975b | 628 | (substitute* "configure" |
d59ec129 RW |
629 | (("^ +lispdir=\"\\$\\{lispdir\\}/mu4e/\".*") "") |
630 | ;; Use latest Guile | |
631 | (("guile-2.0") "guile-2.2")) | |
632 | (substitute* '("guile/Makefile.in" | |
633 | "guile/mu/Makefile.in") | |
634 | (("share/guile/site/2.0/") "share/guile/site/2.2/")) | |
789bda83 | 635 | #t)) |
3481c714 MC |
636 | (add-after 'patch-configure 'fix-date-tests |
637 | ;; Loosen test tolerances to prevent failures caused by daylight | |
638 | ;; saving time (DST). See: https://github.com/djcb/mu/issues/1214. | |
639 | (lambda _ | |
640 | (substitute* "lib/parser/test-utils.cc" | |
641 | (("\\* 60 \\* 60, 1 },") | |
642 | "* 60 * 60, 3600 + 1 },")) | |
643 | #t)) | |
c9dc4577 RW |
644 | (add-before 'install 'fix-ffi |
645 | (lambda* (#:key outputs #:allow-other-keys) | |
646 | (substitute* "guile/mu.scm" | |
647 | (("\"libguile-mu\"") | |
648 | (format #f "\"~a/lib/libguile-mu\"" | |
649 | (assoc-ref outputs "out")))) | |
650 | #t)) | |
99404fff AK |
651 | (add-before 'check 'check-tz-setup |
652 | (lambda* (#:key inputs #:allow-other-keys) | |
653 | ;; For mu/test/test-mu-query.c | |
654 | (setenv "TZDIR" | |
655 | (string-append (assoc-ref inputs "tzdata") | |
656 | "/share/zoneinfo")) | |
704f2196 AK |
657 | #t)) |
658 | (add-after 'install 'install-emacs-autoloads | |
659 | (lambda* (#:key outputs #:allow-other-keys) | |
660 | (emacs-generate-autoloads | |
661 | "mu4e" | |
662 | (string-append (assoc-ref outputs "out") | |
663 | "/share/emacs/site-lisp")) | |
99404fff | 664 | #t))))) |
d2938d59 EB |
665 | (home-page "http://www.djcbsoftware.nl/code/mu/") |
666 | (synopsis "Quickly find emails") | |
667 | (description | |
668 | "Mu is a tool for dealing with e-mail messages stored in the | |
669 | Maildir-format. Mu's purpose in life is to help you to quickly find the | |
670 | messages you need; in addition, it allows you to view messages, extract | |
671 | attachments, create new maildirs, and so on.") | |
672 | (license gpl3+))) | |
673 | ||
a2cb16b0 TS |
674 | (define-public alot |
675 | (package | |
676 | (name "alot") | |
3f81ca32 | 677 | (version "0.5.1") |
a2cb16b0 TS |
678 | (source (origin |
679 | (method url-fetch) | |
1b94f182 TS |
680 | ;; package author intends on distributing via github rather |
681 | ;; than pypi: | |
682 | ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331 | |
a2cb16b0 TS |
683 | (uri (string-append "https://github.com/pazz/alot/archive/" |
684 | version ".tar.gz")) | |
685 | (file-name (string-append "alot-" version ".tar.gz")) | |
686 | (sha256 | |
687 | (base32 | |
3f81ca32 | 688 | "0wax30hjzmkqfml7hig1dqw1v1y63yc0cgbzl96x58b9h2ggqx3a")))) |
a2cb16b0 TS |
689 | (build-system python-build-system) |
690 | (arguments | |
3f81ca32 | 691 | `(;; python 3 is currently unsupported, more info: |
fe3b8862 | 692 | ;; https://github.com/pazz/alot/blob/master/docs/source/faq.rst |
a2cb16b0 | 693 | #:python ,python-2)) |
3f81ca32 TS |
694 | (native-inputs |
695 | `(("python2-mock" ,python2-mock))) | |
a2cb16b0 TS |
696 | (inputs |
697 | `(("python2-magic" ,python2-magic) | |
698 | ("python2-configobj" ,python2-configobj) | |
699 | ("python2-twisted" ,python2-twisted) | |
700 | ("python2-urwid" ,python2-urwid) | |
701 | ("python2-urwidtrees" ,python2-urwidtrees) | |
702 | ("python2-pygpgme" ,python2-pygpgme) | |
703 | ("python2-notmuch" ,python2-notmuch))) | |
704 | (home-page "https://github.com/pazz/alot") | |
705 | (synopsis "Commandline MUA using notmuch") | |
706 | (description | |
707 | "Alot is an experimental terminal mail user agent (MUA) based on | |
708 | @code{notmuch} mail. It is written in Python using the @code{urwid} toolkit.") | |
709 | (license gpl3+))) | |
710 | ||
0350a8bb HG |
711 | (define-public notifymuch |
712 | (let | |
713 | ((commit "9d4aaf54599282ce80643b38195ff501120807f0") | |
714 | (revision "1")) | |
715 | (package | |
716 | (name "notifymuch") | |
717 | (version (string-append "0.1-" revision "." (string-take commit 7))) | |
718 | (source | |
719 | (origin | |
720 | (method git-fetch) | |
721 | (uri (git-reference | |
722 | (url "https://github.com/kspi/notifymuch.git") | |
723 | (commit commit))) | |
724 | (sha256 | |
725 | (base32 | |
726 | "1lssr7iv43mp5v6nzrfbqlfzx8jcc7m636wlfyhhnd8ydd39n6k4")) | |
727 | (file-name (string-append name "-" version "-checkout")))) | |
728 | (build-system python-build-system) | |
729 | (inputs | |
730 | `(("python-notmuch" ,python-notmuch) | |
731 | ("python-pygobject" ,python-pygobject) | |
732 | ("gobject-introspection" ,gobject-introspection) | |
733 | ("libnotify" ,libnotify) | |
734 | ("gtk+" ,gtk+))) | |
735 | (arguments | |
736 | `(#:phases | |
737 | (modify-phases %standard-phases | |
738 | (add-after 'install 'wrap-binary | |
739 | (lambda* (#:key outputs #:allow-other-keys) | |
740 | (let* ((out (assoc-ref outputs "out")) | |
741 | (bin (string-append out "/bin/notifymuch"))) | |
742 | (wrap-program bin | |
743 | `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))) | |
744 | `("GI_TYPELIB_PATH" ":" prefix | |
745 | (,(getenv "GI_TYPELIB_PATH") | |
746 | ,(string-append out "/lib/girepository-1.0"))))) | |
747 | #t))))) | |
748 | (home-page "https://github.com/kspi/notifymuch") | |
749 | (synopsis "Displays notifications for changes in the notmuch email database") | |
750 | (description "notifymuch displays desktop notifications for messages in | |
751 | the notmuch database. The notifications are sent using libnotify to a | |
752 | notification daemon. The query to find messages to send a notification about | |
753 | is configurable, and a notification for the same message will not be send | |
754 | within a configurable period (defaults to 48 hours). To use notifymuch, run | |
755 | @command{notifymuch} after new mail is indexed, this can be automated by | |
756 | invoking @command{notifymuch} from the post-new hook.") | |
757 | (license gpl3)))) | |
758 | ||
1bd3f849 DT |
759 | (define-public notmuch |
760 | (package | |
761 | (name "notmuch") | |
720d9df9 | 762 | (version "0.26.2") |
1bd3f849 DT |
763 | (source (origin |
764 | (method url-fetch) | |
866fade9 | 765 | (uri (string-append "https://notmuchmail.org/releases/notmuch-" |
1bd3f849 DT |
766 | version ".tar.gz")) |
767 | (sha256 | |
768 | (base32 | |
720d9df9 | 769 | "0fqf6wwvqlccq9qdnd0mky7fx0kbkczd28blf045s0vsvdjii70h")))) |
1bd3f849 DT |
770 | (build-system gnu-build-system) |
771 | (arguments | |
d738f134 AI |
772 | `(#:modules ((guix build gnu-build-system) |
773 | ((guix build emacs-build-system) #:prefix emacs:) | |
774 | (guix build utils)) | |
775 | #:imported-modules (,@%gnu-build-system-modules | |
776 | (guix build emacs-build-system) | |
777 | (guix build emacs-utils)) | |
778 | #:make-flags (list "V=1") ; Verbose test output. | |
eb537f57 | 779 | #:phases (modify-phases %standard-phases |
6cf27c89 MB |
780 | (add-after 'unpack 'patch-notmuch-lib.el |
781 | (lambda _ | |
782 | (substitute* "emacs/notmuch-lib.el" | |
783 | (("/bin/sh") (which "sh"))) | |
784 | #t)) | |
eb537f57 DT |
785 | (replace 'configure |
786 | (lambda* (#:key outputs #:allow-other-keys) | |
787 | (setenv "CC" "gcc") | |
788 | (setenv "CONFIG_SHELL" (which "sh")) | |
ee886454 | 789 | |
d738f134 AI |
790 | (let* ((out (assoc-ref outputs "out")) |
791 | (elisp | |
792 | (string-append out "/share/emacs/site-lisp/guix.d/" | |
793 | ,name "-" ,version))) | |
794 | (zero? | |
795 | (system* | |
796 | "./configure" | |
797 | (string-append "--prefix=" out) | |
798 | (string-append "--emacslispdir=" elisp) | |
799 | (string-append "--emacsetcdir=" elisp)))))) | |
6cf27c89 MB |
800 | (add-before 'check 'prepare-test-environment |
801 | (lambda _ | |
802 | (setenv "TEST_CC" "gcc") | |
803 | ;; Patch various inline shell invocations. | |
804 | (substitute* (find-files "test" "\\.sh$") | |
805 | (("/bin/sh") (which "sh"))) | |
d738f134 AI |
806 | #t)) |
807 | (add-after 'install 'make-autoloads | |
808 | (assoc-ref emacs:%standard-phases 'make-autoloads))))) | |
1bd3f849 | 809 | (native-inputs |
2c5b91dc | 810 | `(("bash-completion" ,bash-completion) |
6cf27c89 | 811 | ("emacs" ,emacs-no-x) ; Minimal lacks libxml, needed for some tests. |
2c5b91dc | 812 | ("pkg-config" ,pkg-config) |
ee886454 | 813 | ("python" ,python-2) |
eb537f57 | 814 | ("python-docutils" ,python2-docutils) |
6cf27c89 MB |
815 | ("python-sphinx" ,python2-sphinx) |
816 | ||
817 | ;; The following are required for tests only. | |
818 | ("which" ,which) | |
819 | ("dtach" ,dtach) | |
820 | ("gnupg" ,gnupg) | |
821 | ("man" ,man-db) | |
822 | ("perl" ,perl))) | |
1bd3f849 | 823 | (inputs |
2c5b91dc | 824 | `(("glib" ,glib) |
1bd3f849 DT |
825 | ("gmime" ,gmime) |
826 | ("talloc" ,talloc) | |
827 | ("xapian" ,xapian) | |
828 | ("zlib" ,zlib))) | |
540d6cc7 | 829 | (home-page "https://notmuchmail.org/") |
1bd3f849 DT |
830 | (synopsis "Thread-based email index, search, and tagging") |
831 | (description | |
832 | "Notmuch is a command-line based program for indexing, searching, read- | |
833 | ing, and tagging large collections of email messages.") | |
834 | (license gpl3+))) | |
835 | ||
8a75c589 | 836 | (define-public notmuch-addrlookup-c |
a5d6b0a3 TS |
837 | ;; This commit includes a compatibility fix for notmuch-0.25, and is not |
838 | ;; currently part of any release. Please update this package when | |
839 | ;; notmuch-addrlookup-c-9 is released. | |
840 | (let ((commit "88f156d04990a71c6ad6fc2757b537b44e3c4d00") | |
841 | (revision "1")) ;Guix package revision | |
842 | (package | |
843 | (name "notmuch-addrlookup-c") | |
844 | (version (string-append "8-" revision "." | |
845 | (string-take commit 7))) | |
846 | (source (origin | |
847 | (method git-fetch) | |
848 | (uri (git-reference | |
849 | (url "https://github.com/aperezdc/notmuch-addrlookup-c.git") | |
850 | (commit commit))) | |
851 | (file-name (string-append name "-" version "-checkout")) | |
852 | (sha256 | |
853 | (base32 | |
854 | "0v0wzs7qzy4n1hbql8s10qrwgalcxdzbxf8pj6cii1pv2jwmkxbm")))) | |
855 | (build-system gnu-build-system) | |
856 | (arguments | |
857 | '(#:tests? #f ; no tests | |
858 | #:make-flags (list "CC=gcc" | |
859 | (string-append "PREFIX=" | |
860 | (assoc-ref %outputs "out"))) | |
861 | #:phases (modify-phases %standard-phases | |
862 | (delete 'configure) | |
863 | ;; Remove vim code completion config, it's not needed to | |
864 | ;; build (or be patched). | |
865 | (add-before 'patch-source-shebangs 'delete-ycm-file | |
866 | (lambda _ (delete-file ".ycm_extra_conf.py"))) | |
867 | (replace 'install | |
868 | (lambda* (#:key outputs #:allow-other-keys) | |
869 | (let ((bin (string-append | |
870 | (assoc-ref outputs "out") "/bin"))) | |
871 | (install-file "notmuch-addrlookup" bin))))))) | |
872 | (native-inputs | |
873 | `(("pkg-config" ,pkg-config))) | |
874 | (inputs | |
875 | `(("glib" ,glib) | |
876 | ("notmuch" ,notmuch))) | |
877 | (home-page "https://github.com/aperezdc/notmuch-addrlookup-c") | |
878 | (synopsis "Address lookup tool for Notmuch") | |
879 | (description "This is an address lookup tool using a Notmuch database, | |
8a75c589 | 880 | useful for email address completion.") |
a5d6b0a3 | 881 | (license license:expat)))) |
8a75c589 | 882 | |
4b6909bc TS |
883 | (define-public python-notmuch |
884 | (package | |
885 | (name "python-notmuch") | |
540d6cc7 | 886 | (version (package-version notmuch)) |
4b6909bc TS |
887 | ;; Notmuch python bindings are now unavailable on pypi. The |
888 | ;; bindings are distributed via the notmuch release tarball. | |
889 | (source (package-source notmuch)) | |
890 | (build-system python-build-system) | |
891 | (inputs `(("notmuch" ,notmuch))) | |
892 | (arguments | |
893 | `(#:tests? #f ; no "test" target | |
894 | #:phases | |
895 | (modify-phases %standard-phases | |
896 | ;; This python package lives in a subdirectory of the notmuch source | |
897 | ;; tree, so chdir into it before building. | |
898 | (add-after 'unpack 'enter-python-dir | |
899 | (lambda _ (chdir "bindings/python") #t)) | |
900 | ;; Make sure the correct notmuch shared library gets loaded. | |
901 | (add-before 'build 'set-libnotmuch-file-name | |
902 | (lambda* (#:key inputs #:allow-other-keys) | |
903 | (let ((notmuch (assoc-ref inputs "notmuch"))) | |
904 | (substitute* "notmuch/globals.py" | |
905 | (("libnotmuch\\.so\\.") | |
906 | (string-append notmuch "/lib/libnotmuch.so."))) | |
907 | #t)))))) | |
540d6cc7 | 908 | (home-page (package-home-page notmuch)) |
4b6909bc TS |
909 | (synopsis "Python bindings of the Notmuch mail indexing library") |
910 | (description | |
911 | "This package provides Python bindings to use the Notmuch mail indexing | |
912 | and search library.") | |
913 | (license gpl3+))) | |
914 | ||
1c74da21 | 915 | (define-public python2-notmuch |
caa6fc89 | 916 | (package-with-python2 python-notmuch)) |
1c74da21 | 917 | |
98e9e22f SB |
918 | (define-public getmail |
919 | (package | |
920 | (name "getmail") | |
36e8cfa1 | 921 | (version "5.6") |
98e9e22f SB |
922 | (source |
923 | (origin | |
924 | (method url-fetch) | |
925 | (uri (string-append "http://pyropus.ca/software/getmail/old-versions/" | |
926 | name "-" version ".tar.gz")) | |
927 | (sha256 | |
928 | (base32 | |
36e8cfa1 | 929 | "16nmvj80szr6yvcxxgmxn2lxqpjqqj4xg5a0b66zhvck6j42q3a6")))) |
98e9e22f SB |
930 | (build-system python-build-system) |
931 | (arguments | |
932 | `(#:tests? #f ; no tests | |
933 | #:python ,python-2)) | |
934 | (home-page "http://pyropus.ca/software/getmail/") | |
935 | (synopsis "Mail retriever") | |
936 | (description | |
937 | "A flexible, extensible mail retrieval system with support for | |
938 | POP3, IMAP4, SSL variants of both, maildirs, mboxrd files, external MDAs, | |
939 | arbitrary message filtering, single-user and domain-mailboxes, and many other | |
940 | useful features.") | |
941 | ||
942 | ;; License is specified in file '__init__.py'. | |
943 | (license gpl2))) | |
944 | ||
f58f767b JL |
945 | (define-public libetpan |
946 | (package | |
947 | (name "libetpan") | |
a979eea9 | 948 | (version "1.8") |
f58f767b JL |
949 | (source (origin |
950 | (method url-fetch) | |
951 | (uri (string-append "https://github.com/dinhviethoa/" name | |
952 | "/archive/" version ".tar.gz")) | |
f586c877 | 953 | (file-name (string-append name "-" version ".tar.gz")) |
f58f767b | 954 | (sha256 |
a979eea9 | 955 | (base32 "1sxnaglp5hb0z78sgnfzva4x8m4flqhicvm1dz0krkxdmfsafrsf")))) |
f58f767b | 956 | (build-system gnu-build-system) |
464f5447 | 957 | (native-inputs `(("autoconf" ,autoconf-wrapper) |
f58f767b | 958 | ("automake" ,automake) |
3246cc91 | 959 | ("libtool" ,libtool) |
f58f767b JL |
960 | ("pkg-config" ,pkg-config))) |
961 | (propagated-inputs | |
962 | ;; 'libetpan-config --libs' returns '-lssl -lcrypto -lsasl2', so these | |
963 | ;; libraries need to be propagated. | |
964 | `(("cyrus-sasl" ,cyrus-sasl) | |
965 | ("openssl" ,openssl))) | |
966 | (inputs | |
967 | `(("curl" ,curl) | |
c1748912 EF |
968 | ("expat" ,expat) |
969 | ("zlib" ,zlib))) | |
f58f767b | 970 | (arguments |
602460ea EF |
971 | '(#:phases |
972 | (modify-phases %standard-phases | |
973 | (add-after 'unpack 'autogen | |
974 | (lambda _ | |
975 | (setenv "NOCONFIGURE" "true") | |
976 | (zero? (system* "sh" "autogen.sh"))))) | |
f58f767b JL |
977 | #:configure-flags |
978 | '("--disable-static" "--disable-db"))) | |
979 | (home-page "http://www.etpan.org/libetpan.html") | |
980 | (synopsis "Portable middleware for email access") | |
981 | (description | |
982 | "The purpose of this mail library is to provide a portable, efficient | |
983 | framework for different kinds of mail access: IMAP, SMTP, POP and NNTP. It | |
984 | provides an API for C language. It's the low-level API used by MailCore and | |
985 | MailCore 2.") | |
a979eea9 | 986 | (license bsd-3))) |
f58f767b | 987 | |
ee6e780b DM |
988 | (define-public compface |
989 | (package | |
990 | (name "compface") | |
991 | (version "1.5.2") | |
992 | (source (origin | |
993 | (method url-fetch) | |
994 | (uri (string-append "https://ftp.heanet.ie/mirrors/" | |
995 | "ftp.xemacs.org/aux/" | |
996 | name "-" version ".tar.gz")) | |
997 | (sha256 | |
998 | (base32 | |
999 | "09b89wg63hg502hsz592cd2h87wdprb1dq1k1y07n89hym2q56d6")))) | |
1000 | (build-system gnu-build-system) | |
1001 | (arguments | |
1002 | `(#:tests? #f)) | |
1003 | (synopsis "Portrait image compressor") | |
1004 | (description "This packages takes your 48x48x1 portrait image and | |
1005 | compresses it.") | |
1006 | (home-page "http://www.cs.indiana.edu/pub/faces/") | |
1007 | (license (x11-style "file://README")))) | |
1008 | ||
e8435c4d JL |
1009 | (define-public claws-mail |
1010 | (package | |
1011 | (name "claws-mail") | |
af8c547d | 1012 | (version "3.16.0") |
e8435c4d JL |
1013 | (source (origin |
1014 | (method url-fetch) | |
1015 | (uri (string-append | |
762b1971 | 1016 | "http://www.claws-mail.org/releases/" name "-" version |
6ea4b094 | 1017 | ".tar.xz")) |
e8435c4d | 1018 | (sha256 |
ec92806a | 1019 | (base32 |
af8c547d | 1020 | "1awpr3s7n8bq8p3w10a4j6lg5bizjxyiqp4rqzc2j8cn7lyi64n2")))) |
e8435c4d JL |
1021 | (build-system gnu-build-system) |
1022 | (native-inputs `(("pkg-config" ,pkg-config))) | |
1023 | (inputs `(("bogofilter" ,bogofilter) | |
1024 | ("curl" ,curl) | |
1025 | ("dbus-glib" ,dbus-glib) | |
e8435c4d JL |
1026 | ("enchant" ,enchant) |
1027 | ("expat" ,expat) | |
1028 | ("ghostscript" ,ghostscript) | |
1029 | ("hicolor-icon-theme" ,hicolor-icon-theme) | |
1030 | ("gnupg" ,gnupg) | |
1031 | ("gnutls" ,gnutls) | |
1032 | ("gpgme" ,gpgme) | |
1033 | ("gtk" ,gtk+-2) | |
1034 | ("libarchive" ,libarchive) | |
1035 | ("libcanberra" ,libcanberra) | |
1036 | ("libetpan" ,libetpan) | |
fc9a93cb | 1037 | ("libical" ,libical) |
e8435c4d JL |
1038 | ("libnotify" ,libnotify) |
1039 | ("libsm" ,libsm) | |
1040 | ("libxml2" ,libxml2) | |
1041 | ("perl" ,perl) | |
f6292baf EB |
1042 | ("python-2" ,python-2) |
1043 | ("mime-info" ,shared-mime-info))) | |
e8435c4d JL |
1044 | (arguments |
1045 | '(#:configure-flags | |
f6292baf | 1046 | '("--enable-gnutls" "--enable-pgpmime-plugin" "--enable-enchant") |
ff4192ff DM |
1047 | #:make-flags |
1048 | ;; Disable updating icon cache since it's done by the profile hook. | |
1049 | ;; Conflict with other packages in the profile would be inevitable | |
1050 | ;; otherwise. | |
1051 | '("gtk_update_icon_cache=true") | |
f6292baf EB |
1052 | #:phases (modify-phases %standard-phases |
1053 | (add-before 'build 'patch-mime | |
1054 | (lambda* (#:key inputs #:allow-other-keys) | |
1055 | (substitute* "src/procmime.c" | |
1056 | (("/usr/share/mime/globs") | |
1057 | (string-append (assoc-ref inputs "mime-info") | |
1058 | "/share/mime/globs")))))))) | |
e8435c4d JL |
1059 | (synopsis "GTK-based Email client") |
1060 | (description | |
1061 | "Claws-Mail is an email client (and news reader) based on GTK+. The | |
1062 | appearance and interface are designed to be familiar to new users coming from | |
1063 | other popular email clients, as well as experienced users. Almost all commands | |
1064 | are accessible with the keyboard. Plus, Claws-Mail is extensible via addons | |
1065 | which can add many functionalities to the base client.") | |
1066 | (home-page "http://www.claws-mail.org/") | |
1067 | (license gpl3+))) ; most files are actually public domain or x11 | |
1068 | ||
d6e941bc TČ |
1069 | (define-public msmtp |
1070 | (package | |
1071 | (name "msmtp") | |
899358d1 | 1072 | (version "1.6.6") |
d6e941bc TČ |
1073 | (source |
1074 | (origin | |
1075 | (method url-fetch) | |
d23d1ddf LF |
1076 | (uri (string-append "mirror://sourceforge/msmtp/msmtp/" version |
1077 | "/msmtp-" version ".tar.xz")) | |
1078 | (sha256 | |
1079 | (base32 | |
899358d1 | 1080 | "0ppvww0sb09bnsrpqnvlrn8vx231r24xn2iiwpy020mxc8gxn5fs")))) |
d6e941bc TČ |
1081 | (build-system gnu-build-system) |
1082 | (inputs | |
1083 | `(("libidn" ,libidn) | |
72d8b5ba | 1084 | ("libsecret" ,libsecret) |
d6e941bc TČ |
1085 | ("gnutls" ,gnutls) |
1086 | ("zlib" ,zlib) | |
1087 | ("gsasl" ,gsasl))) | |
1088 | (native-inputs | |
1089 | `(("pkg-config" ,pkg-config))) | |
1090 | (home-page "http://msmtp.sourceforge.net/") | |
1091 | (arguments | |
1092 | `(#:configure-flags (list "--with-libgsasl" | |
1093 | "--with-libidn" | |
823e2ed4 LF |
1094 | "--with-tls=gnutls") |
1095 | #:phases | |
1096 | (modify-phases %standard-phases | |
1097 | (add-after 'install 'install-msmtpq | |
1098 | (lambda* (#:key outputs #:allow-other-keys) | |
1099 | (let* ((out (assoc-ref outputs "out")) | |
1100 | (bin (string-append out "/bin")) | |
1101 | (doc (string-append out "/share/doc/msmtp")) | |
1102 | (msmtpq (string-append "scripts/msmtpq"))) | |
1103 | (install-file (string-append msmtpq "/msmtpq") bin) | |
1104 | (install-file (string-append msmtpq "/msmtp-queue") bin) | |
1105 | (install-file (string-append msmtpq "/README.msmtpq") doc) | |
1106 | #t)))))) | |
d6e941bc TČ |
1107 | (synopsis |
1108 | "Simple and easy to use SMTP client with decent sendmail compatibility") | |
1109 | (description | |
1110 | "msmtp is an SMTP client. In the default mode, it transmits a mail to | |
1111 | an SMTP server (for example at a free mail provider) which takes care of further | |
1112 | delivery.") | |
1113 | (license gpl3+))) | |
1114 | ||
66cc3ab2 TUBK |
1115 | (define-public exim |
1116 | (package | |
1117 | (name "exim") | |
354c493f | 1118 | (version "4.90.1") |
66cc3ab2 TUBK |
1119 | (source |
1120 | (origin | |
1121 | (method url-fetch) | |
354c493f | 1122 | (uri (list (string-append "https://ftp.exim.org/pub/exim/exim4/exim-" |
fc6fdc05 | 1123 | version ".tar.bz2") |
354c493f | 1124 | (string-append "https://ftp.exim.org/pub/exim/exim4/old/exim-" |
fc6fdc05 | 1125 | version ".tar.bz2"))) |
66cc3ab2 | 1126 | (sha256 |
513f8ab4 | 1127 | (base32 |
354c493f | 1128 | "1w6blvvrd87c649j8xpag034md2w1ib0db9c4ijqbzc5dh2i1xfq")))) |
66cc3ab2 TUBK |
1129 | (build-system gnu-build-system) |
1130 | (inputs | |
1131 | `(("bdb" ,bdb) | |
1132 | ("gnutls" ,gnutls) | |
1133 | ("gzip" ,gzip) | |
1134 | ("bzip2" ,bzip2) | |
1135 | ("xz" ,xz) | |
66cc3ab2 TUBK |
1136 | ("perl" ,perl) |
1137 | ("libxt" ,libxt) | |
1138 | ("libxaw" ,libxaw))) | |
1139 | (native-inputs | |
42773138 EF |
1140 | `(("pcre" ,pcre "bin") |
1141 | ("perl" ,perl))) | |
66cc3ab2 TUBK |
1142 | (arguments |
1143 | '(#:phases | |
dc1d3cde KK |
1144 | (modify-phases %standard-phases |
1145 | (replace 'configure | |
1146 | ;; We'd use #:make-flags but the top-level Makefile calls others | |
1147 | ;; recursively, so just set all variables this way. | |
1148 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
1149 | (substitute* '("Makefile" "OS/Makefile-Default") | |
1150 | (("(RM_COMMAND=).*" all var) | |
1151 | (string-append var "rm\n"))) | |
1152 | (copy-file "src/EDITME" "Local/Makefile") | |
1153 | (copy-file "exim_monitor/EDITME" "Local/eximon.conf") | |
1154 | (let ((out (assoc-ref outputs "out")) | |
1155 | (gzip (assoc-ref inputs "gzip")) | |
1156 | (bzip2 (assoc-ref inputs "bzip2")) | |
1157 | (xz (assoc-ref inputs "xz"))) | |
1158 | (substitute* '("Local/Makefile") | |
1159 | (("(BIN_DIRECTORY=).*" all var) | |
1160 | (string-append var out "/bin\n")) | |
1161 | (("(CONFIGURE_FILE=).*" all var) | |
1162 | (string-append var out "/etc/exim.conf\n")) | |
1163 | (("(EXIM_USER=).*" all var) | |
1164 | (string-append var "nobody\n")) | |
1165 | (("(FIXED_NEVER_USERS=).*" all var) | |
1166 | (string-append var "\n")) ;XXX no root in build environment | |
1167 | (("(COMPRESS_COMMAND=).*" all var) | |
1168 | (string-append var gzip "/bin/gzip\n")) | |
1169 | (("(ZCAT_COMMAND=).*" all var) | |
1170 | (string-append var gzip "/bin/zcat\n"))) | |
1171 | ;; This file has hardcoded names for tools despite the zcat | |
1172 | ;; configuration above. | |
1173 | (substitute* '("src/exigrep.src") | |
1174 | (("'zcat'") (string-append "'" gzip "/bin/zcat'")) | |
1175 | (("'bzcat'") (string-append "'" bzip2 "/bin/bzcat'")) | |
1176 | (("'xzcat'") (string-append "'" xz "/bin/xzcat'")) | |
1177 | (("'lzma'") (string-append "'" xz "/bin/lzma'")))) | |
1178 | #t)) | |
1179 | (add-before 'build 'fix-sh-paths | |
1180 | (lambda* (#:key inputs #:allow-other-keys) | |
1181 | (substitute* '("scripts/lookups-Makefile" "scripts/reversion") | |
1182 | (("SHELL=/bin/sh") "SHELL=sh")) | |
1183 | (substitute* '("scripts/Configure-config.h") | |
1184 | (("\\| /bin/sh") "| sh")) | |
1185 | (let ((bash (assoc-ref inputs "bash"))) | |
1186 | (substitute* '("scripts/Configure-eximon") | |
1187 | (("#!/bin/sh") (string-append "#!" bash "/bin/sh")))) | |
1188 | #t))) | |
66cc3ab2 TUBK |
1189 | #:make-flags '("INSTALL_ARG=-no_chown") |
1190 | ;; No 'check' target. | |
1191 | #:tests? #f)) | |
85a9ffcb | 1192 | (home-page "https://www.exim.org/") |
66cc3ab2 TUBK |
1193 | (synopsis |
1194 | "Message Transfer Agent (MTA) developed at the University of Cambridge") | |
1195 | (description | |
1196 | "Exim is a message transfer agent (MTA) developed at the University of | |
1197 | Cambridge for use on Unix systems connected to the Internet. In style it is | |
1198 | similar to Smail 3, but its facilities are more general. There is a great | |
1199 | deal of flexibility in the way mail can be routed, and there are extensive | |
1200 | facilities for checking incoming mail.") | |
1201 | (license gpl2+))) | |
1202 | ||
7d2b784b MW |
1203 | (define-public dovecot |
1204 | (package | |
1205 | (name "dovecot") | |
15ff38f1 | 1206 | (version "2.3.1") |
7d2b784b MW |
1207 | (source |
1208 | (origin | |
1209 | (method url-fetch) | |
c8608faf | 1210 | (uri (string-append "https://www.dovecot.org/releases/" |
7d2b784b MW |
1211 | (version-major+minor version) "/" |
1212 | name "-" version ".tar.gz")) | |
4d6ce834 | 1213 | (sha256 (base32 |
15ff38f1 | 1214 | "14zva4f8k64x86sm9n21cp2yvrpph6k6k52bm22a00pxjwdq50q8")))) |
7d2b784b MW |
1215 | (build-system gnu-build-system) |
1216 | (native-inputs | |
1217 | `(("pkg-config" ,pkg-config))) | |
1218 | (inputs | |
1219 | `(("openssl" ,openssl) | |
1220 | ("zlib" ,zlib) | |
1221 | ("bzip2" ,bzip2) | |
fd5c70f8 AW |
1222 | ("sqlite" ,sqlite) |
1223 | ("linux-pam" ,linux-pam))) | |
7d2b784b MW |
1224 | (arguments |
1225 | `(#:configure-flags '("--sysconfdir=/etc" | |
1226 | "--localstatedir=/var") | |
1227 | #:phases (modify-phases %standard-phases | |
1228 | (add-before | |
1229 | 'configure 'pre-configure | |
1230 | (lambda _ | |
15ff38f1 | 1231 | ;; Simple hack to avoid installing in /etc. |
7d2b784b MW |
1232 | (substitute* '("doc/Makefile.in" |
1233 | "doc/example-config/Makefile.in") | |
1234 | (("pkgsysconfdir = .*") | |
1235 | "pkgsysconfdir = /tmp/etc")) | |
072f1e22 EF |
1236 | #t)) |
1237 | (add-after | |
15ff38f1 | 1238 | 'unpack 'patch-other-file-names |
072f1e22 EF |
1239 | (lambda _ |
1240 | (substitute* | |
15ff38f1 TGR |
1241 | "src/lib-program-client/test-program-client-local.c" |
1242 | (("(/bin/| )cat") (which "cat")) | |
072f1e22 | 1243 | (("/bin/echo") (which "echo")) |
15ff38f1 TGR |
1244 | (("/bin/false") (which "false")) |
1245 | (("/bin/sh") (which "bash")) | |
1246 | (("head") (which "head")) | |
1247 | (("sleep") (which "sleep"))) | |
7d2b784b | 1248 | #t))))) |
c8608faf | 1249 | (home-page "https://www.dovecot.org") |
7d2b784b MW |
1250 | (synopsis "Secure POP3/IMAP server") |
1251 | (description | |
1252 | "Dovecot is a mail server whose major goals are security and reliability. | |
1253 | It supports mbox/Maildir and its own dbox/mdbox formats.") | |
1254 | ;; Most source files are covered by either lgpl2.1 or expat. The SHA code | |
1255 | ;; is covered by a variant of BSD-3, and UnicodeData.txt is covered by the | |
1256 | ;; Unicode, Inc. License Agreement for Data Files and Software. | |
1257 | (license (list lgpl2.1 license:expat (non-copyleft "file://COPYING"))))) | |
1258 | ||
944a5cdd | 1259 | (define-public dovecot-trees |
cf47a8a5 | 1260 | (package |
1261 | (name "dovecot-trees") | |
1262 | (version "2.1.0") | |
1263 | (source | |
1264 | (origin | |
1265 | (method url-fetch) | |
1266 | (uri (string-append "https://0xacab.org/riseuplabs/trees/repository/" | |
1267 | "archive.tar.gz?ref=v" version)) | |
1268 | (file-name (string-append name "-" version ".tar.gz")) | |
1269 | (sha256 | |
1270 | (base32 | |
1271 | "0rkk10b1bsjz979sc864vpgcdchy7yxwmyv4ik50lar1h6awdnrf")))) | |
1272 | (build-system gnu-build-system) | |
1273 | (native-inputs | |
1274 | `(("automake" ,automake) | |
1275 | ("autoconf" ,autoconf) | |
1276 | ("libtool" ,libtool) | |
1277 | ("dovecot" ,dovecot) | |
1278 | ("pkg-config" ,pkg-config))) | |
1279 | (inputs | |
1280 | `(("libsodium" ,libsodium))) | |
1281 | (arguments | |
1282 | `(#:tests? #f ;No tests exist. | |
1283 | #:configure-flags (list (string-append "--with-dovecot=" | |
1284 | (assoc-ref %build-inputs "dovecot") | |
1285 | "/lib/dovecot")) | |
1286 | #:phases | |
1287 | (modify-phases %standard-phases | |
d10092b8 | 1288 | (add-after 'unpack 'autogen |
cf47a8a5 | 1289 | (lambda _ |
d10092b8 | 1290 | (zero? (system* "sh" "autogen.sh"))))))) |
cf47a8a5 | 1291 | (home-page "https://0xacab.org/riseuplabs/trees") |
1292 | (synopsis "NaCL-based Dovecot email storage encryption plugin") | |
1293 | (description | |
1294 | "Technology for Resting Email Encrypted Storage (TREES) is a NaCL-based | |
944a5cdd | 1295 | Dovecot encryption plugin. This plugin adds individually encrypted mail |
1296 | storage to the Dovecot IMAP server. It is inspired by Posteo's scrambler | |
1297 | which uses OpenSSL and RSA keypairs. TREES works in a similar way, but uses | |
1298 | the Sodium crypto library (based on NaCL). | |
1299 | ||
1300 | How it works: | |
1301 | @enumerate | |
1302 | @item On IMAP log in, the user's cleartext password is passed to the plugin. | |
1303 | @item The plugin creates an argon2 digest from the password. | |
1304 | @item This password digest is used as a symmetric secret to decrypt a libsodium secretbox. | |
1305 | @item Inside the secretbox is stored a Curve25519 private key. | |
1306 | @item The Curve25519 private key is used to decrypt each individual message, | |
1307 | using lidsodium sealed boxes. | |
1308 | @item New mail is encrypted as it arrives using the Curve25519 public key. | |
1309 | @end enumerate\n") | |
cf47a8a5 | 1310 | (license agpl3))) |
944a5cdd | 1311 | |
a4651f64 | 1312 | (define-public dovecot-libsodium-plugin |
1313 | (let ((commit "044de73c01c35385df0105f6b387bec5d5317ce7") | |
1314 | (revision "1")) | |
1315 | (package | |
1316 | (name "dovecot-libsodium-plugin") | |
1317 | (version (string-append "0.0.0-" revision "." (string-take commit 7))) | |
1318 | (source | |
1319 | (origin | |
1320 | (method git-fetch) | |
1321 | (uri (git-reference | |
1322 | (url "https://github.com/LuckyFellow/dovecot-libsodium-plugin") | |
1323 | (commit commit))) | |
1324 | (file-name (string-append name "-" version "-checkout")) | |
1325 | (sha256 | |
1326 | (base32 | |
1327 | "13h07l7xy713zchnj2p9fhvq7fdl4zy1ai94li3ygkqjjj8hrgas")))) | |
1328 | (build-system gnu-build-system) | |
1329 | (native-inputs | |
1330 | `(("automake" ,automake) | |
1331 | ("autoconf" ,autoconf) | |
1332 | ("libtool" ,libtool) | |
1333 | ("dovecot" ,dovecot) | |
1334 | ("pkg-config" ,pkg-config))) | |
1335 | (inputs | |
1336 | `(("libsodium" ,libsodium))) | |
1337 | (arguments | |
1338 | `(#:tests? #f ;No tests exist. | |
1339 | #:configure-flags (list (string-append "--with-dovecot=" | |
1340 | (assoc-ref %build-inputs "dovecot") | |
1341 | "/lib/dovecot")) | |
1342 | #:phases | |
1343 | (modify-phases %standard-phases | |
d10092b8 | 1344 | (add-after 'unpack 'autogen |
a4651f64 | 1345 | (lambda _ |
d10092b8 | 1346 | (zero? (system* "sh" "autogen.sh"))))))) |
a4651f64 | 1347 | (home-page "https://github.com/LuckyFellow/dovecot-libsodium-plugin") |
1348 | (synopsis "Libsodium password hashing schemes plugin for Dovecot") | |
1349 | (description | |
1350 | "@code{dovecot-libsodium-plugin} provides libsodium password | |
1351 | hashing schemes plugin for @code{Dovecot}.") | |
1352 | (license gpl3+)))) | |
1353 | ||
81ce19f4 TČ |
1354 | (define-public isync |
1355 | (package | |
1356 | (name "isync") | |
49490231 | 1357 | (version "1.3.0") |
81ce19f4 TČ |
1358 | (source |
1359 | (origin | |
1360 | (method url-fetch) | |
1361 | (uri (string-append "mirror://sourceforge/isync/isync/" | |
1362 | version "/isync-" version ".tar.gz")) | |
1363 | (sha256 (base32 | |
49490231 | 1364 | "173wd7x8y5sp94slzwlnb7zhgs32r57zl9xspl2rf4g3fqwmhpwd")))) |
81ce19f4 | 1365 | (build-system gnu-build-system) |
49490231 LF |
1366 | (native-inputs |
1367 | `(("perl" ,perl))) | |
81ce19f4 TČ |
1368 | (inputs |
1369 | `(("bdb" ,bdb) | |
1370 | ("openssl" ,openssl))) | |
1371 | (home-page "http://isync.sourceforge.net/") | |
1372 | (synopsis "Mailbox synchronization program") | |
1373 | (description | |
1374 | "isync/mbsync is command line tool for two-way synchronization of | |
1375 | mailboxes. Currently Maildir and IMAP are supported types.") | |
1376 | (license gpl2+))) | |
1377 | ||
26b8de19 EB |
1378 | (define-public perl-email-abstract |
1379 | (package | |
1380 | (name "perl-email-abstract") | |
1381 | (version "3.008") | |
1382 | (source | |
1383 | (origin | |
1384 | (method url-fetch) | |
1385 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1386 | "Email-Abstract-" version ".tar.gz")) | |
1387 | (sha256 | |
1388 | (base32 | |
1389 | "0h42rhvp769wb421cpbbg6v6xjp8iv86mvz70pqgfgf4nsn6jwgw")))) | |
1390 | (build-system perl-build-system) | |
1391 | (propagated-inputs | |
1392 | `(("perl-email-simple" ,perl-email-simple) | |
a2190ccc | 1393 | ("perl-module-pluggable" ,perl-module-pluggable) |
26b8de19 EB |
1394 | ("perl-mro-compat" ,perl-mro-compat))) |
1395 | (home-page "http://search.cpan.org/dist/Email-Abstract") | |
1396 | (synopsis "Interface to mail representations") | |
1397 | (description "Email::Abstract provides module writers with the ability to | |
1398 | write simple, representation-independent mail handling code.") | |
2f3108ad | 1399 | (license perl-license))) |
26b8de19 | 1400 | |
ebda902f EB |
1401 | (define-public perl-email-address |
1402 | (package | |
1403 | (name "perl-email-address") | |
c8213ffc | 1404 | (version "1.909") |
ebda902f EB |
1405 | (source |
1406 | (origin | |
1407 | (method url-fetch) | |
1408 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1409 | "Email-Address-" version ".tar.gz")) | |
1410 | (sha256 | |
1411 | (base32 | |
c8213ffc | 1412 | "0l7x6sl06j9ffgfz5f9vgms2b5axd4cgp5fj03ivb3kia4km6b3g")))) |
ebda902f EB |
1413 | (build-system perl-build-system) |
1414 | (home-page "http://search.cpan.org/dist/Email-Address") | |
1415 | (synopsis "Email address parsing and creation") | |
1416 | (description "Email::Address implements a regex-based RFC 2822 parser that | |
1417 | locates email addresses in strings and returns a list of Email::Address | |
1418 | objects found. Alternatively you may construct objects manually.") | |
2f3108ad | 1419 | (license perl-license))) |
ebda902f | 1420 | |
aa86a3be EB |
1421 | (define-public perl-email-date-format |
1422 | (package | |
1423 | (name "perl-email-date-format") | |
1424 | (version "1.005") | |
1425 | (source | |
1426 | (origin | |
1427 | (method url-fetch) | |
1428 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1429 | "Email-Date-Format-" version ".tar.gz")) | |
1430 | (sha256 | |
1431 | (base32 | |
1432 | "012ivfwpnbl3wr50f9c6f4azhdlxnm31pdn72528g79v61z6372p")))) | |
1433 | (build-system perl-build-system) | |
1434 | (home-page "http://search.cpan.org/dist/Email-Date-Format") | |
1435 | (synopsis "Produce RFC 2822 date strings") | |
1436 | (description "Email::Date::Format provides a means for generating an RFC | |
1437 | 2822 compliant datetime string.") | |
2f3108ad | 1438 | (license perl-license))) |
aa86a3be | 1439 | |
08bf7095 EB |
1440 | (define-public perl-email-messageid |
1441 | (package | |
1442 | (name "perl-email-messageid") | |
1fb37ef0 | 1443 | (version "1.406") |
08bf7095 EB |
1444 | (source |
1445 | (origin | |
1446 | (method url-fetch) | |
1447 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1448 | "Email-MessageID-" version ".tar.gz")) | |
1449 | (sha256 | |
1450 | (base32 | |
1fb37ef0 | 1451 | "1f22sdnfq169qw1l0lg7y74pmiam7j9v95bggjnf3q4mygdmshpc")))) |
08bf7095 EB |
1452 | (build-system perl-build-system) |
1453 | (home-page "http://search.cpan.org/dist/Email-MessageID") | |
1454 | (synopsis "Generate world unique message-ids") | |
1455 | (description "Email::MessageID generates recommended message-ids to | |
1456 | identify a message uniquely.") | |
2f3108ad | 1457 | (license perl-license))) |
08bf7095 | 1458 | |
0a4c49f6 EB |
1459 | (define-public perl-email-mime |
1460 | (package | |
1461 | (name "perl-email-mime") | |
4f50fd75 | 1462 | (version "1.946") |
0a4c49f6 EB |
1463 | (source |
1464 | (origin | |
1465 | (method url-fetch) | |
1466 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1467 | "Email-MIME-" version ".tar.gz")) | |
1468 | (sha256 | |
1469 | (base32 | |
4f50fd75 | 1470 | "0z1k3i0lzp2k421gc8f3wq0jbqflkbw2xqd2k7n7pmv56417kvk8")))) |
0a4c49f6 EB |
1471 | (build-system perl-build-system) |
1472 | (propagated-inputs | |
1473 | `(("perl-email-address" ,perl-email-address) | |
1474 | ("perl-email-messageid" ,perl-email-messageid) | |
1475 | ("perl-email-mime-contenttype" ,perl-email-mime-contenttype) | |
1476 | ("perl-email-mime-encodings" ,perl-email-mime-encodings) | |
1477 | ("perl-email-simple" ,perl-email-simple) | |
4f50fd75 TGR |
1478 | ("perl-mime-types" ,perl-mime-types) |
1479 | ("perl-module-runtime" ,perl-module-runtime))) | |
0a4c49f6 EB |
1480 | (home-page "http://search.cpan.org/dist/Email-MIME") |
1481 | (synopsis "MIME message handling") | |
1482 | (description "Email::MIME is an extension of the Email::Simple module, to | |
1483 | handle MIME encoded messages. It takes a message as a string, splits it up | |
1484 | into its constituent parts, and allows you access to various parts of the | |
1485 | message. Headers are decoded from MIME encoding.") | |
2f3108ad | 1486 | (license perl-license))) |
0a4c49f6 | 1487 | |
55025bb5 EB |
1488 | (define-public perl-email-mime-contenttype |
1489 | (package | |
1490 | (name "perl-email-mime-contenttype") | |
9b5fc20c | 1491 | (version "1.022") |
55025bb5 EB |
1492 | (source |
1493 | (origin | |
1494 | (method url-fetch) | |
1495 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1496 | "Email-MIME-ContentType-" version ".tar.gz")) | |
1497 | (sha256 | |
1498 | (base32 | |
9b5fc20c | 1499 | "042kxhs3bp1ab9z0mbr1wy21ld4lxd6v2a2mmrashqnsn2075fws")))) |
55025bb5 EB |
1500 | (build-system perl-build-system) |
1501 | (native-inputs | |
1502 | `(("perl-capture-tiny" ,perl-capture-tiny))) | |
1503 | (home-page "http://search.cpan.org/dist/Email-MIME-ContentType") | |
1504 | (synopsis "Parse MIME Content-Type headers") | |
1505 | (description "Email::MIME::ContentType parses a MIME Content-Type | |
1506 | header.") | |
2f3108ad | 1507 | (license perl-license))) |
55025bb5 | 1508 | |
02e29936 EB |
1509 | (define-public perl-email-mime-encodings |
1510 | (package | |
1511 | (name "perl-email-mime-encodings") | |
1512 | (version "1.315") | |
1513 | (source | |
1514 | (origin | |
1515 | (method url-fetch) | |
1516 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1517 | "Email-MIME-Encodings-" version ".tar.gz")) | |
1518 | (sha256 | |
1519 | (base32 | |
1520 | "0p5b8g9gh35m8fqrpx60g4bp98rvwd02n5b0vm9wh7mk0xah8wac")))) | |
1521 | (build-system perl-build-system) | |
1522 | (native-inputs | |
1523 | `(("perl-capture-tiny" ,perl-capture-tiny))) | |
1524 | (home-page "http://search.cpan.org/dist/Email-MIME-Encodings") | |
1525 | (synopsis "Unified interface to MIME encoding and decoding") | |
1526 | (description "This module wraps MIME::Base64 and MIME::QuotedPrint.") | |
2f3108ad | 1527 | (license perl-license))) |
02e29936 | 1528 | |
a24c5420 EB |
1529 | (define-public perl-email-sender |
1530 | (package | |
1531 | (name "perl-email-sender") | |
801eb746 | 1532 | (version "1.300031") |
a24c5420 EB |
1533 | (source |
1534 | (origin | |
1535 | (method url-fetch) | |
1536 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1537 | "Email-Sender-" version ".tar.gz")) | |
1538 | (sha256 | |
1539 | (base32 | |
801eb746 | 1540 | "052g0slw3h2lzn93j71fi47nfawww2aph4jhr3c860ji70lkf4n4")))) |
a24c5420 EB |
1541 | (build-system perl-build-system) |
1542 | (native-inputs | |
1543 | `(("perl-capture-tiny" ,perl-capture-tiny))) | |
1544 | (propagated-inputs | |
1545 | `(("perl-email-abstract" ,perl-email-abstract) | |
1546 | ("perl-email-address" ,perl-email-address) | |
1547 | ("perl-email-simple" ,perl-email-simple) | |
1548 | ("perl-list-moreutils" ,perl-list-moreutils) | |
1549 | ("perl-module-runtime" ,perl-module-runtime) | |
1550 | ("perl-moo" ,perl-moo) | |
1551 | ("perl-moox-types-mooselike" ,perl-moox-types-mooselike) | |
1552 | ("perl-sub-exporter" ,perl-sub-exporter) | |
1553 | ("perl-throwable" ,perl-throwable) | |
1554 | ("perl-try-tiny" ,perl-try-tiny))) | |
1555 | (home-page "http://search.cpan.org/dist/Email-Sender") | |
1556 | (synopsis "Perl library for sending email") | |
1557 | (description "Email::Sender replaces the old and sometimes problematic | |
1558 | Email::Send library.") | |
2f3108ad | 1559 | (license perl-license))) |
a24c5420 | 1560 | |
151ef3ed EB |
1561 | (define-public perl-email-simple |
1562 | (package | |
1563 | (name "perl-email-simple") | |
25adc006 | 1564 | (version "2.214") |
151ef3ed EB |
1565 | (source |
1566 | (origin | |
1567 | (method url-fetch) | |
1568 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1569 | "Email-Simple-" version ".tar.gz")) | |
1570 | (sha256 | |
1571 | (base32 | |
25adc006 | 1572 | "14kb86hi0m0bqc7kxpm4x5kvfsyj2x86gggbvpxhx9hy8hvjpw5j")))) |
151ef3ed EB |
1573 | (build-system perl-build-system) |
1574 | (propagated-inputs | |
1575 | `(("perl-email-date-format" ,perl-email-date-format))) | |
1576 | (home-page "http://search.cpan.org/dist/Email-Simple") | |
1577 | (synopsis "Parsing of RFC 2822 messages") | |
1578 | (description "Email::Simple provides simple parsing of RFC 2822 message | |
1579 | format and headers.") | |
2f3108ad | 1580 | (license perl-license))) |
151ef3ed | 1581 | |
f5dceecb AW |
1582 | (define-public libesmtp |
1583 | (package | |
1584 | (name "libesmtp") | |
1585 | (version "1.0.6") | |
1586 | (source | |
1587 | (origin | |
1588 | (method url-fetch) | |
049e02ea LF |
1589 | (uri (list (string-append "https://pkgs.fedoraproject.org/repo/pkgs/" |
1590 | "libesmtp/libesmtp-" version ".tar.bz2/" | |
1591 | "bf3915e627fd8f35524a8fdfeed979c8/libesmtp-" | |
1592 | version ".tar.bz2") | |
1593 | ;; XXX This site is offline, so we fetch Fedora's cached copy | |
1594 | ;; of the source tarball. | |
1595 | (string-append "http://www.stafford.uklinux.net/libesmtp/libesmtp-" | |
1596 | version ".tar.bz2"))) | |
f5dceecb AW |
1597 | (sha256 |
1598 | (base32 | |
1599 | "02zbniyz7qys1jmx3ghx21kxmns1wc3hmv80gp7ag7yra9f1m9nh")))) | |
1600 | (build-system gnu-build-system) | |
1601 | (propagated-inputs | |
1602 | `(("openssl" ,openssl))) | |
1603 | (home-page "http://www.stafford.uklinux.net/libesmtp/") | |
1604 | (synopsis "Library for sending mail via remote hosts using SMTP") | |
1605 | (description "libESMTP is an SMTP client which manages posting (or | |
1606 | submission of) electronic mail via a preconfigured Mail Transport Agent (MTA). | |
1607 | It may be used as part of a Mail User Agent (MUA) or other program that must | |
1608 | be able to post electronic mail where mail functionality may not be that | |
1609 | program's primary purpose.") | |
1610 | (license (list lgpl2.1+ gpl2+)))) | |
1611 | ||
f8ae32a2 AW |
1612 | (define-public esmtp |
1613 | (package | |
1614 | (name "esmtp") | |
1615 | (version "1.2") | |
1616 | (source | |
1617 | (origin | |
1618 | (method git-fetch) | |
1619 | (uri (git-reference | |
1620 | (url "https://github.com/andywingo/esmtp.git") | |
1621 | (commit "01bf9fc"))) | |
1622 | (sha256 | |
1623 | (base32 | |
1624 | "1ay282rrl92h0m0m8z5zzjnwiiagi7c78aq2qvhia5mw7prwfyw2")) | |
1625 | (file-name (string-append name "-" version "-checkout")))) | |
1626 | (arguments | |
1627 | `(#:phases (modify-phases %standard-phases | |
1628 | (add-before | |
1629 | 'configure 'autoconf | |
1630 | (lambda _ (zero? (system* "autoreconf" "-vfi"))))))) | |
1631 | (build-system gnu-build-system) | |
1632 | (native-inputs | |
1633 | `(("bison" ,bison) | |
1634 | ("flex" ,flex) | |
1635 | ("autoconf" ,autoconf) | |
1636 | ("automake" ,automake) | |
1637 | ("libtool" ,libtool))) | |
1638 | (inputs | |
718c5dd6 | 1639 | `(("libesmtp" ,libesmtp))) |
3b3b60d0 | 1640 | (home-page "https://sourceforge.net/projects/esmtp/") |
f8ae32a2 AW |
1641 | (synopsis "Relay-only mail transfer agent (MTA)") |
1642 | (description "Esmtp is a simple relay-only mail transfer agent built using | |
1643 | libESMTP. It sends e-mail via a remote SMTP server using credentials from the | |
1644 | user's @file{$HOME/.esmtprc} configuration file; see the @command{esmtprc} man | |
1645 | page for more on configuration. This package also provides minimal | |
1646 | compatibility shims for the @command{sendmail}, @command{mailq}, and | |
1647 | @command{newaliases} commands.") | |
1648 | (license gpl2+))) | |
1649 | ||
34dd26af CAW |
1650 | (define-public fdm |
1651 | (package | |
1652 | (name "fdm") | |
1653 | (version "1.9") | |
1654 | (source (origin | |
1655 | (method url-fetch) | |
1656 | (uri (string-append "https://github.com/nicm/fdm/releases/download/" | |
1657 | version "/fdm-" | |
1658 | version ".tar.gz")) | |
1659 | (file-name (string-append name "-" version ".tar.gz")) | |
1660 | (sha256 | |
1661 | (base32 "054rscijahiza5f9qha79rg3siji3bk5mk10f8c2vqx7m4w6qh8n")))) | |
1662 | (build-system gnu-build-system) | |
1663 | (inputs | |
1664 | `(("tdb" ,tdb) | |
1665 | ("openssl" ,openssl) | |
1666 | ("zlib" ,zlib))) | |
1667 | (home-page "https://github.com/nicm/fdm") | |
1668 | (synopsis "Mail Retrieval Agent (MRA) and Mail Delivery Agent (MDA)") | |
1669 | (description "fdm is a program designed to fetch mail from POP3 | |
1670 | or IMAP servers, or receive local mail from stdin, and | |
1671 | deliver it in various ways.") | |
1672 | (license | |
1673 | ;; Why point to a source file? Well, all the individual files have a | |
1674 | ;; copy of this license in their headers, but there's no seprate file | |
1675 | ;; with that information. | |
16966d5b | 1676 | (non-copyleft "https://github.com/nicm/fdm/blob/master/command.c")))) |
34dd26af | 1677 | |
e90819c4 LG |
1678 | |
1679 | (define-public procmail | |
1680 | (package | |
1681 | (name "procmail") | |
1682 | (version "3.22") | |
1683 | (source | |
1684 | (origin | |
1685 | (method url-fetch) | |
1686 | (uri (string-append | |
1687 | "ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-" | |
1688 | version | |
1689 | ".tar.gz")) | |
1690 | (sha256 | |
1691 | (base32 | |
1692 | "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08")) | |
1693 | ;; The following patch fixes an ambiguous definition of | |
1694 | ;; getline() in formail.c. The patch is provided by Debian as | |
1695 | ;; patch 24. | |
1d982d78 | 1696 | (patches (search-patches "procmail-ambiguous-getline-debian.patch" |
c297e965 LF |
1697 | "procmail-CVE-2014-3618.patch" |
1698 | "procmail-CVE-2017-16844.patch")))) | |
e90819c4 LG |
1699 | (arguments |
1700 | `(#:phases (modify-phases %standard-phases | |
1701 | (replace 'configure | |
1702 | (lambda _ | |
1703 | (substitute* "Makefile" | |
1704 | (("/bin/sh") | |
1705 | (which "sh")) | |
1706 | (("/usr") | |
1707 | (assoc-ref %outputs "out")) | |
1708 | (("/bin/rm") | |
1709 | (which "rm"))) | |
1710 | #t))) | |
1711 | #:tests? #f)) ;; There are no tests indicating a successful | |
1712 | ;; build. Some tests of basic locking mechanisms provided by the | |
8f65585b | 1713 | ;; file system are performed during 'make install'. However, these |
e90819c4 LG |
1714 | ;; are performed before the actual build process. |
1715 | (build-system gnu-build-system) | |
05aa576b | 1716 | (inputs `(("exim" ,exim))) |
e90819c4 LG |
1717 | (home-page "http://www.procmail.org/") |
1718 | (synopsis "Versatile mail delivery agent (MDA)") | |
1719 | (description "Procmail is a mail delivery agent (MDA) featuring support | |
1720 | for a variety of mailbox formats such as mbox, mh and maildir. Incoming mail | |
1721 | can be sorted into separate files/directories and arbitrary commands can be | |
1722 | executed on mail arrival. Procmail is considered stable, but is no longer | |
1723 | maintained.") | |
1724 | (license gpl2+))) ;; procmail allows to choose the | |
1725 | ;; nonfree Artistic License 1.0 | |
1726 | ;; as alternative to the GPL2+. | |
1727 | ;; This option is not listed here. | |
e90819c4 | 1728 | |
61c30e9d LF |
1729 | (define-public khard |
1730 | (package | |
1731 | (name "khard") | |
4a3495d5 | 1732 | (version "0.11.4") |
61c30e9d LF |
1733 | (source (origin |
1734 | (method url-fetch) | |
1735 | (uri (pypi-uri name version)) | |
1736 | (sha256 | |
1737 | (base32 | |
4a3495d5 | 1738 | "1shhlq6ljbd8095hd82v4mw56rjcfxf1ymmgknbgh8gix02nsxw1")))) |
61c30e9d LF |
1739 | (build-system python-build-system) |
1740 | (arguments | |
a57495e2 | 1741 | `(#:phases |
61c30e9d | 1742 | (modify-phases %standard-phases |
61c30e9d LF |
1743 | (add-after 'install 'install-doc |
1744 | (lambda* (#:key outputs #:allow-other-keys) | |
1745 | (let* ((out (assoc-ref outputs "out")) | |
1746 | (doc (string-append out "/share/doc/khard"))) | |
e9eafae2 MB |
1747 | (copy-recursively "misc/khard" doc) |
1748 | #t)))) | |
1749 | ;; FIXME: check phase fails with | |
1750 | ;; "Config file /tmp/.config/khard/khard.conf not available" | |
1751 | #:tests? #f)) | |
61c30e9d | 1752 | (propagated-inputs |
a57495e2 LF |
1753 | `(("python-vobject" ,python-vobject) |
1754 | ("python-pyyaml" ,python-pyyaml) | |
1755 | ("python-atomicwrites" ,python-atomicwrites) | |
1756 | ("python-configobj" ,python-configobj))) | |
61c30e9d LF |
1757 | (synopsis "Console address book using CardDAV") |
1758 | (description "Khard is an address book for the console. It creates, reads, | |
1759 | modifies and removes CardDAV address book entries at your local machine. For | |
1760 | synchronizing with a remote address book, @command{vdirsyncer} is recommended. | |
1761 | Khard can also be used from within the email client @command{mutt}.") | |
1762 | (home-page "https://github.com/scheibler/khard") | |
1763 | (license gpl3+))) | |
be0c5733 DM |
1764 | |
1765 | (define-public perl-mail-spf | |
1766 | (package | |
1767 | (name "perl-mail-spf") | |
1768 | (version "v2.9.0") | |
1769 | (source | |
1770 | (origin | |
1771 | (method url-fetch) | |
1772 | (uri (string-append | |
1773 | "mirror://cpan/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-" | |
1774 | version | |
1775 | ".tar.gz")) | |
1776 | (sha256 | |
1777 | (base32 | |
1778 | "0qk1rfgfm5drj4iyniiabrasrpqv570vzhgz66lwgb67y4amkjv1")))) | |
1779 | (build-system perl-build-system) | |
1780 | (native-inputs | |
1781 | `(("perl-module-build" ,perl-module-build) | |
1782 | ("perl-net-dns-resolver-programmable" | |
1783 | ,perl-net-dns-resolver-programmable))) | |
1784 | (arguments | |
1785 | `(#:phases (modify-phases %standard-phases | |
1786 | (add-before 'configure 'modify-Build.PL | |
1787 | (lambda* (#:key outputs #:allow-other-keys) | |
1788 | (substitute* "Build.PL" | |
1789 | (("'/usr/sbin'") (string-append "'" | |
1790 | (assoc-ref outputs "out") | |
1791 | "/sbin'"))) | |
1792 | #t))))) | |
1793 | (inputs | |
1794 | `(("perl-error" ,perl-error) | |
1795 | ("perl-net-dns" ,perl-net-dns) | |
1796 | ("perl-netaddr-ip" ,perl-netaddr-ip) | |
1797 | ("perl-uri" ,perl-uri))) | |
1798 | (home-page | |
1799 | "http://search.cpan.org/dist/Mail-SPF") | |
1800 | (synopsis | |
1801 | "Perl implementation of Sender Policy Framework") | |
1802 | (description "Mail::SPF is the Sender Policy Framework implemented | |
1803 | in Perl.") | |
1804 | (license bsd-3))) | |
24262239 CL |
1805 | |
1806 | (define-public mb2md | |
1807 | (package | |
1808 | (name "mb2md") | |
1809 | (version "3.20") | |
1810 | (source (origin | |
1811 | (method url-fetch) | |
1812 | (uri (string-append | |
1813 | "http://batleth.sapienti-sat.org/projects/mb2md/mb2md-" | |
1814 | version ".pl.gz")) | |
1815 | (sha256 | |
1816 | (base32 | |
1817 | "0bvkky3c90738h3skd2f1b2yy5xzhl25cbh9w2dy97rs86ssjidg")))) | |
1818 | (build-system trivial-build-system) | |
1819 | (arguments | |
1820 | '(#:modules ((guix build utils)) | |
1821 | #:builder | |
1822 | (begin | |
1823 | (use-modules (guix build utils)) | |
1824 | (let* ((source (assoc-ref %build-inputs "source")) | |
1825 | (out (assoc-ref %outputs "out")) | |
1826 | (bin (string-append out "/bin")) | |
1827 | (perl (assoc-ref %build-inputs "perl")) | |
1828 | (gzip (assoc-ref %build-inputs "gzip")) | |
1829 | (perl-timedate (assoc-ref %build-inputs "perl-timedate")) | |
1830 | (perl5lib (string-append perl-timedate "/lib/perl5/site_perl"))) | |
1831 | (mkdir-p bin) | |
1832 | (with-directory-excursion bin | |
1833 | (copy-file source "mb2md.gz") | |
1834 | (system* (string-append gzip "/bin/gzip") "-d" "mb2md.gz") | |
1835 | (substitute* "mb2md" | |
1836 | (("#!/usr/bin/perl") | |
1837 | (string-append "#!/usr/bin/perl -I " perl5lib))) | |
1838 | (patch-shebang "mb2md" (list (string-append perl "/bin"))) | |
1839 | (chmod "mb2md" #o555)) | |
1840 | #t)))) | |
c695fb76 | 1841 | (native-inputs `(("gzip" ,gzip))) |
24262239 CL |
1842 | (inputs `(("perl" ,perl) |
1843 | ("perl-timedate" ,perl-timedate))) | |
1844 | (home-page "http://batleth.sapienti-sat.org/projects/mb2md/") | |
1845 | (synopsis "Mbox to maildir converter") | |
1846 | (description | |
1847 | "Mb2md is a Perl script that takes one or more mbox format files and | |
1848 | converts them to maildir format directories.") | |
1849 | (license public-domain))) | |
e0d7b421 AI |
1850 | |
1851 | (define-public mpop | |
1852 | (package | |
1853 | (name "mpop") | |
5837e699 | 1854 | (version "1.2.6") |
e0d7b421 AI |
1855 | (source |
1856 | (origin | |
1857 | (method url-fetch) | |
175c9103 LF |
1858 | (uri (string-append "mirror://sourceforge/mpop/mpop/" version |
1859 | "/mpop-" version ".tar.xz")) | |
e0d7b421 AI |
1860 | (sha256 |
1861 | (base32 | |
5837e699 | 1862 | "0p1ix63jh64dibrlccch8q7gxl9nn18wd2qpyr5z1h4gs2fpmv4z")))) |
e0d7b421 AI |
1863 | (build-system gnu-build-system) |
1864 | (inputs | |
1865 | `(("gnutls" ,gnutls) | |
1866 | ("libidn" ,libidn))) | |
1867 | (native-inputs | |
1868 | `(("pkg-config" ,pkg-config))) | |
1869 | (arguments | |
1870 | `(#:configure-flags (list "--with-tls=gnutls"))) | |
1871 | (home-page "http://mpop.sourceforge.net/") | |
1872 | (synopsis "POP3 mail client") | |
1873 | (description "mpop is a small and fast POP3 client suitable as a | |
1874 | fetchmail replacement. | |
1875 | ||
1876 | mpop supports multiple accounts, header based mail filtering, delivery | |
1877 | to mbox files, maildir folders or a Mail Delivery Agent (MDA), | |
1878 | TLS/SSL, several authentication methods, Internationalized Domain | |
1879 | Names (IDN) and SOCKS proxies.") | |
1880 | (license gpl3+))) | |
74c0282c | 1881 | |
1882 | (define-public mhonarc | |
1883 | (package | |
1884 | (name "mhonarc") | |
1885 | (version "2.6.19") | |
1886 | (source | |
1887 | (origin | |
1888 | (method url-fetch) | |
1889 | (uri (string-append "mirror://cpan/authors/id/E/EH/EHOOD/MHonArc-" | |
1890 | version ".tar.gz")) | |
1891 | (sha256 | |
1892 | (base32 | |
1893 | "0ll3v93yji334zqp6xfzfxc0127pmjcznmai1l5q6dzawrs2igzq")))) | |
1894 | (build-system perl-build-system) | |
1895 | (home-page "https://www.mhonarc.org/") | |
1896 | (synopsis "Create HTML archives of mail/news messages") | |
1897 | (description | |
1898 | "MHonArc is a Perl mail-to-HTML converter. MHonArc | |
1899 | provides HTML mail archiving with index, mail thread linking, | |
1900 | etc; plus other capabilities including support for MIME and | |
1901 | powerful user customization features.") | |
1902 | (license gpl2+))) | |
5d87088c JD |
1903 | |
1904 | ||
1905 | (define-public sendmail | |
1906 | (package | |
1907 | (name "sendmail") | |
1908 | (version "8.15.2") | |
1909 | (source | |
1910 | (origin | |
1911 | (method url-fetch) | |
1912 | (uri (string-append | |
1913 | "ftp://ftp.sendmail.org/pub/sendmail/sendmail." | |
1914 | version ".tar.gz")) | |
1915 | (sha256 | |
1916 | (base32 | |
1917 | "0fdl9ndmspqspdlmghzxlaqk56j3yajk52d7jxcg21b7sxglpy94")))) | |
1918 | (build-system gnu-build-system) | |
1919 | (arguments | |
1920 | `(#:phases | |
1921 | (modify-phases %standard-phases | |
1922 | (add-before 'build 'replace-/bin/sh | |
1923 | (lambda _ | |
1924 | (substitute* | |
1925 | (append | |
1926 | (list "smrsh/smrsh.c" "sendmail/conf.c" "contrib/mailprio" | |
1927 | "contrib/mmuegel" "devtools/bin/configure.sh") | |
1928 | (find-files "." ".*\\.m4") | |
1929 | (find-files "." ".*\\.cf")) | |
19527952 | 1930 | (("/bin/sh") (which "sh"))) |
5d87088c JD |
1931 | |
1932 | (substitute* "devtools/bin/Build" | |
19527952 | 1933 | (("SHELL=/bin/sh") (string-append "SHELL=" (which "sh")))) |
5d87088c JD |
1934 | #t)) |
1935 | (replace 'configure | |
1936 | (lambda _ | |
1937 | ||
1938 | ;; Render harmless any attempts to chown or chgrp | |
1939 | (substitute* "devtools/bin/install.sh" | |
1940 | (("owner=\\$2") "owner=''") | |
1941 | (("group=\\$2") "group=''")) | |
1942 | ||
1943 | (with-output-to-file "devtools/Site/site.config.m4" | |
1944 | (lambda () | |
1945 | (format #t " | |
1946 | define(`confCC', `gcc') | |
1947 | define(`confOPTIMIZE', `-g -O2') | |
1948 | define(`confLIBS', `-lresolv') | |
1949 | define(`confINSTALL', `~a/devtools/bin/install.sh') | |
1950 | define(`confDEPEND_TYPE', `CC-M') | |
1951 | define(`confINST_DEP', `') | |
1952 | " (getcwd)))))) | |
1953 | (replace 'build | |
1954 | (lambda _ | |
1955 | (and (zero? (system* "sh" "Build")) | |
1956 | (with-directory-excursion "cf/cf" | |
1957 | (begin | |
1958 | (copy-file "generic-linux.mc" "sendmail.mc") | |
1959 | (zero? (system* "sh" "Build" "sendmail.cf"))))))) | |
1960 | (add-before 'install 'pre-install | |
1961 | (lambda _ | |
1962 | (let ((out (assoc-ref %outputs "out"))) | |
1963 | (mkdir-p (string-append out "/usr/bin")) | |
1964 | (mkdir-p (string-append out "/usr/sbin")) | |
1965 | (mkdir-p (string-append out "/etc/mail")) | |
1966 | (setenv "DESTDIR" out) | |
1967 | (with-directory-excursion "cf/cf" | |
1968 | (zero? (system* "sh" "Build" "install-cf"))))))) | |
1969 | ;; There is no make check. There are some post installation tests, but those | |
1970 | ;; require root privileges | |
1971 | #:tests? #f)) | |
1972 | (inputs | |
1973 | `(("m4" ,m4) | |
1974 | ("perl" ,perl))) | |
1975 | (home-page "http://sendmail.org") | |
1976 | (synopsis | |
1977 | "Highly configurable Mail Transfer Agent (MTA)") | |
1978 | (description | |
1979 | "Sendmail is a mail transfer agent (MTA) originally developed by Eric | |
1980 | Allman. It is highly configurable and supports many delivery methods and many | |
1981 | transfer protocols.") | |
1982 | (license (non-copyleft "file://LICENSE" | |
1983 | "See LICENSE in the distribution.")))) | |
1984 | ||
8b53366c | 1985 | (define-public opensmtpd |
1986 | (package | |
1987 | (name "opensmtpd") | |
2f2ce920 | 1988 | (version "6.0.3p1") |
8b53366c | 1989 | (source (origin |
1990 | (method url-fetch) | |
1991 | (uri (string-append "https://www.opensmtpd.org/archives/" | |
1992 | name "-" version ".tar.gz")) | |
1993 | (sha256 | |
1994 | (base32 | |
2f2ce920 | 1995 | "10bsfsnlg9d9i6l2izdnxp05s3ri8fvwzqxvx1jmarc852382619")))) |
8b53366c | 1996 | (build-system gnu-build-system) |
1997 | (inputs | |
1998 | `(("bdb" ,bdb) | |
1999 | ("libressl" ,libressl) | |
2000 | ("libevent" ,libevent) | |
2001 | ("libasr" ,libasr) | |
2002 | ("linux-pam" ,linux-pam) | |
2003 | ("zlib" ,zlib))) | |
2004 | (native-inputs | |
d7da7604 SB |
2005 | `(("bison" ,bison) |
2006 | ("groff" ,groff))) | |
8b53366c | 2007 | (arguments |
ae1e2133 | 2008 | `(#:configure-flags |
a1b517f9 | 2009 | (list "--with-table-db" "--with-auth-pam" "--localstatedir=/var" |
ae1e2133 SB |
2010 | "--with-user-smtpd=smtpd" "--with-user-queue=smtpq" |
2011 | "--with-group-queue=smtpq" | |
2f2ce920 | 2012 | "--with-path-socket=/var/run" ; not default (./configure lies) |
ae1e2133 | 2013 | "--with-path-CAfile=/etc/ssl/certs/ca-certificates.crt") |
8b53366c | 2014 | #:phases |
2015 | (modify-phases %standard-phases | |
2016 | ;; OpenSMTPD provides a single utility smtpctl to control the daemon and | |
2017 | ;; the local submission subsystem. To accomodate systems that require | |
2018 | ;; historical interfaces such as sendmail, newaliases or makemap, the | |
2019 | ;; smtpctl utility can operate in compatibility mode if called with the | |
2020 | ;; historical name. | |
2021 | (add-after 'install 'install-compabilitymode | |
2022 | (lambda _ | |
2023 | (let* ((out (assoc-ref %outputs "out")) | |
2024 | (sbin (string-append out "/sbin/"))) | |
2025 | (for-each (lambda (cmd) | |
2026 | (symlink "smtpctl" (string-append sbin cmd))) | |
2027 | '("makemap" "sendmail" "send-mail" | |
2028 | "newaliases" "mailq"))) | |
2029 | #t))))) | |
2030 | (synopsis "Lightweight SMTP daemon") | |
2031 | (description | |
2032 | "OpenSMTPD is an implementation of the server-side SMTP protocol, with | |
2033 | some additional standard extensions. It allows ordinary machines to exchange | |
2034 | e-mails with other systems speaking the SMTP protocol.") | |
2035 | (home-page "https://www.opensmtpd.org") | |
2036 | (license (list bsd-2 bsd-3 bsd-4 (non-copyleft "file://COPYING") | |
19262a71 | 2037 | public-domain isc license:openssl)))) |
152ffe7c | 2038 | |
2039 | (define-public opensmtpd-extras | |
2040 | (package | |
2041 | (name "opensmtpd-extras") | |
2042 | (version "5.7.1") | |
2043 | (source (origin | |
2044 | (method url-fetch) | |
2045 | (uri (string-append "https://www.opensmtpd.org/archives/" | |
2046 | name "-" version ".tar.gz")) | |
2047 | (sha256 | |
2048 | (base32 | |
2049 | "1kld4hxgz792s0cb2gl7m2n618ikzqkj88w5dhaxdrxg4x2c4vdm")))) | |
2050 | (build-system gnu-build-system) | |
2051 | (inputs | |
2052 | `(("libressl" ,libressl) | |
2053 | ("libevent" ,libevent) | |
2054 | ("libasr" ,libasr) | |
2055 | ("python-2" ,python-2) | |
2056 | ("opensmtpd" ,opensmtpd) | |
2057 | ("perl" ,perl) | |
2058 | ("lua" ,lua) | |
2059 | ("postgresql" ,postgresql) | |
2060 | ("sqlite" ,sqlite) | |
2061 | ("linux-pam" ,linux-pam))) | |
2062 | (native-inputs | |
2063 | `(("bison" ,bison) | |
2064 | ("pkg-config" ,pkg-config) | |
2065 | ("groff" ,groff) | |
2066 | ("automake" ,automake) | |
2067 | ("autoconf" ,autoconf))) | |
2068 | (arguments | |
2069 | `(;; We have to configure it like this because the default checks for for example | |
2070 | ;; python in /usr/local/bin, /usr/bin and fails otherwise. | |
2071 | #:configure-flags (list | |
2072 | "--with-filter-clamav" "--with-filter-dkim-signer" | |
2073 | "--with-filter-dnsbl" "--with-filter-lua" | |
2074 | "--with-filter-monkey" "--with-filter-pause" | |
2075 | "--with-filter-perl" "--with-filter-python" | |
2076 | "--with-filter-regex" "--with-filter-spamassassin" | |
2077 | "--with-filter-stub" "--with-filter-trace" | |
2078 | "--with-filter-void" | |
2079 | ||
2080 | "--with-queue-null" "--with-queue-python" | |
2081 | "--with-queue-ram" "--with-queue-stub" | |
2082 | ||
2083 | "--with-scheduler-python" "--with-scheduler-ram" | |
2084 | "--with-scheduler-stub" | |
2085 | ||
2086 | "--with-table-ldap" ; "--with-table-mysql" | |
2087 | "--with-table-passwd" "--with-table-postgres" | |
2088 | "--with-table-python" "--with-table-socketmap" | |
2089 | "--with-table-sqlite" "--with-table-stub" | |
2090 | ;;"--with-table-redis" ; TODO: package hiredis | |
2091 | ||
2092 | "--with-user=smtpd" "--with-privsep-user=smtpd" | |
2093 | "--localstatedir=/var" "--sysconfdir=/etc" | |
2094 | "--with-lua-type=lua" ; can use lua or luajit | |
2095 | ||
2096 | (string-append "--with-python=" | |
2097 | (assoc-ref %build-inputs "python-2")) | |
2098 | (string-append "--with-lua=" | |
2099 | (assoc-ref %build-inputs "lua"))))) | |
19262a71 LC |
2100 | (license (list bsd-2 bsd-3 bsd-4 |
2101 | public-domain isc license:openssl)) | |
152ffe7c | 2102 | (synopsis "Extra tables, filters, and various other addons for OpenSMTPD") |
2103 | (description | |
2104 | "This package provides extra tables, filters, and various other addons | |
2105 | for OpenSMTPD to extend its functionality.") | |
2106 | (home-page "https://www.opensmtpd.org"))) | |
6d3dda4f | 2107 | |
2108 | (define-public python-mailmanclient | |
2109 | (package | |
2110 | (name "python-mailmanclient") | |
c115a1c8 | 2111 | (version "3.1.1") |
6d3dda4f | 2112 | (source |
2113 | (origin | |
2114 | (method url-fetch) | |
2115 | (uri (pypi-uri "mailmanclient" version)) | |
2116 | (sha256 | |
2117 | (base32 | |
c115a1c8 | 2118 | "0fdfs5g3pf30v2i7w18pdkv9xnfxmfcv66mzv56dck0a1igq07m3")))) |
6d3dda4f | 2119 | (build-system python-build-system) |
2120 | (arguments | |
2121 | `(#:tests? #f)) ; Requires mailman running | |
f22efa01 | 2122 | (propagated-inputs |
6d3dda4f | 2123 | `(("python-six" ,python-six) |
2124 | ("python-httplib2" ,python-httplib2))) | |
2125 | (home-page "https://launchpad.net/mailman.client") | |
2126 | (synopsis "Python bindings for the Mailman 3 REST API") | |
2127 | (description | |
2128 | "The mailmanclient library provides official Python bindings for | |
2129 | the GNU Mailman 3 REST API.") | |
6d3dda4f | 2130 | (license lgpl3+))) |
2131 | ||
2132 | (define-public python2-mailmanclient | |
5c31f4aa | 2133 | (package-with-python2 python-mailmanclient)) |
3163a289 | 2134 | |
2135 | (define-public mlmmj | |
2136 | (package | |
2137 | (name "mlmmj") | |
28b48c87 | 2138 | (version "1.3.0") |
3163a289 | 2139 | (source |
2140 | (origin | |
2141 | (method url-fetch) | |
2142 | (uri (string-append "http://mlmmj.org/releases/mlmmj-" | |
2143 | version ".tar.bz2")) | |
2144 | (sha256 | |
2145 | (base32 | |
28b48c87 | 2146 | "0hpj10qad821ci11si8xc2qnmkzfn90y13s43fm4fca38f0qjp8w")))) |
3163a289 | 2147 | (build-system gnu-build-system) |
2148 | (inputs | |
2149 | `(("perl" ,perl))) ; For "contrib/web/" | |
2150 | (native-inputs | |
2151 | `(("pkg-config" ,pkg-config))) | |
2152 | (arguments | |
2153 | `(#:configure-flags | |
2154 | ;; mlmmj-receive-strip is a replacement for mlmmj-receive | |
2155 | ;; It opens the files control/mimedeny and control/mimestrip to get a list | |
2156 | ;; of mimetypes for parts of multipart/mime messages that should be denied | |
2157 | ;; or stripped. The parts then get stripped directly when the mail is | |
2158 | ;; received. mlmmj-receive-strip also appends an extra header | |
2159 | ;; X-ThisMailContainsUnwantedMimeParts: Y when the mail contains unwanted | |
2160 | ;; mime parts | |
2161 | (list "--enable-receive-strip") | |
2162 | #:phases | |
2163 | (modify-phases %standard-phases | |
2164 | (add-before 'install 'install-contrib | |
2165 | (lambda* (#:key outputs #:allow-other-keys) | |
2166 | (let* ((out (assoc-ref outputs "out")) | |
2167 | (share (string-append out "/share/mlmmj")) | |
2168 | (contrib (string-append share "/contrib/web")) | |
2169 | (texts (string-append share "/listtexts"))) | |
2170 | (copy-recursively "contrib/web/" contrib) | |
2171 | (copy-recursively "listtexts" texts) | |
2172 | (rename-file texts (string-append share "/texts")) | |
2173 | #t)))))) | |
2174 | (home-page "http://mlmmj.org") | |
2175 | (synopsis "Mailing list managing made joyful") | |
2176 | (description | |
2177 | "Mlmmj is a simple and slim mailing list manager (MLM) inspired by ezmlm. | |
2178 | It works with many different Mail Transport Agents (MTAs) and is simple for a | |
d1e4ad1b | 2179 | system administrator to install, configure and integrate with other software. |
3163a289 | 2180 | As it uses very few resources, and requires no daemons, it is ideal for |
2181 | installation on systems where resources are limited. Its features include: | |
2182 | @enumerate | |
2183 | @item Archive, Custom headers / footer, | |
2184 | @item Fully automated bounce handling (similar to ezmlm), | |
2185 | @item Complete requeueing functionality, Moderation functionality, Subject prefix, | |
2186 | @item Subscribers only posting, Regular expression access control, | |
2187 | @item Functionality to retrieve old posts, Web interface, Digests, | |
2188 | @item No-mail subscription, VERP support, | |
2189 | @item Delivery Status Notification (RFC1891) support, | |
2190 | @item Rich and customisable texts for automated operations. | |
2191 | @end enumerate\n") | |
2192 | (license license:expat))) | |
3a263368 | 2193 | |
ea3b9f7b | 2194 | (define-public python2-django-mailman3 |
8a3741e6 | 2195 | (package |
ea3b9f7b | 2196 | (name "python2-django-mailman3") |
bdf0c644 | 2197 | (version "1.1.0") |
8a3741e6 | 2198 | (source |
2199 | (origin | |
2200 | (method url-fetch) | |
2201 | (uri (pypi-uri "django-mailman3" version)) | |
2202 | (sha256 | |
2203 | (base32 | |
bdf0c644 | 2204 | "1xjdkgfjwhgyrp5nxw65dcpcsr98ygj6856sp0bwkrmyxpd1xxk2")))) |
8a3741e6 | 2205 | (build-system python-build-system) |
ea3b9f7b CB |
2206 | (arguments |
2207 | `(#:phases | |
2208 | (modify-phases %standard-phases | |
2209 | (replace 'check | |
2210 | (lambda _ | |
2211 | (zero? | |
2212 | (system* | |
2213 | "django-admin" | |
2214 | "test" | |
2215 | "--settings=django_mailman3.tests.settings_test" | |
2216 | "django_mailman3"))))) | |
2217 | #:python ,python-2)) | |
8a3741e6 | 2218 | (inputs |
ea3b9f7b | 2219 | `(("python2-django" ,python2-django))) |
8a3741e6 | 2220 | (propagated-inputs |
ea3b9f7b CB |
2221 | `(("python2-requests" ,python2-requests) |
2222 | ("python2-requests-oauthlib" ,python2-requests-oauthlib) | |
2223 | ("python2-openid" ,python2-openid) | |
2224 | ("python2-mailmanclient" ,python2-mailmanclient) | |
2225 | ("python2-django-allauth" ,python2-django-allauth) | |
2226 | ("python2-django-gravatar2" ,python2-django-gravatar2) | |
2227 | ("python2-pytz" ,python2-pytz))) | |
8a3741e6 | 2228 | (home-page "https://gitlab.com/mailman/django-mailman3") |
2229 | (synopsis "Django library for Mailman UIs") | |
2230 | (description | |
2231 | "Libraries and templates for Django-based interfaces | |
2232 | interacting with Mailman.") | |
2233 | (license gpl3+))) | |
2234 | ||
d99a2add | 2235 | (define-public postorius |
2236 | (package | |
2237 | (name "postorius") | |
2238 | (version "1.0.3") | |
2239 | (source | |
2240 | (origin | |
2241 | (method url-fetch) | |
2242 | (uri (pypi-uri "postorius" version "+post2.tar.gz")) | |
2243 | (file-name (string-append name "-" version ".tar.gz")) | |
2244 | (sha256 | |
2245 | (base32 | |
2246 | "1wymcpv2icjjy8h1ni52p6dr7wwxf71ivqgbqhzx4i82yqphcaq5")))) | |
2247 | (build-system python-build-system) | |
2248 | (arguments | |
2249 | `(; One test dependency relies on Persona, which was shut down in | |
2250 | ;; November 2016. | |
2251 | #:tests? #f | |
2252 | ;; The part of the frontend of Mailman is still python 2.7. | |
2253 | #:python ,python-2)) | |
2254 | (inputs | |
2255 | `(("python2-django" ,python2-django) | |
2256 | ("python2-django-mailman3" ,python2-django-mailman3) | |
2257 | ("python2-mailmanclient" ,python2-mailmanclient))) | |
2258 | (home-page "https://gitlab.com/mailman/postorius") | |
2259 | (synopsis "Web user interface for GNU Mailman") | |
2260 | (description | |
2261 | "Postorius is a Django app which provides a web user interface | |
2262 | to access GNU Mailman.") | |
2263 | (license (list gpl3+ lgpl3+)))) | |
2264 | ||
3a263368 | 2265 | (define-public blists |
2266 | (package | |
2267 | (name "blists") | |
18b1589b | 2268 | (version "2.0") |
3a263368 | 2269 | (source |
2270 | (origin | |
2271 | (method url-fetch) | |
2272 | (uri (string-append "http://download.openwall.net/pub/projects/" | |
2273 | "blists/blists-" version ".tar.gz")) | |
2274 | (sha256 | |
2275 | (base32 | |
18b1589b | 2276 | "1xll5wn7py3bbncbwrj172f56nz75c9gwfsa80rwd96ss9gfmp3c")))) |
3a263368 | 2277 | (build-system gnu-build-system) |
2278 | (arguments | |
2279 | `(#:tests? #f ; No tests | |
2280 | #:phases | |
2281 | (modify-phases %standard-phases | |
2282 | (delete 'configure) | |
2283 | (replace 'install | |
2284 | (lambda* (#:key outputs #:allow-other-keys) | |
2285 | (let* ((out (assoc-ref outputs "out")) | |
2286 | (bin (string-append out "/bin"))) | |
2287 | (install-file "bindex" bin) | |
2288 | (install-file "bit" bin) | |
2289 | #t)))))) | |
2290 | (home-page "http://www.openwall.com/blists/") | |
2291 | (synopsis "Web interface to mailing list archives") | |
2292 | (description | |
2293 | "Blists is a web interface to mailing list archives that works off | |
2294 | indexed mbox files. There are two programs: @code{bindex} and @code{bit}. | |
2295 | @code{bindex} generates or updates the index file (incremental updates | |
2296 | are supported). @code{bit} is a CGI/SSI program that generates web pages | |
2297 | on the fly. Both programs are written in C and are very fast.") | |
2298 | (license license:expat))) | |
ed428a58 AI |
2299 | |
2300 | (define-public swaks | |
2301 | (package | |
2302 | (name "swaks") | |
2303 | (version "20170101.0") | |
2304 | (source | |
2305 | (origin | |
2306 | (method url-fetch) | |
2307 | (uri (string-append | |
d72f59a4 | 2308 | "https://jetmore.org/john/code/swaks/files/swaks-" |
ed428a58 AI |
2309 | version ".tar.gz")) |
2310 | (sha256 | |
2311 | (base32 | |
2312 | "0pli4mlhasnqqxmmxalwyg3x7n2vhcbgsnp2xgddamjavv82vrl4")))) | |
2313 | (build-system perl-build-system) | |
2314 | (inputs | |
2315 | `(("perl-net-dns" ,perl-net-dns) | |
2316 | ("perl-net-ssleay" ,perl-net-ssleay))) | |
2317 | (arguments | |
2318 | `(#:tests? #f ; No tests | |
2319 | #:phases | |
2320 | (modify-phases %standard-phases | |
2321 | (delete 'configure) | |
2322 | (replace 'build | |
2323 | (lambda _ | |
d72f59a4 | 2324 | (invoke "pod2man" "doc/ref.pod" "swaks.1"))) |
ed428a58 AI |
2325 | (replace 'install |
2326 | (lambda* (#:key outputs #:allow-other-keys) | |
2327 | (let ((out (assoc-ref outputs "out"))) | |
2328 | (install-file "swaks" (string-append out "/bin")) | |
2329 | (install-file "swaks.1" (string-append out "/share/man/man1"))) | |
2330 | #t)) | |
2331 | (add-after 'install 'wrap-program | |
2332 | (lambda* (#:key outputs #:allow-other-keys) | |
2333 | (wrap-program (string-append (assoc-ref outputs "out") | |
2334 | "/bin/swaks") | |
2335 | `("PERL5LIB" ":" = (,(getenv "PERL5LIB")))) | |
2336 | #t))))) | |
d72f59a4 | 2337 | (home-page "https://jetmore.org/john/code/swaks/") |
ed428a58 AI |
2338 | (synopsis "Featureful SMTP test tool") |
2339 | (description "Swaks is a flexible, scriptable, transaction-oriented SMTP | |
2340 | test tool. It handles SMTP features and extensions such as TLS, | |
2341 | authentication, and pipelining; multiple versions of the SMTP protocol | |
2342 | including SMTP, ESMTP, and LMTP; and multiple transport methods including | |
2343 | unix-domain sockets, internet-domain sockets, and pipes to spawned processes. | |
2344 | Options can be specified in environment variables, configuration files, and | |
2345 | the command line allowing maximum configurability and ease of use for | |
2346 | operators and scripters.") | |
2347 | (license gpl2+))) | |
b0eb2af2 | 2348 | |
2349 | (define-public alpine | |
2350 | (package | |
2351 | (name "alpine") | |
78ba71b0 | 2352 | (version "2.21.999") |
b0eb2af2 | 2353 | (source |
2354 | (origin | |
2355 | (method url-fetch) | |
2356 | ;; There are two versions: the plain continuation of Alpine without extra | |
2357 | ;; patches and the version which adds extra fixes. Every distro uses | |
2358 | ;; the patched version, and so do we to not break expectations. | |
32f9cc33 | 2359 | ;; http://alpine.freeiz.com/alpine/readme/README.patches |
78ba71b0 | 2360 | (uri (string-append "http://repo.or.cz/alpine.git/snapshot/" |
2361 | "349642a84039a4b026513c32a3b4f8594acd50df.tar.gz")) | |
2362 | (file-name (string-append name "-" version ".tar.gz")) | |
b0eb2af2 | 2363 | (sha256 |
2364 | (base32 | |
78ba71b0 | 2365 | "1rkvlfk3q7h9jcvaj91pk7l087bq4b38j30060jaw21zz94b90np")))) |
b0eb2af2 | 2366 | (build-system gnu-build-system) |
2367 | (arguments | |
2368 | `(#:make-flags (list "CC=gcc") | |
2369 | #:configure-flags (list (string-append "--with-ssl-include-dir=" | |
2370 | (assoc-ref %build-inputs "openssl") | |
2371 | "/include/openssl") | |
2372 | (string-append "--with-ssl-dir=" | |
2373 | (assoc-ref %build-inputs "openssl")) | |
2374 | (string-append "--with-ssl-certs-dir=" | |
2375 | "/etc/ssl/certs/") | |
2376 | (string-append "--with-ssl-lib-dir=" | |
2377 | (assoc-ref %build-inputs "openssl") | |
2378 | "/lib") | |
2379 | (string-append "--with-interactive-spellcheck=" | |
2380 | (assoc-ref %build-inputs "aspell") | |
2381 | "/bin/aspell")) | |
2382 | #:phases | |
2383 | (modify-phases %standard-phases | |
2384 | (add-after 'unpack 'make-reproducible | |
2385 | (lambda _ | |
2386 | ;; This removes time-dependent code to make alpine reproducible. | |
2387 | (substitute* "pico/blddate.c" | |
2388 | (("%02d-%s-%d") "1970-01-01")) | |
2389 | (substitute* (list "alpine/Makefile.in" | |
2390 | "web/src/alpined.d/Makefile.in") | |
2391 | (("`date`") "1970-01-01")) | |
2392 | #t))))) | |
2393 | (inputs | |
2394 | `(("ncurses" ,ncurses) | |
2395 | ("openssl" ,openssl) | |
2396 | ("gnutls" ,gnutls) | |
2397 | ("openldap" ,openldap) | |
2398 | ("cyrus-sasl" ,cyrus-sasl) | |
2399 | ("mit-krb5" ,mit-krb5) | |
2400 | ("aspell" ,aspell) | |
2401 | ("tcl" ,tcl) | |
2402 | ("linux-pam" ,linux-pam))) | |
78ba71b0 | 2403 | (home-page "http://repo.or.cz/alpine.git") |
b0eb2af2 | 2404 | (synopsis "Alternatively Licensed Program for Internet News and Email") |
2405 | (description | |
2406 | "Alpine is a text-based mail and news client. Alpine includes several | |
2407 | tools and applications: | |
2408 | @enumerate | |
2409 | @item alpine, the Alpine mailer | |
2410 | @item pico, the standalone text editor, GNU nano's predecessor | |
2411 | @item pilot, the standalone file system navigator | |
2412 | @end enumerate\n") | |
2413 | (license asl2.0))) | |
7c16151a RS |
2414 | |
2415 | (define-public balsa | |
2416 | (package | |
2417 | (name "balsa") | |
2418 | (version "2.5.3") | |
2419 | (source | |
2420 | (origin | |
2421 | (method url-fetch) | |
2422 | (uri (string-append "https://pawsa.fedorapeople.org/balsa/balsa-" | |
2423 | version ".tar.bz2")) | |
2424 | (sha256 | |
2425 | (base32 | |
2426 | "15jkwp3ylbwd8iha4dr37z1xb6mkk31ym90vv3h2a5xk2rmym5mq")))) | |
2427 | (build-system gnu-build-system) | |
2428 | (arguments | |
2429 | `(#:configure-flags | |
2430 | '(;; Balsa tries to install additional MIME icons | |
2431 | ;; under gtk+ directory. | |
2432 | "--enable-extra-mimeicons=no" | |
2433 | "--with-gtksourceview" | |
2434 | "--with-canberra" | |
2435 | "--with-spell-checker=gtkspell" | |
2436 | "--with-gpgme" | |
2437 | "--with-sqlite" | |
2438 | "--with-compface" | |
2439 | "--with-ldap"))) | |
2440 | (inputs | |
2441 | `(("cyrus-sasl" ,cyrus-sasl) | |
2442 | ("enchant" ,enchant) | |
2443 | ("gdk-pixbuf" ,gdk-pixbuf) | |
8e020519 | 2444 | ("gmime" ,gmime-2.6) |
7c16151a RS |
2445 | ("gnutls" ,gnutls) |
2446 | ("gpgme" ,gpgme) | |
2447 | ("gtk+" ,gtk+) | |
2448 | ("gtksourceview" ,gtksourceview) | |
2449 | ("gtkspell3" ,gtkspell3) | |
2450 | ("libcanberra" ,libcanberra) | |
2451 | ("libesmtp" ,libesmtp) | |
2452 | ("libnotify" ,libnotify) | |
2453 | ("openldap" ,openldap) | |
2454 | ("sqlite" ,sqlite) | |
2455 | ("webkitgtk" ,webkitgtk))) | |
2456 | (native-inputs | |
2457 | `(("compface" ,compface) | |
2458 | ("glib" ,glib "bin") | |
2459 | ("intltool" ,intltool) | |
2460 | ("pkg-config" ,pkg-config) | |
2461 | ("yelp-tools" ,yelp-tools))) | |
2462 | (home-page "https://pawsa.fedorapeople.org/balsa") | |
2463 | (synopsis "E-mail client for GNOME") | |
2464 | (description "Balsa is a highly configurable and robust mail client for | |
2465 | the GNOME desktop. It supports both POP3 and IMAP servers as well as the | |
2466 | mbox, maildir and mh local mailbox formats. Balsa also supports SMTP and/or | |
b95d5f62 | 2467 | the use of a local MTA such as Sendmail.") |
7c16151a | 2468 | (license gpl3+))) |
1e52fd83 AI |
2469 | |
2470 | (define-public afew | |
2471 | (package | |
2472 | (name "afew") | |
2473 | (version "1.2.0") | |
2474 | (source | |
2475 | (origin | |
2476 | (method url-fetch) | |
2477 | (uri (pypi-uri "afew" version)) | |
2478 | (sha256 | |
2479 | (base32 | |
2480 | "121w7bd53xyibllxxbfykjj76n81kn1vgjqd22izyh67y8qyyk5r")))) | |
2481 | (build-system python-build-system) | |
2482 | (inputs | |
2483 | `(("python-chardet" ,python-chardet) | |
2484 | ("python-notmuch" ,python-notmuch))) | |
2485 | (native-inputs | |
2486 | `(("python-setuptools-scm" ,python-setuptools-scm))) | |
2487 | (home-page "https://github.com/afewmail/afew") | |
2488 | (synopsis "Initial tagging script for notmuch mail") | |
2489 | (description "afew is an initial tagging script for notmuch mail. It | |
2490 | provides automatic tagging each time new mail is registered with notmuch. It | |
2491 | can add tags based on email headers or Maildir folders and can handle spam and | |
2492 | killed threads.") | |
2493 | (license isc))) | |
1679923a DM |
2494 | |
2495 | (define-public pan | |
2496 | (package | |
2497 | (name "pan") | |
2498 | (version "0.144") | |
2499 | (source | |
2500 | (origin | |
2501 | (method url-fetch) | |
2502 | (uri (string-append "http://pan.rebelbase.com/download/releases/" | |
2503 | version "/source/" name "-" version ".tar.bz2")) | |
2504 | (sha256 | |
2505 | (base32 | |
2506 | "0l07y75z8jxhbmfv28slw81gjncs7i89x7fq44zif7xhq5vy7yli")))) | |
2507 | (arguments | |
2508 | `(#:configure-flags '("--with-gtk3" "--with-gtkspell" "--with-gnutls" | |
2509 | "--enable-libnotify" "--enable-manual" | |
2510 | "--enable-gkr") | |
2511 | #:phases | |
2512 | (modify-phases %standard-phases | |
2513 | (add-before 'configure 'patch-gpg2 | |
2514 | (lambda* (#:key inputs #:allow-other-keys) | |
2515 | (substitute* "pan/usenet-utils/gpg.cc" | |
2516 | (("\"gpg2\"") (string-append "\"" | |
2517 | (assoc-ref inputs "gnupg") | |
2518 | "/bin/gpg\""))) | |
2519 | #t))))) | |
2520 | (inputs | |
8e020519 | 2521 | `(("gmime" ,gmime-2.6) |
1679923a DM |
2522 | ("gnupg" ,gnupg) |
2523 | ("gnutls" ,gnutls) | |
2524 | ("gtk+" ,gtk+) | |
2525 | ("gtkspell3" ,gtkspell3) | |
2526 | ("libnotify" ,libnotify) | |
2527 | ("libsecret" ,libsecret) | |
2528 | ("libxml2" ,libxml2) | |
2529 | ("zlib" ,zlib))) | |
2530 | (native-inputs | |
2531 | `(("gettext-minimal" ,gettext-minimal) | |
2532 | ("itstool" ,itstool) | |
2533 | ("pkg-config" ,pkg-config))) | |
2534 | (build-system gnu-build-system) | |
2535 | (home-page "http://pan.rebelbase.com/") | |
2536 | (synopsis "Pan newsreader") | |
2537 | (description "@code{pan} is a Usenet newsreader that's good at both text | |
2538 | and binaries. It supports offline reading, scoring and killfiles, yEnc, NZB, | |
2539 | PGP handling, multiple servers, and secure connections.") | |
2540 | ;; License of the docs: fdl-1.1; Others: gpl2. | |
2541 | (license (list fdl1.1+ gpl2)))) |