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