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