Commit | Line | Data |
---|---|---|
a661e420 | 1 | ;;; GNU Guix --- Functional package management for GNU |
05aa576b | 2 | ;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org> |
722ec722 | 3 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> |
29a7c98a | 4 | ;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net> |
98e9e22f | 5 | ;;; Copyright © 2014 Sou Bunnbu <iyzsong@gmail.com> |
f58f767b | 6 | ;;; Copyright © 2014 Julien Lepiller <julien@lepiller.eu> |
66cc3ab2 | 7 | ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> |
17dd4329 | 8 | ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org> |
f6292baf | 9 | ;;; Copyright © 2015, 2016 Eric Bavier <bavier@member.fsf.org> |
2e88d113 | 10 | ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr> |
21565719 | 11 | ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il> |
34dd26af | 12 | ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
8a75c589 | 13 | ;;; Copyright © 2016 Al McElrath <hello@yrns.org> |
823e2ed4 | 14 | ;;; Copyright © 2016 Leo Famulari <leo@famulari.name> |
e90819c4 | 15 | ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org> |
99404fff | 16 | ;;; Copyright © 2016 Alex Kost <alezost@gmail.com> |
a2cb16b0 | 17 | ;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com> |
ae83dcf6 | 18 | ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is> |
a661e420 LC |
19 | ;;; |
20 | ;;; This file is part of GNU Guix. | |
21 | ;;; | |
22 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
23 | ;;; under the terms of the GNU General Public License as published by | |
24 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
25 | ;;; your option) any later version. | |
26 | ;;; | |
27 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
28 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
29 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
30 | ;;; GNU General Public License for more details. | |
31 | ;;; | |
32 | ;;; You should have received a copy of the GNU General Public License | |
33 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
34 | ||
1fdd3ee2 | 35 | (define-module (gnu packages mail) |
59a43334 | 36 | #:use-module (gnu packages) |
d983a14f | 37 | #:use-module (gnu packages autotools) |
d2938d59 | 38 | #:use-module (gnu packages base) |
e8435c4d | 39 | #:use-module (gnu packages backup) |
ee886454 | 40 | #:use-module (gnu packages bash) |
f8ae32a2 | 41 | #:use-module (gnu packages bison) |
f58f767b | 42 | #:use-module (gnu packages curl) |
4fd6bf53 | 43 | #:use-module (gnu packages cyrus-sasl) |
81ce19f4 | 44 | #:use-module (gnu packages databases) |
d983a14f | 45 | #:use-module (gnu packages dejagnu) |
d2938d59 | 46 | #:use-module (gnu packages emacs) |
e8435c4d | 47 | #:use-module (gnu packages enchant) |
e8435c4d | 48 | #:use-module (gnu packages ghostscript) |
d2938d59 | 49 | #:use-module (gnu packages glib) |
e8435c4d | 50 | #:use-module (gnu packages gnome) |
524e1df6 | 51 | #:use-module (gnu packages gnupg) |
d6e941bc | 52 | #:use-module (gnu packages gsasl) |
e8435c4d | 53 | #:use-module (gnu packages gtk) |
1ffa7090 | 54 | #:use-module (gnu packages guile) |
f8ae32a2 | 55 | #:use-module (gnu packages flex) |
e8435c4d | 56 | #:use-module (gnu packages libcanberra) |
d6e941bc | 57 | #:use-module (gnu packages libidn) |
d983a14f AE |
58 | #:use-module (gnu packages linux) |
59 | #:use-module (gnu packages m4) | |
1ffa7090 | 60 | #:use-module (gnu packages ncurses) |
66cc3ab2 | 61 | #:use-module (gnu packages pcre) |
13f04f48 | 62 | #:use-module (gnu packages perl) |
3919a31a | 63 | #:use-module (gnu packages python) |
1ffa7090 | 64 | #:use-module (gnu packages readline) |
d2938d59 | 65 | #:use-module (gnu packages search) |
1ffa7090 | 66 | #:use-module (gnu packages texinfo) |
681a6588 MW |
67 | #:use-module (gnu packages compression) |
68 | #:use-module (gnu packages glib) | |
69 | #:use-module (gnu packages pkg-config) | |
a7e59c50 | 70 | #:use-module (gnu packages flex) |
1bd3f849 DT |
71 | #:use-module (gnu packages gdb) |
72 | #:use-module (gnu packages samba) | |
a7fd7b68 | 73 | #:use-module (gnu packages tls) |
be0c5733 DM |
74 | #:use-module (gnu packages networking) |
75 | #:use-module (gnu packages web) | |
f58f767b | 76 | #:use-module (gnu packages xml) |
e8435c4d | 77 | #:use-module (gnu packages xorg) |
d983a14f | 78 | #:use-module ((guix licenses) |
61c30e9d | 79 | #:select (gpl2 gpl2+ gpl3 gpl3+ lgpl2.1 lgpl2.1+ lgpl3+ |
be0c5733 | 80 | non-copyleft (expat . license:expat) bsd-3)) |
a661e420 LC |
81 | #:use-module (guix packages) |
82 | #:use-module (guix download) | |
f8ae32a2 | 83 | #:use-module (guix git-download) |
29a7c98a | 84 | #:use-module (guix utils) |
681a6588 | 85 | #:use-module (guix build-system gnu) |
ebda902f | 86 | #:use-module (guix build-system perl) |
29a7c98a | 87 | #:use-module (guix build-system python)) |
a661e420 LC |
88 | |
89 | (define-public mailutils | |
90 | (package | |
91 | (name "mailutils") | |
92 | (version "2.2") | |
93 | (source (origin | |
94 | (method url-fetch) | |
95 | (uri (string-append "mirror://gnu/mailutils/mailutils-" | |
96 | version ".tar.bz2")) | |
97 | (sha256 | |
98 | (base32 | |
01eafd38 | 99 | "0szbqa12zqzldqyw97lxqax3ja2adis83i7brdfsxmrfw68iaf65")) |
fc1adab1 | 100 | (patches (search-patches "m4-gets-undeclared.patch")))) |
a661e420 LC |
101 | (build-system gnu-build-system) |
102 | (arguments | |
103 | '(;; TODO: Add `--with-sql'. | |
a661e420 LC |
104 | #:phases (alist-cons-before |
105 | 'build 'pre-build | |
106 | (lambda _ | |
107 | ;; Use Guile 2.0's public API. | |
108 | (substitute* "libmu_scm/mu_message.c" | |
109 | (("scm_i_string_length") | |
110 | "scm_c_string_length")) | |
111 | ||
112 | ;; This file should be generated to use the right | |
113 | ;; value of $(libdir) et al. | |
114 | (delete-file "libmu_scm/mailutils.scm") | |
115 | ||
116 | ;; Use the right file name for `cat'. | |
117 | (substitute* "testsuite/lib/mailutils.exp" | |
118 | (("/bin/cat") | |
119 | (which "cat")))) | |
120 | %standard-phases) | |
121 | #:parallel-tests? #f)) | |
122 | (inputs | |
123 | `(("dejagnu" ,dejagnu) | |
124 | ("m4" ,m4) | |
125 | ("texinfo" ,texinfo) | |
126 | ("guile" ,guile-2.0) | |
127 | ("gnutls" ,gnutls) | |
128 | ("ncurses" ,ncurses) | |
eb8cc645 MW |
129 | |
130 | ;; With Readline 6.3, examples/pop3client.c fails to build because it | |
131 | ;; uses the now undefined 'CPPFunction' type. | |
132 | ("readline" ,readline-6.2) | |
133 | ||
a661e420 | 134 | ("linux-pam" ,linux-pam) |
3246cc91 | 135 | ("libltdl" ,libltdl) |
01eafd38 | 136 | ("gdbm" ,gdbm))) |
a661e420 | 137 | (home-page "http://www.gnu.org/software/mailutils/") |
f50d2669 | 138 | (synopsis "Utilities and library for reading and serving mail") |
a661e420 | 139 | (description |
79c311b8 LC |
140 | "GNU Mailutils is a collection of programs for managing, viewing and |
141 | processing electronic mail. It contains both utilities and server daemons | |
142 | and all operate in a protocol-agnostic way. The underlying libraries are | |
143 | also available, simplifying the addition of mail capabilities to new | |
144 | software.") | |
a661e420 LC |
145 | (license |
146 | ;; Libraries are under LGPLv3+, and programs under GPLv3+. | |
147 | (list gpl3+ lgpl3+)))) | |
d983a14f AE |
148 | |
149 | (define-public fetchmail | |
150 | (package | |
151 | (name "fetchmail") | |
152 | (version "6.3.26") | |
153 | (source (origin | |
154 | (method url-fetch) | |
155 | (uri (string-append "mirror://sourceforge/fetchmail/branch_6.3/fetchmail-" | |
156 | version ".tar.xz")) | |
157 | (sha256 | |
158 | (base32 | |
159 | "0l78ayvi9dm8hd190gl139cs2xqsrf7r9ncilslw20mgvd6cbd3r")))) | |
160 | (build-system gnu-build-system) | |
161 | (inputs | |
162 | `(("openssl" ,openssl))) | |
163 | (arguments | |
164 | `(#:configure-flags (list (string-append "--with-ssl=" | |
165 | (assoc-ref %build-inputs "openssl"))))) | |
07af3e5e | 166 | (home-page "http://www.fetchmail.info/") |
ae2189a9 | 167 | (synopsis "Remote-mail retrieval and forwarding utility") |
d983a14f AE |
168 | (description |
169 | "Fetchmail is a full-featured, robust, well-documented remote-mail | |
170 | retrieval and forwarding utility intended to be used over on-demand | |
171 | TCP/IP links (such as SLIP or PPP connections). It supports every | |
172 | remote-mail protocol now in use on the Internet: POP2, POP3, RPOP, APOP, | |
173 | KPOP, all flavors of IMAP, ETRN, and ODMR. It can even support IPv6 | |
174 | and IPSEC. | |
175 | ||
176 | Fetchmail retrieves mail from remote mail servers and forwards it via SMTP, | |
177 | so it can then be read by normal mail user agents such as mutt, elm | |
178 | or BSD Mail. It allows all your system MTA's filtering, forwarding, and | |
179 | aliasing facilities to work just as they would on normal mail.") | |
180 | (license gpl2+))) ; most files are actually public domain or x11 | |
13f04f48 AE |
181 | |
182 | (define-public mutt | |
183 | (package | |
184 | (name "mutt") | |
0323fe80 | 185 | (version "1.7.0") |
13f04f48 AE |
186 | (source (origin |
187 | (method url-fetch) | |
d82633d0 AE |
188 | (uri (string-append "ftp://ftp.mutt.org/pub/mutt/mutt-" |
189 | version ".tar.gz")) | |
13f04f48 AE |
190 | (sha256 |
191 | (base32 | |
0323fe80 | 192 | "0idkamdiwj9fgqaz1vzkfg78cnmkzp74skv0ibw2xjfq6ds9hghx")) |
fc1adab1 | 193 | (patches (search-patches "mutt-store-references.patch")))) |
13f04f48 AE |
194 | (build-system gnu-build-system) |
195 | (inputs | |
4fd6bf53 | 196 | `(("cyrus-sasl" ,cyrus-sasl) |
b0bb0136 | 197 | ("gdbm" ,gdbm) |
524e1df6 | 198 | ("gpgme" ,gpgme) |
4fd6bf53 | 199 | ("ncurses" ,ncurses) |
13f04f48 AE |
200 | ("openssl" ,openssl) |
201 | ("perl" ,perl))) | |
202 | (arguments | |
203 | `(#:configure-flags '("--enable-smtp" | |
204 | "--enable-imap" | |
205 | "--enable-pop" | |
524e1df6 | 206 | "--enable-gpgme" |
b0bb0136 | 207 | "--enable-hcache" ; for header caching |
0323fe80 | 208 | "--enable-sidebar" |
13f04f48 | 209 | "--with-ssl" |
4fd6bf53 | 210 | "--with-sasl" |
13f04f48 AE |
211 | ;; so that mutt does not check whether the path |
212 | ;; exists, which it does not in the chroot | |
213 | "--with-mailpath=/var/mail"))) | |
214 | (home-page "http://www.mutt.org/") | |
215 | (synopsis "Mail client") | |
216 | (description | |
217 | "Mutt is a small but very powerful text-based mail client for Unix | |
218 | operating systems.") | |
219 | (license gpl2+))) | |
681a6588 MW |
220 | |
221 | (define-public gmime | |
222 | (package | |
223 | (name "gmime") | |
cc955356 | 224 | (version "2.6.20") |
681a6588 MW |
225 | (source (origin |
226 | (method url-fetch) | |
75630043 | 227 | (uri (string-append "mirror://gnome/sources/gmime/" |
29a7c98a | 228 | (version-major+minor version) |
681a6588 MW |
229 | "/gmime-" version ".tar.xz")) |
230 | (sha256 | |
231 | (base32 | |
cc955356 | 232 | "0rfzbgsh8ira5p76kdghygl5i3fvmmx4wbw5rp7f8ajc4vxp18g0")))) |
681a6588 MW |
233 | (build-system gnu-build-system) |
234 | (native-inputs | |
235 | `(("pkg-config" ,pkg-config) | |
236 | ("gnupg" ,gnupg))) ; for tests only | |
237 | (inputs `(("glib" ,glib) | |
238 | ("gpgme" ,gpgme) | |
239 | ("zlib" ,zlib))) | |
240 | (arguments | |
241 | `(#:phases | |
cc955356 EF |
242 | (modify-phases %standard-phases |
243 | (add-after | |
244 | 'unpack 'patch-paths-in-tests | |
245 | (lambda _ | |
246 | ;; The test programs run several programs using 'system' with | |
ae83dcf6 | 247 | ;; hard-coded paths. Here we patch them all. |
248 | ;; We use ISO-8859-1 here because test-iconv.c contains | |
cc955356 EF |
249 | ;; raw byte sequences in several different encodings. |
250 | (with-fluids ((%default-port-encoding #f)) | |
251 | (substitute* (find-files "tests" "\\.c$") | |
252 | (("(system *\\(\")(/[^ ]*)" all pre prog-path) | |
253 | (let* ((base (basename prog-path)) | |
ae83dcf6 | 254 | (prog (which base))) |
cc955356 EF |
255 | (string-append pre |
256 | (or prog (error "not found: " base)))))))))))) | |
681a6588 MW |
257 | (home-page "http://spruce.sourceforge.net/gmime/") |
258 | (synopsis "MIME message parser and creator library") | |
259 | (description | |
260 | "GMime provides a core library and set of utilities which may be used for | |
261 | the creation and parsing of messages using the Multipurpose Internet Mail | |
262 | Extension (MIME).") | |
263 | (license (list lgpl2.1+ gpl2+ gpl3+)))) | |
264 | ||
a7e59c50 LC |
265 | (define-public bogofilter |
266 | (package | |
267 | (name "bogofilter") | |
268 | (version "1.2.4") | |
269 | (source (origin | |
270 | (method url-fetch) | |
271 | (uri (string-append "mirror://sourceforge/bogofilter/bogofilter-" | |
272 | version "/bogofilter-" | |
273 | version ".tar.bz2")) | |
274 | (sha256 | |
275 | (base32 | |
276 | "1d56n2m9inm8gnzm88aa27xl2a7sp7aff3484vmflpqkinjqf0p1")))) | |
277 | (build-system gnu-build-system) | |
278 | (arguments | |
279 | '(#:phases (alist-cons-before | |
280 | 'check 'pre-check | |
281 | (lambda _ | |
282 | (substitute* "src/tests/t.frame" | |
283 | (("GREP=/bin/grep") | |
284 | (string-append "GREP=" (which "grep") "\n")))) | |
285 | %standard-phases))) | |
286 | (native-inputs `(("flex" ,flex))) | |
287 | (inputs `(("bdb" ,bdb))) | |
288 | (home-page "http://bogofilter.sourceforge.net/") | |
289 | (synopsis "Mail classifier based on a Bayesian filter") | |
290 | (description | |
291 | "Bogofilter is a mail filter that classifies mail as spam or ham | |
292 | (non-spam) by a statistical analysis of the message's header and | |
293 | content (body). The program is able to learn from the user's classifications | |
294 | and corrections. It is based on a Bayesian filter.") | |
295 | (license gpl2))) | |
296 | ||
3919a31a EB |
297 | (define-public offlineimap |
298 | (package | |
299 | (name "offlineimap") | |
d23ce1ce | 300 | (version "7.0.5") |
3919a31a EB |
301 | (source (origin |
302 | (method url-fetch) | |
303 | (uri (string-append "https://github.com/OfflineIMAP/offlineimap/" | |
304 | "archive/v" version ".tar.gz")) | |
f586c877 | 305 | (file-name (string-append name "-" version ".tar.gz")) |
3919a31a EB |
306 | (sha256 |
307 | (base32 | |
d23ce1ce | 308 | "05wm7qix4ikx6hi57a1qc3hb5fv1vksbg6dgvmd8871y5l1qqrkn")))) |
3919a31a | 309 | (build-system python-build-system) |
a4ea25d3 EF |
310 | (inputs `(("python2-pysqlite" ,python2-pysqlite) |
311 | ("python2-six" ,python2-six))) | |
3919a31a EB |
312 | (arguments |
313 | ;; The setup.py script expects python-2. | |
314 | `(#:python ,python-2 | |
315 | ;; Tests require a modifiable IMAP account. | |
42aa73b3 EF |
316 | #:tests? #f |
317 | #:phases | |
318 | (modify-phases %standard-phases | |
319 | (add-after 'install 'wrap-binary | |
320 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
321 | (let* ((out (assoc-ref outputs "out")) | |
322 | (bin (string-append out "/bin/offlineimap"))) | |
323 | (wrap-program bin | |
324 | `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))) | |
325 | #t)))))) | |
3919a31a | 326 | (home-page "http://www.offlineimap.org") |
31e98ca6 | 327 | (synopsis "Sync emails between two repositories") |
3919a31a EB |
328 | (description |
329 | "OfflineImap synchronizes emails between two repositories, so that you | |
330 | can read the same mailbox from multiple computers. It supports IMAP as REMOTE | |
331 | repository and Maildir/IMAP as LOCAL repository.") | |
7886e23b | 332 | (license gpl2+))) |
3919a31a | 333 | |
d2938d59 EB |
334 | (define-public mu |
335 | (package | |
336 | (name "mu") | |
47c96a57 | 337 | (version "0.9.16") |
d2938d59 EB |
338 | (source (origin |
339 | (method url-fetch) | |
922eaede | 340 | (uri (string-append "https://github.com/djcb/mu/archive/v" |
d2938d59 | 341 | version ".tar.gz")) |
922eaede | 342 | (file-name (string-append "mu-" version ".tar.gz")) |
d2938d59 EB |
343 | (sha256 |
344 | (base32 | |
47c96a57 | 345 | "0p7hqri1r1x6750x138cc29mh81kdav2dcim26y58s8an206h25g")))) |
d2938d59 EB |
346 | (build-system gnu-build-system) |
347 | (native-inputs | |
348 | `(("pkg-config" ,pkg-config) | |
9fd571a2 | 349 | ("glib" ,glib "bin") ; for gtester |
922eaede PW |
350 | ("autoconf" ,autoconf) |
351 | ("automake" ,automake) | |
b8fc3622 | 352 | ("emacs" ,emacs-minimal) |
922eaede | 353 | ("libtool" ,libtool) |
d2938d59 EB |
354 | ("texinfo" ,texinfo))) |
355 | ;; TODO: Add webkit and gtk to build the mug GUI. | |
356 | (inputs | |
357 | `(("xapian" ,xapian) | |
d2938d59 EB |
358 | ("guile" ,guile-2.0) |
359 | ("glib" ,glib) | |
360 | ("gmime" ,gmime) | |
361 | ("tzdata" ,tzdata))) ;for mu/test/test-mu-query.c | |
362 | (arguments | |
704f2196 AK |
363 | `(#:modules ((guix build gnu-build-system) |
364 | (guix build utils) | |
365 | (guix build emacs-utils)) | |
366 | #:imported-modules (,@%gnu-build-system-modules | |
367 | (guix build emacs-utils)) | |
368 | #:phases | |
99404fff | 369 | (modify-phases %standard-phases |
789bda83 AK |
370 | (add-after 'unpack 'patch-configure.ac |
371 | ;; By default, elisp code goes to "share/emacs/site-lisp/mu4e", | |
372 | ;; so our Emacs package can't find it. Setting "--with-lispdir" | |
373 | ;; configure flag doesn't help because "mu4e" will be added to | |
374 | ;; the lispdir anyway, so we have to modify "configure.ac". | |
375 | (lambda _ | |
376 | (substitute* "configure.ac" | |
377 | (("^ +lispdir=.*") "")) | |
378 | #t)) | |
379 | (add-after 'patch-configure.ac 'autoreconf | |
99404fff AK |
380 | (lambda _ |
381 | (zero? (system* "autoreconf" "-vi")))) | |
382 | (add-before 'check 'check-tz-setup | |
383 | (lambda* (#:key inputs #:allow-other-keys) | |
384 | ;; For mu/test/test-mu-query.c | |
385 | (setenv "TZDIR" | |
386 | (string-append (assoc-ref inputs "tzdata") | |
387 | "/share/zoneinfo")) | |
704f2196 AK |
388 | #t)) |
389 | (add-after 'install 'install-emacs-autoloads | |
390 | (lambda* (#:key outputs #:allow-other-keys) | |
391 | (emacs-generate-autoloads | |
392 | "mu4e" | |
393 | (string-append (assoc-ref outputs "out") | |
394 | "/share/emacs/site-lisp")) | |
99404fff | 395 | #t))))) |
d2938d59 EB |
396 | (home-page "http://www.djcbsoftware.nl/code/mu/") |
397 | (synopsis "Quickly find emails") | |
398 | (description | |
399 | "Mu is a tool for dealing with e-mail messages stored in the | |
400 | Maildir-format. Mu's purpose in life is to help you to quickly find the | |
401 | messages you need; in addition, it allows you to view messages, extract | |
402 | attachments, create new maildirs, and so on.") | |
403 | (license gpl3+))) | |
404 | ||
a2cb16b0 TS |
405 | (define-public alot |
406 | (package | |
407 | (name "alot") | |
408 | (version "0.3.7") | |
409 | (source (origin | |
410 | (method url-fetch) | |
411 | ; v0.3.7 not on PyPi yet, so use github instead | |
412 | (uri (string-append "https://github.com/pazz/alot/archive/" | |
413 | version ".tar.gz")) | |
414 | (file-name (string-append "alot-" version ".tar.gz")) | |
415 | (sha256 | |
416 | (base32 | |
417 | "09md9llg38r6xby8l0y0zf8nhlh91cr4xs0r15b294hhp8hl2bgx")))) | |
418 | (build-system python-build-system) | |
419 | (arguments | |
420 | `(#:tests? #f ; no tests | |
421 | ; python 3 is unsupported, more info: | |
422 | ; https://github.com/pazz/alot/blob/0.3.7/docs/source/faq.rst | |
423 | #:python ,python-2)) | |
424 | (inputs | |
425 | `(("python2-magic" ,python2-magic) | |
426 | ("python2-configobj" ,python2-configobj) | |
427 | ("python2-twisted" ,python2-twisted) | |
428 | ("python2-urwid" ,python2-urwid) | |
429 | ("python2-urwidtrees" ,python2-urwidtrees) | |
430 | ("python2-pygpgme" ,python2-pygpgme) | |
431 | ("python2-notmuch" ,python2-notmuch))) | |
432 | (home-page "https://github.com/pazz/alot") | |
433 | (synopsis "Commandline MUA using notmuch") | |
434 | (description | |
435 | "Alot is an experimental terminal mail user agent (MUA) based on | |
436 | @code{notmuch} mail. It is written in Python using the @code{urwid} toolkit.") | |
437 | (license gpl3+))) | |
438 | ||
1bd3f849 DT |
439 | (define-public notmuch |
440 | (package | |
441 | (name "notmuch") | |
25a78dbc | 442 | (version "0.22.1") |
1bd3f849 DT |
443 | (source (origin |
444 | (method url-fetch) | |
866fade9 | 445 | (uri (string-append "https://notmuchmail.org/releases/notmuch-" |
1bd3f849 DT |
446 | version ".tar.gz")) |
447 | (sha256 | |
448 | (base32 | |
25a78dbc | 449 | "0jwpda3q023dn3sp41n8648951i7iagfv8zzpriv7hpkjivlafg7")))) |
1bd3f849 DT |
450 | (build-system gnu-build-system) |
451 | (arguments | |
25a78dbc TS |
452 | '(#:tests? #f ; FIXME: 694 tests; 170 fail and 100 are skipped |
453 | ; with perl input: 50 fail and 100 are skipped | |
eb537f57 DT |
454 | #:phases (modify-phases %standard-phases |
455 | (replace 'configure | |
456 | (lambda* (#:key outputs #:allow-other-keys) | |
457 | (setenv "CC" "gcc") | |
458 | (setenv "CONFIG_SHELL" (which "sh")) | |
ee886454 | 459 | |
eb537f57 DT |
460 | (let ((out (assoc-ref outputs "out"))) |
461 | (zero? (system* "./configure" | |
462 | (string-append "--prefix=" out))))))))) | |
1bd3f849 | 463 | (native-inputs |
2c5b91dc AK |
464 | `(("bash-completion" ,bash-completion) |
465 | ("emacs" ,emacs-minimal) | |
466 | ("pkg-config" ,pkg-config) | |
ee886454 | 467 | ("python" ,python-2) |
eb537f57 | 468 | ("python-docutils" ,python2-docutils) |
2c5b91dc | 469 | ("python-sphinx" ,python2-sphinx))) |
1bd3f849 | 470 | (inputs |
2c5b91dc | 471 | `(("glib" ,glib) |
1bd3f849 DT |
472 | ("gmime" ,gmime) |
473 | ("talloc" ,talloc) | |
474 | ("xapian" ,xapian) | |
475 | ("zlib" ,zlib))) | |
476 | (home-page "http://notmuchmail.org/") | |
477 | (synopsis "Thread-based email index, search, and tagging") | |
478 | (description | |
479 | "Notmuch is a command-line based program for indexing, searching, read- | |
480 | ing, and tagging large collections of email messages.") | |
481 | (license gpl3+))) | |
482 | ||
8a75c589 AM |
483 | (define-public notmuch-addrlookup-c |
484 | (package | |
485 | (name "notmuch-addrlookup-c") | |
486 | (version "7") | |
487 | (source (origin | |
488 | (method url-fetch) | |
489 | (uri (string-append | |
490 | "https://github.com/aperezdc/" name "/archive/v" | |
491 | version ".tar.gz")) | |
492 | (file-name (string-append name "-" version ".tar.gz")) | |
493 | (sha256 | |
494 | (base32 | |
495 | "0rslg2ifgyhl6asv3yr1f62m9xjfcinv7i6qb07h2k217jqlmrri")))) | |
496 | (build-system gnu-build-system) | |
497 | (arguments | |
498 | '(#:tests? #f ; no tests | |
499 | #:make-flags (list "CC=gcc" | |
500 | (string-append "PREFIX=" | |
501 | (assoc-ref %outputs "out"))) | |
502 | #:phases (modify-phases %standard-phases | |
503 | (delete 'configure) | |
504 | ;; Remove vim code completion config, it's not needed to | |
505 | ;; build (or be patched). | |
506 | (add-before 'patch-source-shebangs 'delete-ycm-file | |
507 | (lambda _ (delete-file ".ycm_extra_conf.py"))) | |
508 | (replace 'install | |
509 | (lambda* (#:key outputs #:allow-other-keys) | |
510 | (let ((bin (string-append | |
511 | (assoc-ref outputs "out") "/bin"))) | |
512 | (install-file "notmuch-addrlookup" bin))))))) | |
513 | (native-inputs | |
514 | `(("pkg-config" ,pkg-config))) | |
515 | (inputs | |
516 | `(("glib" ,glib) | |
517 | ("notmuch" ,notmuch))) | |
518 | (home-page "https://github.com/aperezdc/notmuch-addrlookup-c") | |
519 | (synopsis "Address lookup tool for Notmuch") | |
520 | (description "This is an address lookup tool using a Notmuch database, | |
521 | useful for email address completion.") | |
522 | (license license:expat))) | |
523 | ||
4b6909bc TS |
524 | (define-public python-notmuch |
525 | (package | |
526 | (name "python-notmuch") | |
527 | (version "0.22.1") | |
528 | ;; Notmuch python bindings are now unavailable on pypi. The | |
529 | ;; bindings are distributed via the notmuch release tarball. | |
530 | (source (package-source notmuch)) | |
531 | (build-system python-build-system) | |
532 | (inputs `(("notmuch" ,notmuch))) | |
533 | (arguments | |
534 | `(#:tests? #f ; no "test" target | |
535 | #:phases | |
536 | (modify-phases %standard-phases | |
537 | ;; This python package lives in a subdirectory of the notmuch source | |
538 | ;; tree, so chdir into it before building. | |
539 | (add-after 'unpack 'enter-python-dir | |
540 | (lambda _ (chdir "bindings/python") #t)) | |
541 | ;; Make sure the correct notmuch shared library gets loaded. | |
542 | (add-before 'build 'set-libnotmuch-file-name | |
543 | (lambda* (#:key inputs #:allow-other-keys) | |
544 | (let ((notmuch (assoc-ref inputs "notmuch"))) | |
545 | (substitute* "notmuch/globals.py" | |
546 | (("libnotmuch\\.so\\.") | |
547 | (string-append notmuch "/lib/libnotmuch.so."))) | |
548 | #t)))))) | |
549 | (home-page "http://notmuchmail.org/") | |
550 | (synopsis "Python bindings of the Notmuch mail indexing library") | |
551 | (description | |
552 | "This package provides Python bindings to use the Notmuch mail indexing | |
553 | and search library.") | |
554 | (license gpl3+))) | |
555 | ||
1c74da21 | 556 | (define-public python2-notmuch |
caa6fc89 | 557 | (package-with-python2 python-notmuch)) |
1c74da21 | 558 | |
98e9e22f SB |
559 | (define-public getmail |
560 | (package | |
561 | (name "getmail") | |
1a5fd02a | 562 | (version "4.49.0") |
98e9e22f SB |
563 | (source |
564 | (origin | |
565 | (method url-fetch) | |
566 | (uri (string-append "http://pyropus.ca/software/getmail/old-versions/" | |
567 | name "-" version ".tar.gz")) | |
568 | (sha256 | |
569 | (base32 | |
1a5fd02a | 570 | "1m0yzxd05fklwbmjj1n2q4sx397c1j5qi9a0r5fv3h8pplz4lv0w")))) |
98e9e22f SB |
571 | (build-system python-build-system) |
572 | (arguments | |
573 | `(#:tests? #f ; no tests | |
574 | #:python ,python-2)) | |
575 | (home-page "http://pyropus.ca/software/getmail/") | |
576 | (synopsis "Mail retriever") | |
577 | (description | |
578 | "A flexible, extensible mail retrieval system with support for | |
579 | POP3, IMAP4, SSL variants of both, maildirs, mboxrd files, external MDAs, | |
580 | arbitrary message filtering, single-user and domain-mailboxes, and many other | |
581 | useful features.") | |
582 | ||
583 | ;; License is specified in file '__init__.py'. | |
584 | (license gpl2))) | |
585 | ||
f58f767b JL |
586 | (define-public libetpan |
587 | (package | |
588 | (name "libetpan") | |
c1748912 | 589 | (version "1.7.2") |
f58f767b JL |
590 | (source (origin |
591 | (method url-fetch) | |
592 | (uri (string-append "https://github.com/dinhviethoa/" name | |
593 | "/archive/" version ".tar.gz")) | |
f586c877 | 594 | (file-name (string-append name "-" version ".tar.gz")) |
f58f767b | 595 | (sha256 |
c1748912 | 596 | (base32 "081ixgj3skglq9i7v0jb835lmfx21zi4i5b7997igwr0lj174y9j")))) |
f58f767b JL |
597 | (build-system gnu-build-system) |
598 | (native-inputs `(("autoconf" ,(autoconf-wrapper)) | |
599 | ("automake" ,automake) | |
3246cc91 | 600 | ("libtool" ,libtool) |
f58f767b JL |
601 | ("pkg-config" ,pkg-config))) |
602 | (propagated-inputs | |
603 | ;; 'libetpan-config --libs' returns '-lssl -lcrypto -lsasl2', so these | |
604 | ;; libraries need to be propagated. | |
605 | `(("cyrus-sasl" ,cyrus-sasl) | |
606 | ("openssl" ,openssl))) | |
607 | (inputs | |
608 | `(("curl" ,curl) | |
c1748912 EF |
609 | ("expat" ,expat) |
610 | ("zlib" ,zlib))) | |
f58f767b | 611 | (arguments |
602460ea EF |
612 | '(#:phases |
613 | (modify-phases %standard-phases | |
614 | (add-after 'unpack 'autogen | |
615 | (lambda _ | |
616 | (setenv "NOCONFIGURE" "true") | |
617 | (zero? (system* "sh" "autogen.sh"))))) | |
f58f767b JL |
618 | #:configure-flags |
619 | '("--disable-static" "--disable-db"))) | |
620 | (home-page "http://www.etpan.org/libetpan.html") | |
621 | (synopsis "Portable middleware for email access") | |
622 | (description | |
623 | "The purpose of this mail library is to provide a portable, efficient | |
624 | framework for different kinds of mail access: IMAP, SMTP, POP and NNTP. It | |
625 | provides an API for C language. It's the low-level API used by MailCore and | |
626 | MailCore 2.") | |
166191b3 | 627 | (license (non-copyleft "file://COPYING")))) |
f58f767b | 628 | |
e8435c4d JL |
629 | (define-public claws-mail |
630 | (package | |
631 | (name "claws-mail") | |
a9a023ad | 632 | (version "3.14.0") |
e8435c4d JL |
633 | (source (origin |
634 | (method url-fetch) | |
635 | (uri (string-append | |
762b1971 | 636 | "http://www.claws-mail.org/releases/" name "-" version |
6ea4b094 | 637 | ".tar.xz")) |
e8435c4d | 638 | (sha256 |
ec92806a | 639 | (base32 |
a9a023ad | 640 | "0nfchgga3ir91s8rky0a0vnz8cgj2f6h716wh3cmb466a01xfss6")))) |
e8435c4d JL |
641 | (build-system gnu-build-system) |
642 | (native-inputs `(("pkg-config" ,pkg-config))) | |
643 | (inputs `(("bogofilter" ,bogofilter) | |
644 | ("curl" ,curl) | |
645 | ("dbus-glib" ,dbus-glib) | |
e8435c4d JL |
646 | ("enchant" ,enchant) |
647 | ("expat" ,expat) | |
648 | ("ghostscript" ,ghostscript) | |
649 | ("hicolor-icon-theme" ,hicolor-icon-theme) | |
650 | ("gnupg" ,gnupg) | |
651 | ("gnutls" ,gnutls) | |
652 | ("gpgme" ,gpgme) | |
653 | ("gtk" ,gtk+-2) | |
654 | ("libarchive" ,libarchive) | |
655 | ("libcanberra" ,libcanberra) | |
656 | ("libetpan" ,libetpan) | |
657 | ("libnotify" ,libnotify) | |
658 | ("libsm" ,libsm) | |
659 | ("libxml2" ,libxml2) | |
660 | ("perl" ,perl) | |
f6292baf EB |
661 | ("python-2" ,python-2) |
662 | ("mime-info" ,shared-mime-info))) | |
e8435c4d JL |
663 | (arguments |
664 | '(#:configure-flags | |
f6292baf EB |
665 | '("--enable-gnutls" "--enable-pgpmime-plugin" "--enable-enchant") |
666 | #:phases (modify-phases %standard-phases | |
667 | (add-before 'build 'patch-mime | |
668 | (lambda* (#:key inputs #:allow-other-keys) | |
669 | (substitute* "src/procmime.c" | |
670 | (("/usr/share/mime/globs") | |
671 | (string-append (assoc-ref inputs "mime-info") | |
672 | "/share/mime/globs")))))))) | |
e8435c4d JL |
673 | (synopsis "GTK-based Email client") |
674 | (description | |
675 | "Claws-Mail is an email client (and news reader) based on GTK+. The | |
676 | appearance and interface are designed to be familiar to new users coming from | |
677 | other popular email clients, as well as experienced users. Almost all commands | |
678 | are accessible with the keyboard. Plus, Claws-Mail is extensible via addons | |
679 | which can add many functionalities to the base client.") | |
680 | (home-page "http://www.claws-mail.org/") | |
681 | (license gpl3+))) ; most files are actually public domain or x11 | |
682 | ||
d6e941bc TČ |
683 | (define-public msmtp |
684 | (package | |
685 | (name "msmtp") | |
d23d1ddf | 686 | (version "1.6.5") |
d6e941bc TČ |
687 | (source |
688 | (origin | |
689 | (method url-fetch) | |
d23d1ddf LF |
690 | (uri (string-append "mirror://sourceforge/msmtp/msmtp/" version |
691 | "/msmtp-" version ".tar.xz")) | |
692 | (sha256 | |
693 | (base32 | |
694 | "01jh9ba49bih8zsh40myw6qq1ll210q1vw0jg865vrn7jc3dd83n")))) | |
d6e941bc TČ |
695 | (build-system gnu-build-system) |
696 | (inputs | |
697 | `(("libidn" ,libidn) | |
72d8b5ba | 698 | ("libsecret" ,libsecret) |
d6e941bc TČ |
699 | ("gnutls" ,gnutls) |
700 | ("zlib" ,zlib) | |
701 | ("gsasl" ,gsasl))) | |
702 | (native-inputs | |
703 | `(("pkg-config" ,pkg-config))) | |
704 | (home-page "http://msmtp.sourceforge.net/") | |
705 | (arguments | |
706 | `(#:configure-flags (list "--with-libgsasl" | |
707 | "--with-libidn" | |
823e2ed4 LF |
708 | "--with-tls=gnutls") |
709 | #:phases | |
710 | (modify-phases %standard-phases | |
711 | (add-after 'install 'install-msmtpq | |
712 | (lambda* (#:key outputs #:allow-other-keys) | |
713 | (let* ((out (assoc-ref outputs "out")) | |
714 | (bin (string-append out "/bin")) | |
715 | (doc (string-append out "/share/doc/msmtp")) | |
716 | (msmtpq (string-append "scripts/msmtpq"))) | |
717 | (install-file (string-append msmtpq "/msmtpq") bin) | |
718 | (install-file (string-append msmtpq "/msmtp-queue") bin) | |
719 | (install-file (string-append msmtpq "/README.msmtpq") doc) | |
720 | #t)))))) | |
d6e941bc TČ |
721 | (synopsis |
722 | "Simple and easy to use SMTP client with decent sendmail compatibility") | |
723 | (description | |
724 | "msmtp is an SMTP client. In the default mode, it transmits a mail to | |
725 | an SMTP server (for example at a free mail provider) which takes care of further | |
726 | delivery.") | |
727 | (license gpl3+))) | |
728 | ||
66cc3ab2 TUBK |
729 | (define-public exim |
730 | (package | |
731 | (name "exim") | |
cf316a59 | 732 | (version "4.87") |
66cc3ab2 TUBK |
733 | (source |
734 | (origin | |
735 | (method url-fetch) | |
fc6fdc05 LF |
736 | (uri (list (string-append "ftp://ftp.exim.org/pub/exim/exim4/exim-" |
737 | version ".tar.bz2") | |
738 | (string-append "ftp://ftp.exim.org/pub/exim/exim4/old/exim-" | |
739 | version ".tar.bz2"))) | |
66cc3ab2 | 740 | (sha256 |
513f8ab4 | 741 | (base32 |
cf316a59 | 742 | "1jbxn13shq90kpn0s73qpjnx5xm8jrpwhcwwgqw5s6sdzw6iwsbl")))) |
66cc3ab2 TUBK |
743 | (build-system gnu-build-system) |
744 | (inputs | |
745 | `(("bdb" ,bdb) | |
746 | ("gnutls" ,gnutls) | |
747 | ("gzip" ,gzip) | |
748 | ("bzip2" ,bzip2) | |
749 | ("xz" ,xz) | |
66cc3ab2 TUBK |
750 | ("perl" ,perl) |
751 | ("libxt" ,libxt) | |
752 | ("libxaw" ,libxaw))) | |
753 | (native-inputs | |
42773138 EF |
754 | `(("pcre" ,pcre "bin") |
755 | ("perl" ,perl))) | |
66cc3ab2 TUBK |
756 | (arguments |
757 | '(#:phases | |
758 | (alist-replace | |
759 | 'configure | |
760 | ;; We'd use #:make-flags but the top-level Makefile calls others | |
761 | ;; recursively, so just set all variables this way. | |
762 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
763 | (substitute* '("Makefile" "OS/Makefile-Default") | |
764 | (("(RM_COMMAND=).*" all var) | |
765 | (string-append var "rm\n"))) | |
766 | (copy-file "src/EDITME" "Local/Makefile") | |
767 | (copy-file "exim_monitor/EDITME" "Local/eximon.conf") | |
768 | (let ((out (assoc-ref outputs "out")) | |
769 | (gzip (assoc-ref inputs "gzip")) | |
770 | (bzip2 (assoc-ref inputs "bzip2")) | |
771 | (xz (assoc-ref inputs "xz"))) | |
772 | (substitute* '("Local/Makefile") | |
773 | (("(BIN_DIRECTORY=).*" all var) | |
774 | (string-append var out "/bin\n")) | |
775 | (("(CONFIGURE_FILE=).*" all var) | |
776 | (string-append var out "/etc/exim.conf\n")) | |
777 | (("(EXIM_USER=).*" all var) | |
778 | (string-append var "nobody\n")) | |
779 | (("(FIXED_NEVER_USERS=).*" all var) | |
780 | (string-append var "\n")) ;XXX no root in build environment | |
781 | (("(COMPRESS_COMMAND=).*" all var) | |
782 | (string-append var gzip "/bin/gzip\n")) | |
783 | (("(ZCAT_COMMAND=).*" all var) | |
784 | (string-append var gzip "/bin/zcat\n"))) | |
785 | ;; This file has hardcoded names for tools despite the zcat | |
786 | ;; configuration above. | |
787 | (substitute* '("src/exigrep.src") | |
788 | (("'zcat'") (string-append "'" gzip "/bin/zcat'")) | |
789 | (("'bzcat'") (string-append "'" bzip2 "/bin/bzcat'")) | |
790 | (("'xzcat'") (string-append "'" xz "/bin/xzcat'")) | |
791 | (("'lzma'") (string-append "'" xz "/bin/lzma'"))))) | |
792 | (alist-cons-before | |
793 | 'build 'fix-sh-paths | |
794 | (lambda* (#:key inputs #:allow-other-keys) | |
795 | (substitute* '("scripts/lookups-Makefile" "scripts/reversion") | |
796 | (("SHELL=/bin/sh") "SHELL=sh")) | |
797 | (substitute* '("scripts/Configure-config.h") | |
798 | (("\\| /bin/sh") "| sh")) | |
799 | (let ((bash (assoc-ref inputs "bash"))) | |
800 | (substitute* '("scripts/Configure-eximon") | |
801 | (("#!/bin/sh") (string-append "#!" bash "/bin/sh"))))) | |
802 | %standard-phases)) | |
803 | #:make-flags '("INSTALL_ARG=-no_chown") | |
804 | ;; No 'check' target. | |
805 | #:tests? #f)) | |
806 | (home-page "http://www.exim.org/") | |
807 | (synopsis | |
808 | "Message Transfer Agent (MTA) developed at the University of Cambridge") | |
809 | (description | |
810 | "Exim is a message transfer agent (MTA) developed at the University of | |
811 | Cambridge for use on Unix systems connected to the Internet. In style it is | |
812 | similar to Smail 3, but its facilities are more general. There is a great | |
813 | deal of flexibility in the way mail can be routed, and there are extensive | |
814 | facilities for checking incoming mail.") | |
815 | (license gpl2+))) | |
816 | ||
7d2b784b MW |
817 | (define-public dovecot |
818 | (package | |
819 | (name "dovecot") | |
873966e3 | 820 | (version "2.2.25") |
7d2b784b MW |
821 | (source |
822 | (origin | |
823 | (method url-fetch) | |
824 | (uri (string-append "http://www.dovecot.org/releases/" | |
825 | (version-major+minor version) "/" | |
826 | name "-" version ".tar.gz")) | |
827 | (sha256 (base32 | |
873966e3 | 828 | "0rwn5wc5b8j9fzqcjggdgpzmb77myrf4ra294z1gg5v3hhng7nfq")))) |
7d2b784b MW |
829 | (build-system gnu-build-system) |
830 | (native-inputs | |
831 | `(("pkg-config" ,pkg-config))) | |
832 | (inputs | |
833 | `(("openssl" ,openssl) | |
834 | ("zlib" ,zlib) | |
835 | ("bzip2" ,bzip2) | |
fd5c70f8 AW |
836 | ("sqlite" ,sqlite) |
837 | ("linux-pam" ,linux-pam))) | |
7d2b784b MW |
838 | (arguments |
839 | `(#:configure-flags '("--sysconfdir=/etc" | |
840 | "--localstatedir=/var") | |
841 | #:phases (modify-phases %standard-phases | |
842 | (add-before | |
843 | 'configure 'pre-configure | |
844 | (lambda _ | |
845 | ;; Simple hack to avoid installing in /etc | |
846 | (substitute* '("doc/Makefile.in" | |
847 | "doc/example-config/Makefile.in") | |
848 | (("pkgsysconfdir = .*") | |
849 | "pkgsysconfdir = /tmp/etc")) | |
850 | #t))))) | |
851 | (home-page "http://www.dovecot.org") | |
852 | (synopsis "Secure POP3/IMAP server") | |
853 | (description | |
854 | "Dovecot is a mail server whose major goals are security and reliability. | |
855 | It supports mbox/Maildir and its own dbox/mdbox formats.") | |
856 | ;; Most source files are covered by either lgpl2.1 or expat. The SHA code | |
857 | ;; is covered by a variant of BSD-3, and UnicodeData.txt is covered by the | |
858 | ;; Unicode, Inc. License Agreement for Data Files and Software. | |
859 | (license (list lgpl2.1 license:expat (non-copyleft "file://COPYING"))))) | |
860 | ||
81ce19f4 TČ |
861 | (define-public isync |
862 | (package | |
863 | (name "isync") | |
2c3d13fe | 864 | (version "1.2.1") |
81ce19f4 TČ |
865 | (source |
866 | (origin | |
867 | (method url-fetch) | |
868 | (uri (string-append "mirror://sourceforge/isync/isync/" | |
869 | version "/isync-" version ".tar.gz")) | |
870 | (sha256 (base32 | |
2c3d13fe | 871 | "1bij6nm06ghkg98n2pdyacam2fyg5y8f7ajw0d5653m0r4ldw5p7")))) |
81ce19f4 TČ |
872 | (build-system gnu-build-system) |
873 | (inputs | |
874 | `(("bdb" ,bdb) | |
875 | ("openssl" ,openssl))) | |
876 | (home-page "http://isync.sourceforge.net/") | |
877 | (synopsis "Mailbox synchronization program") | |
878 | (description | |
879 | "isync/mbsync is command line tool for two-way synchronization of | |
880 | mailboxes. Currently Maildir and IMAP are supported types.") | |
881 | (license gpl2+))) | |
882 | ||
26b8de19 EB |
883 | (define-public perl-email-abstract |
884 | (package | |
885 | (name "perl-email-abstract") | |
886 | (version "3.008") | |
887 | (source | |
888 | (origin | |
889 | (method url-fetch) | |
890 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
891 | "Email-Abstract-" version ".tar.gz")) | |
892 | (sha256 | |
893 | (base32 | |
894 | "0h42rhvp769wb421cpbbg6v6xjp8iv86mvz70pqgfgf4nsn6jwgw")))) | |
895 | (build-system perl-build-system) | |
896 | (propagated-inputs | |
897 | `(("perl-email-simple" ,perl-email-simple) | |
a2190ccc | 898 | ("perl-module-pluggable" ,perl-module-pluggable) |
26b8de19 EB |
899 | ("perl-mro-compat" ,perl-mro-compat))) |
900 | (home-page "http://search.cpan.org/dist/Email-Abstract") | |
901 | (synopsis "Interface to mail representations") | |
902 | (description "Email::Abstract provides module writers with the ability to | |
903 | write simple, representation-independent mail handling code.") | |
904 | (license (package-license perl)))) | |
905 | ||
ebda902f EB |
906 | (define-public perl-email-address |
907 | (package | |
908 | (name "perl-email-address") | |
909 | (version "1.907") | |
910 | (source | |
911 | (origin | |
912 | (method url-fetch) | |
913 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
914 | "Email-Address-" version ".tar.gz")) | |
915 | (sha256 | |
916 | (base32 | |
917 | "1ai4r149pzjv9dc2vddir8zylj0z1pii93rm4g591lx7avim71hx")))) | |
918 | (build-system perl-build-system) | |
919 | (home-page "http://search.cpan.org/dist/Email-Address") | |
920 | (synopsis "Email address parsing and creation") | |
921 | (description "Email::Address implements a regex-based RFC 2822 parser that | |
922 | locates email addresses in strings and returns a list of Email::Address | |
923 | objects found. Alternatively you may construct objects manually.") | |
924 | (license (package-license perl)))) | |
925 | ||
aa86a3be EB |
926 | (define-public perl-email-date-format |
927 | (package | |
928 | (name "perl-email-date-format") | |
929 | (version "1.005") | |
930 | (source | |
931 | (origin | |
932 | (method url-fetch) | |
933 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
934 | "Email-Date-Format-" version ".tar.gz")) | |
935 | (sha256 | |
936 | (base32 | |
937 | "012ivfwpnbl3wr50f9c6f4azhdlxnm31pdn72528g79v61z6372p")))) | |
938 | (build-system perl-build-system) | |
939 | (home-page "http://search.cpan.org/dist/Email-Date-Format") | |
940 | (synopsis "Produce RFC 2822 date strings") | |
941 | (description "Email::Date::Format provides a means for generating an RFC | |
942 | 2822 compliant datetime string.") | |
943 | (license (package-license perl)))) | |
944 | ||
08bf7095 EB |
945 | (define-public perl-email-messageid |
946 | (package | |
947 | (name "perl-email-messageid") | |
948 | (version "1.405") | |
949 | (source | |
950 | (origin | |
951 | (method url-fetch) | |
952 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
953 | "Email-MessageID-" version ".tar.gz")) | |
954 | (sha256 | |
955 | (base32 | |
956 | "09216naz21x99ff33wdm3j3zq1zhdbxhrsmx8bvavjrw3gjsvrq3")))) | |
957 | (build-system perl-build-system) | |
958 | (home-page "http://search.cpan.org/dist/Email-MessageID") | |
959 | (synopsis "Generate world unique message-ids") | |
960 | (description "Email::MessageID generates recommended message-ids to | |
961 | identify a message uniquely.") | |
962 | (license (package-license perl)))) | |
963 | ||
0a4c49f6 EB |
964 | (define-public perl-email-mime |
965 | (package | |
966 | (name "perl-email-mime") | |
967 | (version "1.929") | |
968 | (source | |
969 | (origin | |
970 | (method url-fetch) | |
971 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
972 | "Email-MIME-" version ".tar.gz")) | |
973 | (sha256 | |
974 | (base32 | |
975 | "1sf7dldg4dvicyw6dl1vx6s1gjq3fcppi0103ikl0vi6v5xjdjdh")))) | |
976 | (build-system perl-build-system) | |
977 | (propagated-inputs | |
978 | `(("perl-email-address" ,perl-email-address) | |
979 | ("perl-email-messageid" ,perl-email-messageid) | |
980 | ("perl-email-mime-contenttype" ,perl-email-mime-contenttype) | |
981 | ("perl-email-mime-encodings" ,perl-email-mime-encodings) | |
982 | ("perl-email-simple" ,perl-email-simple) | |
983 | ("perl-mime-types" ,perl-mime-types))) | |
984 | (home-page "http://search.cpan.org/dist/Email-MIME") | |
985 | (synopsis "MIME message handling") | |
986 | (description "Email::MIME is an extension of the Email::Simple module, to | |
987 | handle MIME encoded messages. It takes a message as a string, splits it up | |
988 | into its constituent parts, and allows you access to various parts of the | |
989 | message. Headers are decoded from MIME encoding.") | |
990 | (license (package-license perl)))) | |
991 | ||
55025bb5 EB |
992 | (define-public perl-email-mime-contenttype |
993 | (package | |
994 | (name "perl-email-mime-contenttype") | |
995 | (version "1.017") | |
996 | (source | |
997 | (origin | |
998 | (method url-fetch) | |
999 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1000 | "Email-MIME-ContentType-" version ".tar.gz")) | |
1001 | (sha256 | |
1002 | (base32 | |
1003 | "1cl1l97lg690dh7i704hqi7yhxalq1chy7ylld5yc5v38jqa6gcn")))) | |
1004 | (build-system perl-build-system) | |
1005 | (native-inputs | |
1006 | `(("perl-capture-tiny" ,perl-capture-tiny))) | |
1007 | (home-page "http://search.cpan.org/dist/Email-MIME-ContentType") | |
1008 | (synopsis "Parse MIME Content-Type headers") | |
1009 | (description "Email::MIME::ContentType parses a MIME Content-Type | |
1010 | header.") | |
1011 | (license (package-license perl)))) | |
1012 | ||
02e29936 EB |
1013 | (define-public perl-email-mime-encodings |
1014 | (package | |
1015 | (name "perl-email-mime-encodings") | |
1016 | (version "1.315") | |
1017 | (source | |
1018 | (origin | |
1019 | (method url-fetch) | |
1020 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1021 | "Email-MIME-Encodings-" version ".tar.gz")) | |
1022 | (sha256 | |
1023 | (base32 | |
1024 | "0p5b8g9gh35m8fqrpx60g4bp98rvwd02n5b0vm9wh7mk0xah8wac")))) | |
1025 | (build-system perl-build-system) | |
1026 | (native-inputs | |
1027 | `(("perl-capture-tiny" ,perl-capture-tiny))) | |
1028 | (home-page "http://search.cpan.org/dist/Email-MIME-Encodings") | |
1029 | (synopsis "Unified interface to MIME encoding and decoding") | |
1030 | (description "This module wraps MIME::Base64 and MIME::QuotedPrint.") | |
1031 | (license (package-license perl)))) | |
1032 | ||
a24c5420 EB |
1033 | (define-public perl-email-sender |
1034 | (package | |
1035 | (name "perl-email-sender") | |
1036 | (version "1.300016") | |
1037 | (source | |
1038 | (origin | |
1039 | (method url-fetch) | |
1040 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1041 | "Email-Sender-" version ".tar.gz")) | |
1042 | (sha256 | |
1043 | (base32 | |
1044 | "18x26fjh399q3s2g8dajb9r10633c46jrnbvycpnpclgnzhjs100")))) | |
1045 | (build-system perl-build-system) | |
1046 | (native-inputs | |
1047 | `(("perl-capture-tiny" ,perl-capture-tiny))) | |
1048 | (propagated-inputs | |
1049 | `(("perl-email-abstract" ,perl-email-abstract) | |
1050 | ("perl-email-address" ,perl-email-address) | |
1051 | ("perl-email-simple" ,perl-email-simple) | |
1052 | ("perl-list-moreutils" ,perl-list-moreutils) | |
1053 | ("perl-module-runtime" ,perl-module-runtime) | |
1054 | ("perl-moo" ,perl-moo) | |
1055 | ("perl-moox-types-mooselike" ,perl-moox-types-mooselike) | |
1056 | ("perl-sub-exporter" ,perl-sub-exporter) | |
1057 | ("perl-throwable" ,perl-throwable) | |
1058 | ("perl-try-tiny" ,perl-try-tiny))) | |
1059 | (home-page "http://search.cpan.org/dist/Email-Sender") | |
1060 | (synopsis "Perl library for sending email") | |
1061 | (description "Email::Sender replaces the old and sometimes problematic | |
1062 | Email::Send library.") | |
1063 | (license (package-license perl)))) | |
1064 | ||
151ef3ed EB |
1065 | (define-public perl-email-simple |
1066 | (package | |
1067 | (name "perl-email-simple") | |
1068 | (version "2.206") | |
1069 | (source | |
1070 | (origin | |
1071 | (method url-fetch) | |
1072 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" | |
1073 | "Email-Simple-" version ".tar.gz")) | |
1074 | (sha256 | |
1075 | (base32 | |
1076 | "19dpy3j5na2k9qw1jcpc8ia25038068r9j1bn34f9yyrisz7s522")))) | |
1077 | (build-system perl-build-system) | |
1078 | (propagated-inputs | |
1079 | `(("perl-email-date-format" ,perl-email-date-format))) | |
1080 | (home-page "http://search.cpan.org/dist/Email-Simple") | |
1081 | (synopsis "Parsing of RFC 2822 messages") | |
1082 | (description "Email::Simple provides simple parsing of RFC 2822 message | |
1083 | format and headers.") | |
1084 | (license (package-license perl)))) | |
1085 | ||
f5dceecb AW |
1086 | (define-public libesmtp |
1087 | (package | |
1088 | (name "libesmtp") | |
1089 | (version "1.0.6") | |
1090 | (source | |
1091 | (origin | |
1092 | (method url-fetch) | |
1093 | (uri (string-append "http://www.stafford.uklinux.net/libesmtp/libesmtp-" | |
1094 | version ".tar.bz2")) | |
1095 | (sha256 | |
1096 | (base32 | |
1097 | "02zbniyz7qys1jmx3ghx21kxmns1wc3hmv80gp7ag7yra9f1m9nh")))) | |
1098 | (build-system gnu-build-system) | |
1099 | (propagated-inputs | |
1100 | `(("openssl" ,openssl))) | |
1101 | (home-page "http://www.stafford.uklinux.net/libesmtp/") | |
1102 | (synopsis "Library for sending mail via remote hosts using SMTP") | |
1103 | (description "libESMTP is an SMTP client which manages posting (or | |
1104 | submission of) electronic mail via a preconfigured Mail Transport Agent (MTA). | |
1105 | It may be used as part of a Mail User Agent (MUA) or other program that must | |
1106 | be able to post electronic mail where mail functionality may not be that | |
1107 | program's primary purpose.") | |
1108 | (license (list lgpl2.1+ gpl2+)))) | |
1109 | ||
f8ae32a2 AW |
1110 | (define-public esmtp |
1111 | (package | |
1112 | (name "esmtp") | |
1113 | (version "1.2") | |
1114 | (source | |
1115 | (origin | |
1116 | (method git-fetch) | |
1117 | (uri (git-reference | |
1118 | (url "https://github.com/andywingo/esmtp.git") | |
1119 | (commit "01bf9fc"))) | |
1120 | (sha256 | |
1121 | (base32 | |
1122 | "1ay282rrl92h0m0m8z5zzjnwiiagi7c78aq2qvhia5mw7prwfyw2")) | |
1123 | (file-name (string-append name "-" version "-checkout")))) | |
1124 | (arguments | |
1125 | `(#:phases (modify-phases %standard-phases | |
1126 | (add-before | |
1127 | 'configure 'autoconf | |
1128 | (lambda _ (zero? (system* "autoreconf" "-vfi"))))))) | |
1129 | (build-system gnu-build-system) | |
1130 | (native-inputs | |
1131 | `(("bison" ,bison) | |
1132 | ("flex" ,flex) | |
1133 | ("autoconf" ,autoconf) | |
1134 | ("automake" ,automake) | |
1135 | ("libtool" ,libtool))) | |
1136 | (inputs | |
718c5dd6 | 1137 | `(("libesmtp" ,libesmtp))) |
f8ae32a2 AW |
1138 | (home-page "http://sourceforge.net/projects/esmtp/") |
1139 | (synopsis "Relay-only mail transfer agent (MTA)") | |
1140 | (description "Esmtp is a simple relay-only mail transfer agent built using | |
1141 | libESMTP. It sends e-mail via a remote SMTP server using credentials from the | |
1142 | user's @file{$HOME/.esmtprc} configuration file; see the @command{esmtprc} man | |
1143 | page for more on configuration. This package also provides minimal | |
1144 | compatibility shims for the @command{sendmail}, @command{mailq}, and | |
1145 | @command{newaliases} commands.") | |
1146 | (license gpl2+))) | |
1147 | ||
34dd26af CAW |
1148 | (define-public fdm |
1149 | (package | |
1150 | (name "fdm") | |
1151 | (version "1.9") | |
1152 | (source (origin | |
1153 | (method url-fetch) | |
1154 | (uri (string-append "https://github.com/nicm/fdm/releases/download/" | |
1155 | version "/fdm-" | |
1156 | version ".tar.gz")) | |
1157 | (file-name (string-append name "-" version ".tar.gz")) | |
1158 | (sha256 | |
1159 | (base32 "054rscijahiza5f9qha79rg3siji3bk5mk10f8c2vqx7m4w6qh8n")))) | |
1160 | (build-system gnu-build-system) | |
1161 | (inputs | |
1162 | `(("tdb" ,tdb) | |
1163 | ("openssl" ,openssl) | |
1164 | ("zlib" ,zlib))) | |
1165 | (home-page "https://github.com/nicm/fdm") | |
1166 | (synopsis "Mail Retrieval Agent (MRA) and Mail Delivery Agent (MDA)") | |
1167 | (description "fdm is a program designed to fetch mail from POP3 | |
1168 | or IMAP servers, or receive local mail from stdin, and | |
1169 | deliver it in various ways.") | |
1170 | (license | |
1171 | ;; Why point to a source file? Well, all the individual files have a | |
1172 | ;; copy of this license in their headers, but there's no seprate file | |
1173 | ;; with that information. | |
16966d5b | 1174 | (non-copyleft "https://github.com/nicm/fdm/blob/master/command.c")))) |
34dd26af | 1175 | |
e90819c4 LG |
1176 | |
1177 | (define-public procmail | |
1178 | (package | |
1179 | (name "procmail") | |
1180 | (version "3.22") | |
1181 | (source | |
1182 | (origin | |
1183 | (method url-fetch) | |
1184 | (uri (string-append | |
1185 | "ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-" | |
1186 | version | |
1187 | ".tar.gz")) | |
1188 | (sha256 | |
1189 | (base32 | |
1190 | "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08")) | |
1191 | ;; The following patch fixes an ambiguous definition of | |
1192 | ;; getline() in formail.c. The patch is provided by Debian as | |
1193 | ;; patch 24. | |
1d982d78 LF |
1194 | (patches (search-patches "procmail-ambiguous-getline-debian.patch" |
1195 | "procmail-CVE-2014-3618.patch")))) | |
e90819c4 LG |
1196 | (arguments |
1197 | `(#:phases (modify-phases %standard-phases | |
1198 | (replace 'configure | |
1199 | (lambda _ | |
1200 | (substitute* "Makefile" | |
1201 | (("/bin/sh") | |
1202 | (which "sh")) | |
1203 | (("/usr") | |
1204 | (assoc-ref %outputs "out")) | |
1205 | (("/bin/rm") | |
1206 | (which "rm"))) | |
1207 | #t))) | |
1208 | #:tests? #f)) ;; There are no tests indicating a successful | |
1209 | ;; build. Some tests of basic locking mechanisms provided by the | |
1210 | ;; filesystem are performed during 'make install'. However, these | |
1211 | ;; are performed before the actual build process. | |
1212 | (build-system gnu-build-system) | |
05aa576b | 1213 | (inputs `(("exim" ,exim))) |
e90819c4 LG |
1214 | (home-page "http://www.procmail.org/") |
1215 | (synopsis "Versatile mail delivery agent (MDA)") | |
1216 | (description "Procmail is a mail delivery agent (MDA) featuring support | |
1217 | for a variety of mailbox formats such as mbox, mh and maildir. Incoming mail | |
1218 | can be sorted into separate files/directories and arbitrary commands can be | |
1219 | executed on mail arrival. Procmail is considered stable, but is no longer | |
1220 | maintained.") | |
1221 | (license gpl2+))) ;; procmail allows to choose the | |
1222 | ;; nonfree Artistic License 1.0 | |
1223 | ;; as alternative to the GPL2+. | |
1224 | ;; This option is not listed here. | |
e90819c4 | 1225 | |
61c30e9d LF |
1226 | (define-public khard |
1227 | (package | |
1228 | (name "khard") | |
d99f6ffb | 1229 | (version "0.9.0") |
61c30e9d LF |
1230 | (source (origin |
1231 | (method url-fetch) | |
1232 | (uri (pypi-uri name version)) | |
1233 | (sha256 | |
1234 | (base32 | |
d99f6ffb | 1235 | "0y83rji4f270hbb41m4jpr0z3yzvpvbsl32mpg9d38hlydw8fk1s")))) |
61c30e9d LF |
1236 | (build-system python-build-system) |
1237 | (arguments | |
1238 | `(#:python ,python-2 ; only python-2 is supported. | |
1239 | #:phases | |
1240 | (modify-phases %standard-phases | |
1241 | (add-before 'build 'disable-egg-compression | |
1242 | ;; Do not compress the egg. | |
1243 | (lambda _ | |
1244 | (let ((port (open-file "setup.cfg" "a"))) | |
1245 | (display "\n[easy_install]\nzip_ok = 0\n" | |
1246 | port) | |
1247 | (close-port port) | |
1248 | #t))) | |
1249 | (add-after 'install 'install-doc | |
1250 | (lambda* (#:key outputs #:allow-other-keys) | |
1251 | (let* ((out (assoc-ref outputs "out")) | |
1252 | (doc (string-append out "/share/doc/khard"))) | |
1253 | (copy-recursively "misc/khard" doc))))))) | |
1254 | (native-inputs | |
1255 | `(("python2-setuptools" ,python2-setuptools))) | |
1256 | (propagated-inputs | |
1257 | `(("python2-vobject" ,python2-vobject) | |
1258 | ("python2-pyyaml" ,python2-pyyaml) | |
1259 | ("python2-atomicwrites" ,python2-atomicwrites) | |
1260 | ("python2-configobj" ,python2-configobj))) | |
1261 | (synopsis "Console address book using CardDAV") | |
1262 | (description "Khard is an address book for the console. It creates, reads, | |
1263 | modifies and removes CardDAV address book entries at your local machine. For | |
1264 | synchronizing with a remote address book, @command{vdirsyncer} is recommended. | |
1265 | Khard can also be used from within the email client @command{mutt}.") | |
1266 | (home-page "https://github.com/scheibler/khard") | |
1267 | (license gpl3+))) | |
be0c5733 DM |
1268 | |
1269 | (define-public perl-mail-spf | |
1270 | (package | |
1271 | (name "perl-mail-spf") | |
1272 | (version "v2.9.0") | |
1273 | (source | |
1274 | (origin | |
1275 | (method url-fetch) | |
1276 | (uri (string-append | |
1277 | "mirror://cpan/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-" | |
1278 | version | |
1279 | ".tar.gz")) | |
1280 | (sha256 | |
1281 | (base32 | |
1282 | "0qk1rfgfm5drj4iyniiabrasrpqv570vzhgz66lwgb67y4amkjv1")))) | |
1283 | (build-system perl-build-system) | |
1284 | (native-inputs | |
1285 | `(("perl-module-build" ,perl-module-build) | |
1286 | ("perl-net-dns-resolver-programmable" | |
1287 | ,perl-net-dns-resolver-programmable))) | |
1288 | (arguments | |
1289 | `(#:phases (modify-phases %standard-phases | |
1290 | (add-before 'configure 'modify-Build.PL | |
1291 | (lambda* (#:key outputs #:allow-other-keys) | |
1292 | (substitute* "Build.PL" | |
1293 | (("'/usr/sbin'") (string-append "'" | |
1294 | (assoc-ref outputs "out") | |
1295 | "/sbin'"))) | |
1296 | #t))))) | |
1297 | (inputs | |
1298 | `(("perl-error" ,perl-error) | |
1299 | ("perl-net-dns" ,perl-net-dns) | |
1300 | ("perl-netaddr-ip" ,perl-netaddr-ip) | |
1301 | ("perl-uri" ,perl-uri))) | |
1302 | (home-page | |
1303 | "http://search.cpan.org/dist/Mail-SPF") | |
1304 | (synopsis | |
1305 | "Perl implementation of Sender Policy Framework") | |
1306 | (description "Mail::SPF is the Sender Policy Framework implemented | |
1307 | in Perl.") | |
1308 | (license bsd-3))) |