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