| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2014, 2015, 2017, 2020 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, 2019 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, 2020 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 Nikita <nikita@n0.is> |
| 19 | ;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org> |
| 20 | ;;; Copyright © 2016, 2017, 2018, 2019, 2020 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, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
| 26 | ;;; Copyright © 2017, 2018, 2020 Rene Saavedra <pacoon@protonmail.com> |
| 27 | ;;; Copyright © 2018, 2019, 2020 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, 2020 Ricardo Wurmus <rekado@elephly.net> |
| 31 | ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org> |
| 32 | ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com> |
| 33 | ;;; Copyright © 2020 Justus Winter <justus@sequoia-pgp.org> |
| 34 | ;;; Copyright © 2020 Eric Brown <ecbrown@ericcbrown.com> |
| 35 | ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
| 36 | ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de> |
| 37 | ;;; Copyright © 2020 Alexey Abramov <levenson@mmer.org> |
| 38 | ;;; |
| 39 | ;;; This file is part of GNU Guix. |
| 40 | ;;; |
| 41 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
| 42 | ;;; under the terms of the GNU General Public License as published by |
| 43 | ;;; the Free Software Foundation; either version 3 of the License, or (at |
| 44 | ;;; your option) any later version. |
| 45 | ;;; |
| 46 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
| 47 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
| 48 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 49 | ;;; GNU General Public License for more details. |
| 50 | ;;; |
| 51 | ;;; You should have received a copy of the GNU General Public License |
| 52 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 53 | |
| 54 | (define-module (gnu packages mail) |
| 55 | #:use-module (gnu packages) |
| 56 | #:use-module (gnu packages admin) |
| 57 | #:use-module (gnu packages aspell) |
| 58 | #:use-module (gnu packages autotools) |
| 59 | #:use-module (gnu packages backup) |
| 60 | #:use-module (gnu packages base) |
| 61 | #:use-module (gnu packages bash) |
| 62 | #:use-module (gnu packages bison) |
| 63 | #:use-module (gnu packages calendar) |
| 64 | #:use-module (gnu packages check) |
| 65 | #:use-module (gnu packages compression) |
| 66 | #:use-module (gnu packages crypto) |
| 67 | #:use-module (gnu packages curl) |
| 68 | #:use-module (gnu packages cyrus-sasl) |
| 69 | #:use-module (gnu packages databases) |
| 70 | #:use-module (gnu packages dbm) |
| 71 | #:use-module (gnu packages dejagnu) |
| 72 | #:use-module (gnu packages django) |
| 73 | #:use-module (gnu packages dns) |
| 74 | #:use-module (gnu packages docbook) |
| 75 | #:use-module (gnu packages documentation) |
| 76 | #:use-module (gnu packages emacs) |
| 77 | #:use-module (gnu packages enchant) |
| 78 | #:use-module (gnu packages gdb) |
| 79 | #:use-module (gnu packages gettext) |
| 80 | #:use-module (gnu packages ghostscript) |
| 81 | #:use-module (gnu packages glib) |
| 82 | #:use-module (gnu packages gnome) |
| 83 | #:use-module (gnu packages gnupg) |
| 84 | #:use-module (gnu packages groff) |
| 85 | #:use-module (gnu packages gsasl) |
| 86 | #:use-module (gnu packages gtk) |
| 87 | #:use-module (gnu packages guile) |
| 88 | #:use-module (gnu packages guile-xyz) |
| 89 | #:use-module (gnu packages flex) |
| 90 | #:use-module (gnu packages haskell-xyz) |
| 91 | #:use-module (gnu packages icu4c) |
| 92 | #:use-module (gnu packages kerberos) |
| 93 | #:use-module (gnu packages language) |
| 94 | #:use-module (gnu packages libcanberra) |
| 95 | #:use-module (gnu packages libevent) |
| 96 | #:use-module (gnu packages libidn) |
| 97 | #:use-module (gnu packages libunistring) |
| 98 | #:use-module (gnu packages libunwind) |
| 99 | #:use-module (gnu packages linux) |
| 100 | #:use-module (gnu packages lsof) |
| 101 | #:use-module (gnu packages lua) |
| 102 | #:use-module (gnu packages m4) |
| 103 | #:use-module (gnu packages man) |
| 104 | #:use-module (gnu packages ncurses) |
| 105 | #:use-module (gnu packages networking) |
| 106 | #:use-module (gnu packages openldap) |
| 107 | #:use-module (gnu packages onc-rpc) |
| 108 | #:use-module (gnu packages pcre) |
| 109 | #:use-module (gnu packages perl) |
| 110 | #:use-module (gnu packages perl-check) |
| 111 | #:use-module (gnu packages perl-web) |
| 112 | #:use-module (gnu packages pkg-config) |
| 113 | #:use-module (gnu packages python) |
| 114 | #:use-module (gnu packages python-check) |
| 115 | #:use-module (gnu packages python-crypto) |
| 116 | #:use-module (gnu packages python-web) |
| 117 | #:use-module (gnu packages python-xyz) |
| 118 | #:use-module (gnu packages rdf) |
| 119 | #:use-module (gnu packages readline) |
| 120 | #:use-module (gnu packages ruby) |
| 121 | #:use-module (gnu packages search) |
| 122 | #:use-module (gnu packages serialization) |
| 123 | #:use-module (gnu packages samba) |
| 124 | #:use-module (gnu packages screen) |
| 125 | #:use-module (gnu packages sphinx) |
| 126 | #:use-module (gnu packages sqlite) |
| 127 | #:use-module (gnu packages tcl) |
| 128 | #:use-module (gnu packages texinfo) |
| 129 | #:use-module (gnu packages time) |
| 130 | #:use-module (gnu packages tls) |
| 131 | #:use-module (gnu packages version-control) |
| 132 | #:use-module (gnu packages w3m) |
| 133 | #:use-module (gnu packages web) |
| 134 | #:use-module (gnu packages webkit) |
| 135 | #:use-module (gnu packages xdisorg) |
| 136 | #:use-module (gnu packages xorg) |
| 137 | #:use-module (gnu packages xml) |
| 138 | #:use-module ((guix licenses) #:prefix license:) |
| 139 | #:use-module (guix packages) |
| 140 | #:use-module (guix download) |
| 141 | #:use-module (guix git-download) |
| 142 | #:use-module (guix svn-download) |
| 143 | #:use-module (guix utils) |
| 144 | #:use-module (guix build-system gnu) |
| 145 | #:use-module (guix build-system guile) |
| 146 | #:use-module (guix build-system perl) |
| 147 | #:use-module (guix build-system python) |
| 148 | #:use-module (guix build-system trivial) |
| 149 | #:use-module (srfi srfi-1) |
| 150 | #:use-module (ice-9 match)) |
| 151 | |
| 152 | (define-public anubis |
| 153 | (package |
| 154 | (name "anubis") |
| 155 | ;; This 4.2.90 alpha release adds support for Guile 3 and has fixes for |
| 156 | ;; other issues. |
| 157 | (version "4.2.90") |
| 158 | (source |
| 159 | (origin |
| 160 | (method url-fetch) |
| 161 | (uri (string-append "https://alpha.gnu.org/gnu/anubis/anubis-" |
| 162 | version ".tar.gz")) |
| 163 | (sha256 |
| 164 | (base32 |
| 165 | "0dvm6acl32dv8bixx9z50gzwfp6kj4kxnn1j3dcwjlp7sasjp41s")))) |
| 166 | (build-system gnu-build-system) |
| 167 | (native-inputs |
| 168 | `(("automake" ,automake) |
| 169 | ("autoconf" ,autoconf) |
| 170 | ("gettext" ,gettext-minimal) |
| 171 | ("m4" ,m4))) ;for the test suite |
| 172 | (inputs |
| 173 | `(("gdbm" ,gdbm) |
| 174 | ("gnutls" ,gnutls) |
| 175 | ("gpgme" ,gpgme) |
| 176 | ("gsasl" ,gsasl) |
| 177 | ("guile" ,guile-3.0) |
| 178 | ("libgcrypt" ,libgcrypt) ;gnutls support depends on libgcrypt |
| 179 | ("libgpg-error" ,libgpg-error))) |
| 180 | (outputs '("out" "debug")) |
| 181 | (synopsis "SMTP message submission daemon") |
| 182 | (description "Anubis is a daemon that sits between the Mail User |
| 183 | Agent (MUA) and the Mail Transfer Agent (MTA). When a mail is sent by a user |
| 184 | in the MUA, it is first passed to Anubis, which performs additional processing |
| 185 | to the message before passing it on for delivery by the MTA. Anubis may, for |
| 186 | example, modify the message headers or body, or encrypt or sign the message.") |
| 187 | (home-page "https://www.gnu.org/software/anubis/manual/") |
| 188 | (license license:gpl3+))) |
| 189 | |
| 190 | (define-public mailutils |
| 191 | (package |
| 192 | (name "mailutils") |
| 193 | (version "3.10") |
| 194 | (source (origin |
| 195 | (method url-fetch) |
| 196 | (uri (string-append "mirror://gnu/mailutils/mailutils-" |
| 197 | version ".tar.xz")) |
| 198 | (sha256 |
| 199 | (base32 |
| 200 | "17smrxjdgbbzbzakik30vj46q4iib85ksqhb82jr4vjp57akszh9")))) |
| 201 | (build-system gnu-build-system) |
| 202 | (arguments |
| 203 | `(#:phases |
| 204 | (modify-phases %standard-phases |
| 205 | (add-before 'check 'prepare-test-suite |
| 206 | (lambda _ |
| 207 | ;; Use the right file name for `cat'. |
| 208 | (substitute* "testsuite/lib/mailutils.exp" |
| 209 | (("/bin/cat") |
| 210 | (which "cat"))) |
| 211 | |
| 212 | ;; Tests try to invoke 'mda' such that it looks up the |
| 213 | ;; 'root' user, which does not exist in the build |
| 214 | ;; environment. |
| 215 | (substitute* '("mda/mda/tests/testsuite" |
| 216 | "mda/lmtpd/tests/testsuite") |
| 217 | (("root <") "nobody <") |
| 218 | (("spool/root") "spool/nobody") |
| 219 | (("root@localhost") "nobody@localhost")) |
| 220 | |
| 221 | ;; The 'pipeact.at' tests generate a shell script; make |
| 222 | ;; sure it uses the right shell. |
| 223 | (substitute* '("sieve/tests/testsuite" |
| 224 | "mh/tests/testsuite") |
| 225 | (("#! /bin/sh") |
| 226 | (string-append "#!" (which "sh")))) |
| 227 | |
| 228 | (substitute* "mh/tests/testsuite" |
| 229 | (("moreproc: /bin/cat") |
| 230 | (string-append "moreproc: " (which "cat")))) |
| 231 | |
| 232 | ;; XXX: The comsatd tests rely on being able to open |
| 233 | ;; /dev/tty, but that gives ENODEV in the build |
| 234 | ;; environment. Thus, ignore test failures here. |
| 235 | (substitute* "comsat/tests/Makefile.in" |
| 236 | (("\\$\\(SHELL\\) \\$\\(TESTSUITE\\)" all) |
| 237 | (string-append "-" all))) |
| 238 | |
| 239 | ;; XXX: The ‘moderator: program discard’ test does not specify |
| 240 | ;; an explicit From: but does expect an exact match. But why are |
| 241 | ;; all other tests unaffected? |
| 242 | (substitute* "sieve/tests/testsuite" |
| 243 | (("gray@") |
| 244 | "nixbld@")) |
| 245 | |
| 246 | ;; 'frm' tests expect write access to $HOME. |
| 247 | (setenv "HOME" (getcwd)) |
| 248 | |
| 249 | ;; Avoid the message "I'm going to create the standard MH path |
| 250 | ;; for you", which would lead to one test failure (when diffing |
| 251 | ;; stdout of 'fmtcheck'.) |
| 252 | (call-with-output-file ".mh_profile" |
| 253 | (lambda (port) |
| 254 | (format port "Path: ~a/Mail-for-tests~%" |
| 255 | (getcwd)))) |
| 256 | |
| 257 | #t))) |
| 258 | ;; TODO: Add `--with-sql'. |
| 259 | #:configure-flags |
| 260 | (list "--sysconfdir=/etc" |
| 261 | |
| 262 | ;; Add "/X.Y" to the installation directory. |
| 263 | (string-append "--with-guile-site-dir=" |
| 264 | (assoc-ref %outputs "out") |
| 265 | "/share/guile/site/" |
| 266 | ,(match (assoc "guile" |
| 267 | (package-inputs this-package)) |
| 268 | (("guile" guile) |
| 269 | (version-major+minor |
| 270 | (package-version guile)))))) |
| 271 | |
| 272 | #:parallel-tests? #f)) |
| 273 | (native-inputs |
| 274 | `(("perl" ,perl) ;for 'gylwrap' |
| 275 | ("texinfo" ,texinfo) |
| 276 | ("dejagnu" ,dejagnu))) |
| 277 | (inputs |
| 278 | `(("m4" ,m4) |
| 279 | ("guile" ,guile-3.0) |
| 280 | ("gsasl" ,gsasl) |
| 281 | ("gnutls" ,gnutls) |
| 282 | ("ncurses" ,ncurses) |
| 283 | ("readline" ,readline) |
| 284 | ("linux-pam" ,linux-pam) |
| 285 | ("libltdl" ,libltdl) |
| 286 | ("gdbm" ,gdbm) |
| 287 | |
| 288 | ;; Required for SEARCH CHARSET. |
| 289 | ("libiconv" ,libiconv) |
| 290 | ("libunistring" ,libunistring))) |
| 291 | (home-page "https://mailutils.org") |
| 292 | (synopsis "Utilities and library for reading and serving mail") |
| 293 | (description |
| 294 | "GNU Mailutils is a collection of programs for managing, viewing and |
| 295 | processing electronic mail. It contains both utilities and server daemons |
| 296 | and all operate in a protocol-agnostic way. The underlying libraries are |
| 297 | also available, simplifying the addition of mail capabilities to new |
| 298 | software.") |
| 299 | (license |
| 300 | ;; Libraries are under LGPLv3+, and programs under GPLv3+. |
| 301 | (list license:gpl3+ license:lgpl3+)))) |
| 302 | |
| 303 | (define-public guile2.2-mailutils |
| 304 | (package |
| 305 | (inherit mailutils) |
| 306 | (name "guile2.2-mailutils") |
| 307 | (inputs |
| 308 | `(("guile" ,guile-2.2) |
| 309 | ,@(alist-delete "guile" (package-inputs mailutils)))))) |
| 310 | |
| 311 | (define-public guile3.0-mailutils |
| 312 | (deprecated-package "guile3.0-mailutils" mailutils)) |
| 313 | |
| 314 | (define-public nullmailer |
| 315 | (package |
| 316 | (name "nullmailer") |
| 317 | (version "2.2") |
| 318 | (source |
| 319 | (origin |
| 320 | (method url-fetch) |
| 321 | (uri (list |
| 322 | (string-append "https://untroubled.org/nullmailer/" |
| 323 | "nullmailer-" version ".tar.gz") |
| 324 | ;; Previous releases are moved to this subdirectory. |
| 325 | (string-append "https://untroubled.org/nullmailer/archive/" |
| 326 | "nullmailer-" version ".tar.gz"))) |
| 327 | (sha256 |
| 328 | (base32 "0md8cf90fl2yf3zh9njjy42a673v4j4ygyq95xg7fzkygdigm1lq")))) |
| 329 | (build-system gnu-build-system) |
| 330 | (arguments |
| 331 | `(#:configure-flags |
| 332 | (list "--enable-tls" |
| 333 | "--localstatedir=/var" |
| 334 | "--sysconfdir=/etc") |
| 335 | #:phases |
| 336 | (modify-phases %standard-phases |
| 337 | (add-before 'check 'patch-test-FHS-file-names |
| 338 | (lambda _ |
| 339 | (with-directory-excursion "test" |
| 340 | (substitute* (list "functions.in" |
| 341 | "tests/send") |
| 342 | ;; Fix some shebangs later generated on the fly. |
| 343 | (("/bin/sh") (which "bash")))) |
| 344 | #t)) |
| 345 | (add-before 'check 'pass-PATH-to-tests |
| 346 | ;; ‘runtest’ launches each test through ‘env -’, clearing $PATH. The |
| 347 | ;; tests then source ‘functions’, which first demands a working $PATH |
| 348 | ;; only to clobber it later. Pass our $PATH to the test environment |
| 349 | ;; and don't touch it after that. |
| 350 | (lambda _ |
| 351 | (with-directory-excursion "test" |
| 352 | (substitute* "runtests" |
| 353 | (("env - bash") |
| 354 | (string-append "env - PATH=\"" (getenv "PATH") "\" bash"))) |
| 355 | (substitute* "functions.in" |
| 356 | (("export PATH=.*") ""))) |
| 357 | #t)) |
| 358 | (add-before 'check 'delete-failing-tests |
| 359 | (lambda _ |
| 360 | (with-directory-excursion "test/tests" |
| 361 | (for-each delete-file |
| 362 | (list |
| 363 | ;; XXX ‘nullmailer-inject: nullmailer-queue failed: 15’ |
| 364 | "inject/queue" |
| 365 | ;; XXX These require the not-yet-packaged tcpserver. |
| 366 | "protocols" "smtp-auth"))) |
| 367 | #t)) |
| 368 | (add-before 'install 'skip-install-data-local |
| 369 | ;; Don't attempt to install run-time files outside of the store. |
| 370 | (lambda _ |
| 371 | (substitute* "Makefile" |
| 372 | ((" install-data-local") "")) |
| 373 | #t))))) |
| 374 | (native-inputs |
| 375 | ;; For tests. |
| 376 | `(("daemontools" ,daemontools))) ; for svc |
| 377 | (inputs |
| 378 | `(("gnutls" ,gnutls))) |
| 379 | (home-page "https://untroubled.org/nullmailer/") |
| 380 | (synopsis "Simple relay-only mail transfer agent") |
| 381 | (description |
| 382 | "Nullmailer is a simple replacement @acronym{MTA, Mail Transfer Agent} for |
| 383 | hosts that receive no local mail and only relay mail to a fixed set of smart |
| 384 | relays. It's useful for systems such as Web servers that must be able to send |
| 385 | email notifications, without having to run a full-blown MTA such as sendmail |
| 386 | or qmail. |
| 387 | |
| 388 | Nullmailer is designed to be simple to configure, easy to extend, and secure. |
| 389 | It requires little ongoing administration. The included @command{sendmail} |
| 390 | emulator front-end should allow most (if not all) sendmail-compatible programs |
| 391 | to run without any changes.") |
| 392 | (license (list license:lgpl2.1+ ; lib/cli++/ (but some files lack headers) |
| 393 | license:gpl2+)))) ; everything else |
| 394 | |
| 395 | (define-public fetchmail |
| 396 | (package |
| 397 | (name "fetchmail") |
| 398 | (version "6.4.11") |
| 399 | (source |
| 400 | (origin |
| 401 | (method url-fetch) |
| 402 | (uri (string-append "mirror://sourceforge/fetchmail/branch_" |
| 403 | (version-major+minor version) "/" |
| 404 | "fetchmail-" version ".tar.xz")) |
| 405 | (sha256 |
| 406 | (base32 "177276dha2pchsvlki0skf460kmjnixqmzc6nj33fz4hd7c1sj1y")))) |
| 407 | (build-system gnu-build-system) |
| 408 | (inputs |
| 409 | `(("openssl" ,openssl))) |
| 410 | (arguments |
| 411 | `(#:configure-flags |
| 412 | (list (string-append "--with-ssl=" |
| 413 | (assoc-ref %build-inputs "openssl"))))) |
| 414 | (home-page "https://www.fetchmail.info/") |
| 415 | (synopsis "Remote-mail retrieval and forwarding utility") |
| 416 | (description |
| 417 | "Fetchmail is a full-featured, robust, well-documented remote-mail |
| 418 | retrieval and forwarding utility intended to be used over on-demand |
| 419 | TCP/IP links (such as SLIP or PPP connections). It supports every |
| 420 | remote-mail protocol now in use on the Internet: POP2, POP3, RPOP, APOP, |
| 421 | KPOP, all flavors of IMAP, ETRN, and ODMR. It can even support IPv6 |
| 422 | and IPSEC. |
| 423 | |
| 424 | Fetchmail retrieves mail from remote mail servers and forwards it via SMTP, |
| 425 | so it can then be read by normal mail user agents such as mutt, elm |
| 426 | or BSD Mail. It allows all your system MTA's filtering, forwarding, and |
| 427 | aliasing facilities to work just as they would on normal mail.") |
| 428 | (license license:gpl2+))) ; most files are actually public domain or x11 |
| 429 | |
| 430 | (define-public mutt |
| 431 | (package |
| 432 | (name "mutt") |
| 433 | (version "1.14.7") |
| 434 | (source (origin |
| 435 | (method url-fetch) |
| 436 | (uri (list |
| 437 | (string-append "https://bitbucket.org/mutt/mutt/downloads/" |
| 438 | "mutt-" version ".tar.gz") |
| 439 | (string-append "http://ftp.mutt.org/pub/mutt/mutt-" |
| 440 | version ".tar.gz"))) |
| 441 | (sha256 |
| 442 | (base32 |
| 443 | "0r58xnjgkw0kmnnzhb32mk5gkkani5kbi5krybpbag156fqhgxg4")) |
| 444 | (patches (search-patches "mutt-store-references.patch")))) |
| 445 | (build-system gnu-build-system) |
| 446 | (inputs |
| 447 | `(("cyrus-sasl" ,cyrus-sasl) |
| 448 | ("gdbm" ,gdbm) |
| 449 | ("gpgme" ,gpgme) |
| 450 | ("libidn2" ,libidn2) |
| 451 | ("ncurses" ,ncurses) |
| 452 | ("openssl" ,openssl) |
| 453 | ("perl" ,perl) |
| 454 | ("sqlite" ,sqlite))) |
| 455 | (arguments |
| 456 | `(#:configure-flags '("--enable-smtp" |
| 457 | "--enable-imap" |
| 458 | "--enable-pop" |
| 459 | "--enable-gpgme" |
| 460 | "--enable-hcache" ; for header caching |
| 461 | "--enable-sidebar" |
| 462 | "--enable-autocrypt" |
| 463 | "--with-ssl" |
| 464 | "--with-sasl" |
| 465 | "--with-sqlite3" ; required for Autocrypt |
| 466 | "--with-idn2" ; recommended for Autocrypt |
| 467 | ;; So that mutt does not check whether the path |
| 468 | ;; exists, which it does not in the chroot. |
| 469 | "--with-mailpath=/var/mail"))) |
| 470 | (home-page "http://www.mutt.org/") |
| 471 | (synopsis "Mail client") |
| 472 | (description |
| 473 | "Mutt is a small but very powerful text-based mail client for Unix |
| 474 | operating systems.") |
| 475 | (license license:gpl2+))) |
| 476 | |
| 477 | (define-public neomutt |
| 478 | (package |
| 479 | (name "neomutt") |
| 480 | (version "20200313") |
| 481 | (source |
| 482 | (origin |
| 483 | (method git-fetch) |
| 484 | (uri (git-reference |
| 485 | (url "https://github.com/neomutt/neomutt") |
| 486 | (commit version))) |
| 487 | (file-name (git-file-name name version)) |
| 488 | (sha256 |
| 489 | (base32 "1k4k07l6h5krc3fx928qvdq3ssw9fxn95aj7k885xlckd2i1lnb5")))) |
| 490 | (build-system gnu-build-system) |
| 491 | (inputs |
| 492 | `(("cyrus-sasl" ,cyrus-sasl) |
| 493 | ("gdbm" ,gdbm) |
| 494 | ("gpgme" ,gpgme) |
| 495 | ("ncurses" ,ncurses) |
| 496 | ("gnutls" ,gnutls) |
| 497 | ("openssl" ,openssl) ; for S/MIME |
| 498 | ("perl" ,perl) |
| 499 | ("kyotocabinet" ,kyotocabinet) |
| 500 | ("libxslt" ,libxslt) |
| 501 | ("libidn2" ,libidn2) |
| 502 | ("libxml2" ,libxml2) |
| 503 | ("lmdb" ,lmdb) |
| 504 | ("notmuch" ,notmuch))) |
| 505 | (native-inputs |
| 506 | `(("automake" ,automake) |
| 507 | ("gettext-minimal" ,gettext-minimal) |
| 508 | ("pkg-config" ,pkg-config) |
| 509 | ("docbook-xsl" ,docbook-xsl) |
| 510 | ("docbook-xml" ,docbook-xml-4.2) |
| 511 | ("w3m" ,w3m) |
| 512 | ("tcl" ,tcl))) |
| 513 | (arguments |
| 514 | `(#:test-target "test" |
| 515 | #:configure-flags |
| 516 | (list "--gpgme" |
| 517 | |
| 518 | ;; Database, implies header caching. |
| 519 | "--disable-tokyocabinet" |
| 520 | "--disable-qdbm" |
| 521 | "--disable-bdb" |
| 522 | "--lmdb" |
| 523 | "--kyotocabinet" |
| 524 | |
| 525 | "--gdbm" |
| 526 | |
| 527 | "--gnutls" |
| 528 | "--disable-ssl" |
| 529 | "--sasl" |
| 530 | (string-append "--with-sasl=" |
| 531 | (assoc-ref %build-inputs "cyrus-sasl")) |
| 532 | |
| 533 | |
| 534 | "--smime" |
| 535 | "--notmuch" |
| 536 | "--disable-idn" |
| 537 | "--idn2" |
| 538 | |
| 539 | ;; If we do not set this, neomutt wants to check |
| 540 | ;; whether the path exists, which it does not |
| 541 | ;; in the chroot. |
| 542 | "--with-mailpath=/var/mail" |
| 543 | |
| 544 | "--with-ui=ncurses" |
| 545 | (string-append "--with-ncurses=" |
| 546 | (assoc-ref %build-inputs "ncurses")) |
| 547 | (string-append "--prefix=" |
| 548 | (assoc-ref %outputs "out")) |
| 549 | "--debug") |
| 550 | #:phases |
| 551 | (modify-phases %standard-phases |
| 552 | ;; TODO: autosetup is meant to be included in the source, |
| 553 | ;; but we should package autosetup and use our own version of it. |
| 554 | (replace 'configure |
| 555 | (lambda* (#:key outputs inputs configure-flags #:allow-other-keys) |
| 556 | (let* ((out (assoc-ref outputs "out")) |
| 557 | (flags `(,@configure-flags)) |
| 558 | (bash (which "bash"))) |
| 559 | (setenv "SHELL" bash) |
| 560 | (setenv "CONFIG_SHELL" bash) |
| 561 | (apply invoke bash |
| 562 | (string-append (getcwd) "/configure") |
| 563 | flags))))))) |
| 564 | (home-page "https://neomutt.org/") |
| 565 | (synopsis "Command-line mail reader based on Mutt") |
| 566 | (description |
| 567 | "NeoMutt is a command-line mail reader which is based on mutt. |
| 568 | It adds a large amount of new and improved features to mutt.") |
| 569 | (license license:gpl2+))) |
| 570 | |
| 571 | (define-public gmime |
| 572 | (package |
| 573 | (name "gmime") |
| 574 | (version "3.2.7") |
| 575 | (source (origin |
| 576 | (method url-fetch) |
| 577 | (uri (string-append "mirror://gnome/sources/gmime/" |
| 578 | (version-major+minor version) |
| 579 | "/gmime-" version ".tar.xz")) |
| 580 | (sha256 |
| 581 | (base32 |
| 582 | "0i3xfc84qn1z99i70q68kbnp9rmgqrnprqb418ba52s6g9j9dsia")))) |
| 583 | (build-system gnu-build-system) |
| 584 | (native-inputs |
| 585 | `(("pkg-config" ,pkg-config) |
| 586 | ("gnupg" ,gnupg))) ; for tests only |
| 587 | (inputs `(("glib" ,glib) |
| 588 | ("gpgme" ,gpgme) |
| 589 | ("zlib" ,zlib))) |
| 590 | (arguments |
| 591 | `(#:phases |
| 592 | (modify-phases %standard-phases |
| 593 | (add-after |
| 594 | 'unpack 'patch-paths-in-tests |
| 595 | (lambda _ |
| 596 | ;; The test programs run several programs using 'system' with |
| 597 | ;; hard-coded paths. Here we patch them all. |
| 598 | ;; We use ISO-8859-1 here because test-iconv.c contains |
| 599 | ;; raw byte sequences in several different encodings. |
| 600 | (with-fluids ((%default-port-encoding #f)) |
| 601 | (substitute* (find-files "tests" "\\.c$") |
| 602 | (("(system *\\(\")(/[^ ]*)" all pre prog-path) |
| 603 | (let* ((base (basename prog-path)) |
| 604 | (prog (which base))) |
| 605 | (string-append pre |
| 606 | (or prog (error "not found: " base))))))) |
| 607 | #t))))) |
| 608 | (home-page "http://spruce.sourceforge.net/gmime/") |
| 609 | (synopsis "MIME message parser and creator library") |
| 610 | (description |
| 611 | "GMime provides a core library and set of utilities which may be used for |
| 612 | the creation and parsing of messages using the Multipurpose Internet Mail |
| 613 | Extension (MIME).") |
| 614 | (license (list license:lgpl2.1+ license:gpl2+ license:gpl3+)))) |
| 615 | |
| 616 | ;; Some packages are not ready for GMime 3 yet. |
| 617 | (define-public gmime-2.6 |
| 618 | (package |
| 619 | (inherit gmime) |
| 620 | (version "2.6.23") |
| 621 | (source (origin |
| 622 | (method url-fetch) |
| 623 | (uri (string-append "mirror://gnome/sources/gmime/" |
| 624 | (version-major+minor version) |
| 625 | "/gmime-" version ".tar.xz")) |
| 626 | (sha256 |
| 627 | (base32 |
| 628 | "0slzlzcr3h8jikpz5a5amqd0csqh2m40gdk910ws2hnaf5m6hjbi")))))) |
| 629 | |
| 630 | (define-public bogofilter |
| 631 | (package |
| 632 | (name "bogofilter") |
| 633 | (version "1.2.5") |
| 634 | (source |
| 635 | (origin |
| 636 | (method url-fetch) |
| 637 | (uri (string-append "mirror://sourceforge/bogofilter/bogofilter-stable/" |
| 638 | "bogofilter-" version ".tar.xz")) |
| 639 | (sha256 |
| 640 | (base32 "1sl9xrnnlk2sn8gmibhn8li09vnansjbxb9l1182qmgz7cvs2j1j")))) |
| 641 | (build-system gnu-build-system) |
| 642 | (arguments |
| 643 | '(#:phases |
| 644 | (modify-phases %standard-phases |
| 645 | (add-before 'check 'pre-check |
| 646 | (lambda _ |
| 647 | (substitute* "src/tests/t.frame" |
| 648 | (("GREP=/bin/grep") |
| 649 | (string-append "GREP=" (which "grep") "\n"))) |
| 650 | #t))))) |
| 651 | (native-inputs `(("flex" ,flex))) |
| 652 | (inputs `(("bdb" ,bdb))) |
| 653 | (home-page "https://bogofilter.sourceforge.io/") |
| 654 | (synopsis "Mail classifier based on a Bayesian filter") |
| 655 | (description |
| 656 | "Bogofilter is a mail filter that classifies mail as spam or ham |
| 657 | (non-spam) by a statistical analysis of the message's header and |
| 658 | content (body). The program is able to learn from the user's classifications |
| 659 | and corrections. It is based on a Bayesian filter.") |
| 660 | (license license:gpl3+))) |
| 661 | |
| 662 | (define-public offlineimap |
| 663 | (package |
| 664 | (name "offlineimap") |
| 665 | (version "7.2.4") |
| 666 | (source (origin |
| 667 | (method git-fetch) |
| 668 | (uri (git-reference |
| 669 | (url "https://github.com/OfflineIMAP/offlineimap") |
| 670 | (commit (string-append "v" version)))) |
| 671 | (file-name (git-file-name name version)) |
| 672 | (sha256 |
| 673 | (base32 |
| 674 | "0h5q5nk2p2vx86w6rrbs7v70h81dpqqr68x6l3klzl3m0yj9agb1")))) |
| 675 | (build-system python-build-system) |
| 676 | (native-inputs |
| 677 | `(("asciidoc" ,asciidoc))) |
| 678 | (inputs `(("python2-pysqlite" ,python2-pysqlite) |
| 679 | ("python2-six" ,python2-six))) |
| 680 | (arguments |
| 681 | ;; The setup.py script expects python-2. |
| 682 | `(#:python ,python-2 |
| 683 | ;; Tests require a modifiable IMAP account. |
| 684 | #:tests? #f |
| 685 | #:phases |
| 686 | (modify-phases %standard-phases |
| 687 | (add-after 'build 'build-documentation |
| 688 | (lambda _ |
| 689 | (substitute* "docs/Makefile" |
| 690 | ;; Prevent xmllint and xsltproc from downloading a DTD file. |
| 691 | (("a2x -v") "a2x --no-xmllint --xsltproc-opts=--nonet -v")) |
| 692 | (invoke "make" "-C" "docs" "man"))) |
| 693 | (add-after 'install 'install-documentation |
| 694 | (lambda* (#:key outputs #:allow-other-keys) |
| 695 | (let* ((out (assoc-ref outputs "out")) |
| 696 | (man (string-append out "/share/man"))) |
| 697 | (install-file "docs/offlineimap.1" (string-append man "/man1")) |
| 698 | (install-file "docs/offlineimapui.7" (string-append man "/man7")) |
| 699 | #t)))))) |
| 700 | (home-page "https://www.offlineimap.org") |
| 701 | (synopsis "Sync emails between two repositories") |
| 702 | (description |
| 703 | "OfflineImap synchronizes emails between two repositories, so that you |
| 704 | can read the same mailbox from multiple computers. It supports IMAP as REMOTE |
| 705 | repository and Maildir/IMAP as LOCAL repository.") |
| 706 | (license license:gpl2+))) |
| 707 | |
| 708 | (define-public emacs-mew |
| 709 | (package |
| 710 | (name "emacs-mew") |
| 711 | (version "6.8") |
| 712 | (source (origin |
| 713 | (method url-fetch) |
| 714 | (uri (string-append "https://mew.org/Release/mew-" |
| 715 | version ".tar.gz")) |
| 716 | (sha256 |
| 717 | (base32 |
| 718 | "0ixzyq33l6j34410kqav3lwn2wx171zvqd3irvns2jvhrbww8i6g")))) |
| 719 | (native-inputs |
| 720 | `(("emacs" ,emacs))) |
| 721 | (propagated-inputs |
| 722 | `(("ruby-sqlite3" ,ruby-sqlite3) ; optional for the database of messages |
| 723 | ("ruby" ,ruby))) ; to set GEM_PATH so ruby-sqlite3 is found at runtime |
| 724 | (build-system gnu-build-system) |
| 725 | (arguments |
| 726 | (let ((elisp-dir "/share/emacs/site-lisp") |
| 727 | (icon-dir "/share/mew")) |
| 728 | `(#:modules ((guix build gnu-build-system) |
| 729 | (guix build utils) |
| 730 | (guix build emacs-utils)) |
| 731 | #:imported-modules (,@%gnu-build-system-modules |
| 732 | (guix build emacs-utils)) |
| 733 | #:configure-flags |
| 734 | (list (string-append "--with-elispdir=" %output ,elisp-dir) |
| 735 | (string-append "--with-etcdir=" %output ,icon-dir)) |
| 736 | #:phases |
| 737 | (modify-phases %standard-phases |
| 738 | (add-after 'configure 'patch-mew-icon-directory |
| 739 | (lambda* (#:key outputs #:allow-other-keys) |
| 740 | (emacs-substitute-sexps "mew-key.el" |
| 741 | ("(def.* mew-icon-directory" |
| 742 | `(progn |
| 743 | (add-to-list 'image-load-path 'mew-icon-directory) |
| 744 | ,(string-append (assoc-ref outputs "out") ,icon-dir)))) |
| 745 | #t)) |
| 746 | (add-after 'install 'generate-autoloads |
| 747 | (lambda* (#:key outputs #:allow-other-keys) |
| 748 | (emacs-generate-autoloads |
| 749 | "mew" (string-append (assoc-ref outputs "out") ,elisp-dir)) |
| 750 | #t))) |
| 751 | #:tests? #f))) |
| 752 | (home-page "https://mew.org") |
| 753 | (synopsis "Emacs e-mail client") |
| 754 | (description "Mew (Messaging in the Emacs World) is a user interface |
| 755 | for text messages, multimedia messages (MIME), news articles and |
| 756 | security functionality including PGP, S/MIME, SSH, and SSL.") |
| 757 | (license license:bsd-3))) |
| 758 | |
| 759 | (define-public mu |
| 760 | (package |
| 761 | (name "mu") |
| 762 | (version "1.4.13") |
| 763 | (source (origin |
| 764 | (method url-fetch) |
| 765 | (uri (string-append "https://github.com/djcb/mu/releases/" |
| 766 | "download/" version "/" |
| 767 | "mu-" version ".tar.xz")) |
| 768 | (sha256 |
| 769 | (base32 |
| 770 | "13kfpr77qrnp3i5qnb5zd03frd3fdviggnl50973gdk0hr7m0smj")))) |
| 771 | (build-system gnu-build-system) |
| 772 | (native-inputs |
| 773 | `(("pkg-config" ,pkg-config) |
| 774 | ("glib" ,glib "bin") ; for gtester |
| 775 | ("emacs" ,emacs-minimal) |
| 776 | ("tzdata" ,tzdata-for-tests))) ; for mu/test/test-mu-query.c |
| 777 | (inputs |
| 778 | `(("xapian" ,xapian) |
| 779 | ("guile" ,guile-2.2) |
| 780 | ("glib" ,glib) |
| 781 | ("gmime" ,gmime))) |
| 782 | (arguments |
| 783 | `(#:modules ((guix build gnu-build-system) |
| 784 | (guix build utils) |
| 785 | (guix build emacs-utils)) |
| 786 | #:imported-modules (,@%gnu-build-system-modules |
| 787 | (guix build emacs-utils)) |
| 788 | #:phases |
| 789 | (modify-phases %standard-phases |
| 790 | (add-after 'unpack 'patch-configure |
| 791 | ;; By default, elisp code goes to "share/emacs/site-lisp/mu4e", |
| 792 | ;; so our Emacs package can't find it. Setting "--with-lispdir" |
| 793 | ;; configure flag doesn't help because "mu4e" will be added to |
| 794 | ;; the lispdir anyway, so we have to modify "configure.ac". |
| 795 | (lambda _ |
| 796 | (substitute* "configure" |
| 797 | (("^ +lispdir=\"\\$\\{lispdir\\}/mu4e/\".*") "") |
| 798 | ;; Use latest Guile |
| 799 | (("guile-2.0") "guile-2.2")) |
| 800 | (substitute* '("guile/Makefile.in" |
| 801 | "guile/mu/Makefile.in") |
| 802 | (("share/guile/site/2.0/") "share/guile/site/2.2/")) |
| 803 | #t)) |
| 804 | (add-after 'unpack 'patch-bin-sh-in-tests |
| 805 | (lambda _ |
| 806 | (substitute* '("guile/tests/test-mu-guile.c" |
| 807 | "mu/test-mu-cmd.c" |
| 808 | "mu/test-mu-cmd-cfind.c" |
| 809 | "mu/test-mu-query.c" |
| 810 | "mu/test-mu-threads.c") |
| 811 | (("/bin/sh") (which "sh"))) |
| 812 | #t)) |
| 813 | (add-before 'install 'fix-ffi |
| 814 | (lambda* (#:key outputs #:allow-other-keys) |
| 815 | (substitute* "guile/mu.scm" |
| 816 | (("\"libguile-mu\"") |
| 817 | (format #f "\"~a/lib/libguile-mu\"" |
| 818 | (assoc-ref outputs "out")))) |
| 819 | #t)) |
| 820 | (add-before 'check 'check-tz-setup |
| 821 | (lambda* (#:key inputs #:allow-other-keys) |
| 822 | ;; For mu/test/test-mu-query.c |
| 823 | (setenv "TZDIR" |
| 824 | (string-append (assoc-ref inputs "tzdata") |
| 825 | "/share/zoneinfo")) |
| 826 | #t)) |
| 827 | (add-after 'install 'install-emacs-autoloads |
| 828 | (lambda* (#:key outputs #:allow-other-keys) |
| 829 | (emacs-generate-autoloads |
| 830 | "mu4e" |
| 831 | (string-append (assoc-ref outputs "out") |
| 832 | "/share/emacs/site-lisp")) |
| 833 | #t))))) |
| 834 | (home-page "https://www.djcbsoftware.nl/code/mu/") |
| 835 | (synopsis "Quickly find emails") |
| 836 | (description |
| 837 | "Mu is a tool for dealing with e-mail messages stored in the |
| 838 | Maildir-format. Mu's purpose in life is to help you to quickly find the |
| 839 | messages you need; in addition, it allows you to view messages, extract |
| 840 | attachments, create new maildirs, and so on.") |
| 841 | (license license:gpl3+))) |
| 842 | |
| 843 | (define-public alot |
| 844 | (package |
| 845 | (name "alot") |
| 846 | (version "0.5.1") |
| 847 | (source (origin |
| 848 | (method url-fetch) |
| 849 | ;; package author intends on distributing via github rather |
| 850 | ;; than pypi: |
| 851 | ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331 |
| 852 | (uri (string-append "https://github.com/pazz/alot/archive/" |
| 853 | version ".tar.gz")) |
| 854 | (file-name (string-append "alot-" version ".tar.gz")) |
| 855 | (sha256 |
| 856 | (base32 |
| 857 | "0wax30hjzmkqfml7hig1dqw1v1y63yc0cgbzl96x58b9h2ggqx3a")))) |
| 858 | (build-system python-build-system) |
| 859 | (arguments |
| 860 | `(;; python 3 is currently unsupported, more info: |
| 861 | ;; https://github.com/pazz/alot/blob/master/docs/source/faq.rst |
| 862 | #:python ,python-2)) |
| 863 | (native-inputs |
| 864 | `(("python2-mock" ,python2-mock))) |
| 865 | (inputs |
| 866 | `(("python2-magic" ,python2-magic) |
| 867 | ("python2-configobj" ,python2-configobj) |
| 868 | ("python2-twisted" ,python2-twisted) |
| 869 | ("python2-urwid" ,python2-urwid) |
| 870 | ("python2-urwidtrees" ,python2-urwidtrees) |
| 871 | ("python2-pygpgme" ,python2-pygpgme) |
| 872 | ("python2-notmuch" ,python2-notmuch))) |
| 873 | (home-page "https://github.com/pazz/alot") |
| 874 | (synopsis "Command-line MUA using @code{notmuch}") |
| 875 | (description |
| 876 | "Alot is an experimental terminal mail user agent (@dfn{MUA}) based on |
| 877 | @code{notmuch} mail. It is written in Python using the @code{urwid} toolkit.") |
| 878 | (license license:gpl3+))) |
| 879 | |
| 880 | (define-public notifymuch |
| 881 | (let |
| 882 | ((commit "9d4aaf54599282ce80643b38195ff501120807f0") |
| 883 | (revision "1")) |
| 884 | (package |
| 885 | (name "notifymuch") |
| 886 | (version (string-append "0.1-" revision "." (string-take commit 7))) |
| 887 | (source |
| 888 | (origin |
| 889 | (method git-fetch) |
| 890 | (uri (git-reference |
| 891 | (url "https://github.com/kspi/notifymuch") |
| 892 | (commit commit))) |
| 893 | (sha256 |
| 894 | (base32 |
| 895 | "1lssr7iv43mp5v6nzrfbqlfzx8jcc7m636wlfyhhnd8ydd39n6k4")) |
| 896 | (file-name (string-append name "-" version "-checkout")))) |
| 897 | (build-system python-build-system) |
| 898 | (inputs |
| 899 | `(("python-notmuch" ,python-notmuch) |
| 900 | ("python-pygobject" ,python-pygobject) |
| 901 | ("gobject-introspection" ,gobject-introspection) |
| 902 | ("libnotify" ,libnotify) |
| 903 | ("gtk+" ,gtk+))) |
| 904 | (arguments |
| 905 | `(#:phases |
| 906 | (modify-phases %standard-phases |
| 907 | (add-after 'install 'wrap-binary |
| 908 | (lambda* (#:key outputs #:allow-other-keys) |
| 909 | (let* ((out (assoc-ref outputs "out")) |
| 910 | (bin (string-append out "/bin/notifymuch"))) |
| 911 | (wrap-program bin |
| 912 | `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))) |
| 913 | `("GI_TYPELIB_PATH" ":" prefix |
| 914 | (,(getenv "GI_TYPELIB_PATH") |
| 915 | ,(string-append out "/lib/girepository-1.0"))))) |
| 916 | #t))))) |
| 917 | (home-page "https://github.com/kspi/notifymuch") |
| 918 | (synopsis "Displays notifications for changes in the notmuch email database") |
| 919 | (description "notifymuch displays desktop notifications for messages in |
| 920 | the notmuch database. The notifications are sent using libnotify to a |
| 921 | notification daemon. The query to find messages to send a notification about |
| 922 | is configurable, and a notification for the same message will not be send |
| 923 | within a configurable period (defaults to 48 hours). To use notifymuch, run |
| 924 | @command{notifymuch} after new mail is indexed, this can be automated by |
| 925 | invoking @command{notifymuch} from the post-new hook.") |
| 926 | (license license:gpl3)))) |
| 927 | |
| 928 | (define-public notmuch |
| 929 | (package |
| 930 | (name "notmuch") |
| 931 | (version "0.30-0.31rc1") ; Ensure it is ordered before "0.31" |
| 932 | (source (origin |
| 933 | (method url-fetch) |
| 934 | (uri (string-append "https://notmuchmail.org/releases/notmuch-" |
| 935 | ;; version |
| 936 | "0.31~rc1" ;FIXME: Remove on the next update |
| 937 | ".tar.xz")) |
| 938 | ;; FIXME: The 'file-name' field below is needed only because of |
| 939 | ;; the tilde "~" in the URL base name. Remove it when the tilde |
| 940 | ;; is no longer there. |
| 941 | (file-name (string-append name "-" version ".tar.xz")) |
| 942 | (sha256 |
| 943 | (base32 |
| 944 | "11f10r9pp3p22afpfsrlz0xa0raas4w7fg2jkscgkjj5710ws8fw")))) |
| 945 | (build-system gnu-build-system) |
| 946 | (arguments |
| 947 | `(#:modules ((guix build gnu-build-system) |
| 948 | ((guix build emacs-build-system) #:prefix emacs:) |
| 949 | (guix build utils)) |
| 950 | #:imported-modules (,@%gnu-build-system-modules |
| 951 | (guix build emacs-build-system) |
| 952 | (guix build emacs-utils)) |
| 953 | #:make-flags |
| 954 | (list "V=1" ; verbose test output |
| 955 | "NOTMUCH_TEST_TIMEOUT=1h") ; don't fail on slow machines |
| 956 | #:phases (modify-phases %standard-phases |
| 957 | (add-after 'unpack 'patch-notmuch-lib.el |
| 958 | (lambda _ |
| 959 | (substitute* "emacs/notmuch-lib.el" |
| 960 | (("/bin/sh") (which "sh"))) |
| 961 | #t)) |
| 962 | (replace 'configure |
| 963 | (lambda* (#:key outputs #:allow-other-keys) |
| 964 | (setenv "CC" "gcc") |
| 965 | (setenv "CONFIG_SHELL" (which "sh")) |
| 966 | |
| 967 | (let* ((out (assoc-ref outputs "out")) |
| 968 | (elisp |
| 969 | (string-append out "/share/emacs/site-lisp/"))) |
| 970 | (invoke "./configure" |
| 971 | (string-append "--prefix=" out) |
| 972 | (string-append "--emacslispdir=" elisp) |
| 973 | (string-append "--emacsetcdir=" elisp))))) |
| 974 | (add-before 'check 'disable-failing-tests |
| 975 | ;; FIXME: Investigate why these tests are failing, |
| 976 | ;; and try removing this for notmuch versions >= 0.31. |
| 977 | (lambda _ |
| 978 | (substitute* "test/T356-protected-headers.sh" |
| 979 | (("\\$NOTMUCH_GMIME_X509_CERT_VALIDITY") "0")) |
| 980 | #t)) |
| 981 | (add-before 'check 'prepare-test-environment |
| 982 | (lambda _ |
| 983 | (setenv "TEST_CC" "gcc") |
| 984 | ;; Patch various inline shell invocations. |
| 985 | (substitute* (find-files "test" "\\.sh$") |
| 986 | (("/bin/sh") (which "sh"))) |
| 987 | #t)) |
| 988 | (add-after 'install 'make-autoloads |
| 989 | (assoc-ref emacs:%standard-phases 'make-autoloads))))) |
| 990 | (native-inputs |
| 991 | `(("bash-completion" ,bash-completion) |
| 992 | ("emacs" ,emacs-no-x) ; -minimal lacks libxml, needed for some tests |
| 993 | ("pkg-config" ,pkg-config) |
| 994 | ("python" ,python) |
| 995 | ("python-docutils" ,python-docutils) |
| 996 | ("sphinx" ,python-sphinx) |
| 997 | |
| 998 | ;; The following are required for tests only. |
| 999 | ("which" ,which) |
| 1000 | ("dtach" ,dtach) |
| 1001 | ("gnupg" ,gnupg) |
| 1002 | ("man" ,man-db) |
| 1003 | ("perl" ,perl))) |
| 1004 | (inputs |
| 1005 | `(("glib" ,glib) |
| 1006 | ("gmime" ,gmime) |
| 1007 | ("talloc" ,talloc) |
| 1008 | ("xapian" ,xapian) |
| 1009 | ("zlib" ,zlib))) |
| 1010 | (home-page "https://notmuchmail.org/") |
| 1011 | (synopsis "Thread-based email index, search, and tagging") |
| 1012 | (description |
| 1013 | "Notmuch is a command-line based program for indexing, searching, read- |
| 1014 | ing, and tagging large collections of email messages.") |
| 1015 | (license license:gpl3+))) |
| 1016 | |
| 1017 | (define-public notmuch-addrlookup-c |
| 1018 | (package |
| 1019 | (name "notmuch-addrlookup-c") |
| 1020 | (version (string-append "9")) |
| 1021 | (source (origin |
| 1022 | (method git-fetch) |
| 1023 | (uri (git-reference |
| 1024 | (url "https://github.com/aperezdc/notmuch-addrlookup-c") |
| 1025 | (commit (string-append "v" version)))) |
| 1026 | (file-name (string-append name "-" version "-checkout")) |
| 1027 | (sha256 |
| 1028 | (base32 |
| 1029 | "1j3zdx161i1x4w0nic14ix5i8hd501rb31daf8api0k8855sx4rc")))) |
| 1030 | (build-system gnu-build-system) |
| 1031 | (arguments |
| 1032 | '(#:tests? #f ; no tests |
| 1033 | #:make-flags (list "CC=gcc") |
| 1034 | #:phases (modify-phases %standard-phases |
| 1035 | (delete 'configure) |
| 1036 | ;; Remove vim code completion config, it's not needed to |
| 1037 | ;; build (or be patched). |
| 1038 | (add-before 'patch-source-shebangs 'delete-ycm-file |
| 1039 | (lambda _ (delete-file ".ycm_extra_conf.py"))) |
| 1040 | (replace 'install |
| 1041 | (lambda* (#:key outputs #:allow-other-keys) |
| 1042 | (let ((bin (string-append |
| 1043 | (assoc-ref outputs "out") "/bin"))) |
| 1044 | (install-file "notmuch-addrlookup" bin))))))) |
| 1045 | (native-inputs |
| 1046 | `(("pkg-config" ,pkg-config))) |
| 1047 | (inputs |
| 1048 | `(("glib" ,glib) |
| 1049 | ("notmuch" ,notmuch))) |
| 1050 | (home-page "https://github.com/aperezdc/notmuch-addrlookup-c") |
| 1051 | (synopsis "Address lookup tool for Notmuch") |
| 1052 | (description "This is an address lookup tool using a Notmuch database, |
| 1053 | useful for email address completion.") |
| 1054 | (license license:expat))) |
| 1055 | |
| 1056 | (define-public python-notmuch |
| 1057 | (package |
| 1058 | (name "python-notmuch") |
| 1059 | (version (package-version notmuch)) |
| 1060 | ;; Notmuch python bindings are now unavailable on pypi. The |
| 1061 | ;; bindings are distributed via the notmuch release tarball. |
| 1062 | (source (package-source notmuch)) |
| 1063 | (build-system python-build-system) |
| 1064 | (inputs `(("notmuch" ,notmuch))) |
| 1065 | (arguments |
| 1066 | `(#:tests? #f ; no "test" target |
| 1067 | #:phases |
| 1068 | (modify-phases %standard-phases |
| 1069 | ;; This python package lives in a subdirectory of the notmuch source |
| 1070 | ;; tree, so chdir into it before building. |
| 1071 | (add-after 'unpack 'enter-python-dir |
| 1072 | (lambda _ (chdir "bindings/python") #t)) |
| 1073 | ;; Make sure the correct notmuch shared library gets loaded. |
| 1074 | (add-before 'build 'set-libnotmuch-file-name |
| 1075 | (lambda* (#:key inputs #:allow-other-keys) |
| 1076 | (let ((notmuch (assoc-ref inputs "notmuch"))) |
| 1077 | (substitute* "notmuch/globals.py" |
| 1078 | (("libnotmuch\\.so\\.") |
| 1079 | (string-append notmuch "/lib/libnotmuch.so."))) |
| 1080 | #t)))))) |
| 1081 | (home-page (package-home-page notmuch)) |
| 1082 | (synopsis "Python bindings of the Notmuch mail indexing library") |
| 1083 | (description |
| 1084 | "This package provides Python bindings to use the Notmuch mail indexing |
| 1085 | and search library.") |
| 1086 | (license license:gpl3+))) |
| 1087 | |
| 1088 | (define-public python2-notmuch |
| 1089 | (package-with-python2 python-notmuch)) |
| 1090 | |
| 1091 | (define-public muchsync |
| 1092 | (package |
| 1093 | (name "muchsync") |
| 1094 | (version "5") |
| 1095 | (source |
| 1096 | (origin |
| 1097 | (method url-fetch) |
| 1098 | (uri (string-append "http://www.muchsync.org/src/" |
| 1099 | "muchsync-" version ".tar.gz")) |
| 1100 | (sha256 |
| 1101 | (base32 "1k2m44pj5i6vfhp9icdqs42chsp208llanc666p3d9nww8ngq2lb")))) |
| 1102 | (build-system gnu-build-system) |
| 1103 | (native-inputs |
| 1104 | `(("ghc-pandoc" ,ghc-pandoc) |
| 1105 | ("pkg-config" ,pkg-config))) |
| 1106 | (inputs |
| 1107 | `(("libcrypto" ,openssl) |
| 1108 | ("notmuch" ,notmuch) |
| 1109 | ("sqlite" ,sqlite) |
| 1110 | ("xapian" ,xapian))) |
| 1111 | (home-page "http://www.muchsync.org/") |
| 1112 | (synopsis "Synchronize notmuch mail across machines") |
| 1113 | (description |
| 1114 | "Muchsync brings Notmuch to all of your computers by synchronizing your |
| 1115 | mail messages and Notmuch tags across machines. The protocol is heavily |
| 1116 | pipelined to work efficiently over high-latency networks such as mobile |
| 1117 | broadband. Muchsync supports arbitrary pairwise synchronization among |
| 1118 | replicas. A version-vector-based algorithm allows it to exchange only the |
| 1119 | minimum information necessary to bring replicas up to date regardless of which |
| 1120 | pairs have previously synchronized.") |
| 1121 | (license license:gpl2+))) |
| 1122 | |
| 1123 | (define-public getmail |
| 1124 | (package |
| 1125 | (name "getmail") |
| 1126 | (version "5.14") |
| 1127 | (source |
| 1128 | (origin |
| 1129 | (method url-fetch) |
| 1130 | (uri (string-append "http://pyropus.ca/software/getmail/old-versions/" |
| 1131 | "getmail-" version ".tar.gz")) |
| 1132 | (sha256 |
| 1133 | (base32 "1hcrd9h4g12f5gvl1djsbchcjry02ghq4icdr897s8v48pkrzagk")))) |
| 1134 | (build-system python-build-system) |
| 1135 | (arguments |
| 1136 | `(#:tests? #f ; no tests |
| 1137 | #:python ,python-2)) |
| 1138 | (home-page "http://pyropus.ca/software/getmail/") |
| 1139 | (synopsis "Mail retriever") |
| 1140 | (description |
| 1141 | "A flexible, extensible mail retrieval system with support for |
| 1142 | POP3, IMAP4, SSL variants of both, maildirs, mboxrd files, external MDAs, |
| 1143 | arbitrary message filtering, single-user and domain-mailboxes, and many other |
| 1144 | useful features.") |
| 1145 | |
| 1146 | ;; License is specified in file '__init__.py'. |
| 1147 | (license license:gpl2))) |
| 1148 | |
| 1149 | (define-public libetpan |
| 1150 | (package |
| 1151 | (name "libetpan") |
| 1152 | (version "1.9.3") |
| 1153 | (source (origin |
| 1154 | (method git-fetch) |
| 1155 | (uri (git-reference |
| 1156 | (url "https://github.com/dinhviethoa/libetpan.git") |
| 1157 | (commit version))) |
| 1158 | (file-name (git-file-name name version)) |
| 1159 | (sha256 |
| 1160 | (base32 "19g4qskg71jv7sxfxsdkjmrxk9mk5kf9b6fhw06g6wvm3205n95f")))) |
| 1161 | (build-system gnu-build-system) |
| 1162 | (native-inputs `(("autoconf" ,autoconf-wrapper) |
| 1163 | ("automake" ,automake) |
| 1164 | ("libtool" ,libtool) |
| 1165 | ("pkg-config" ,pkg-config))) |
| 1166 | (propagated-inputs |
| 1167 | ;; 'libetpan-config --libs' returns '-lssl -lcrypto -lsasl2', so these |
| 1168 | ;; libraries need to be propagated. |
| 1169 | `(("cyrus-sasl" ,cyrus-sasl) |
| 1170 | ("openssl" ,openssl))) |
| 1171 | (inputs |
| 1172 | `(("curl" ,curl) |
| 1173 | ("expat" ,expat) |
| 1174 | ("zlib" ,zlib))) |
| 1175 | (arguments |
| 1176 | '(#:configure-flags |
| 1177 | '("--disable-static" "--disable-db"))) |
| 1178 | (home-page "https://www.etpan.org/libetpan.html") |
| 1179 | (synopsis "Portable middleware for email access") |
| 1180 | (description |
| 1181 | "The purpose of this mail library is to provide a portable, efficient |
| 1182 | framework for different kinds of mail access: IMAP, SMTP, POP and NNTP. It |
| 1183 | provides an API for C language. It's the low-level API used by MailCore and |
| 1184 | MailCore 2.") |
| 1185 | (license license:bsd-3))) |
| 1186 | |
| 1187 | (define-public compface |
| 1188 | (package |
| 1189 | (name "compface") |
| 1190 | (version "1.5.2") |
| 1191 | (source (origin |
| 1192 | (method url-fetch) |
| 1193 | (uri (string-append "https://ftp.heanet.ie/mirrors/" |
| 1194 | "ftp.xemacs.org/aux/" |
| 1195 | "compface-" version ".tar.gz")) |
| 1196 | (sha256 |
| 1197 | (base32 |
| 1198 | "09b89wg63hg502hsz592cd2h87wdprb1dq1k1y07n89hym2q56d6")))) |
| 1199 | (build-system gnu-build-system) |
| 1200 | (arguments |
| 1201 | `(#:tests? #f)) |
| 1202 | (synopsis "Portrait image compressor") |
| 1203 | (description "This package takes your 48x48x1 portrait image and |
| 1204 | compresses it.") |
| 1205 | (home-page "https://legacy.cs.indiana.edu/ftp/faces/") |
| 1206 | (license (license:x11-style "file://README")))) |
| 1207 | |
| 1208 | (define-public claws-mail |
| 1209 | (package |
| 1210 | (name "claws-mail") |
| 1211 | (version "3.17.6") |
| 1212 | (source (origin |
| 1213 | (method url-fetch) |
| 1214 | (uri (string-append |
| 1215 | "https://www.claws-mail.org/releases/claws-mail-" version |
| 1216 | ".tar.xz")) |
| 1217 | (sha256 |
| 1218 | (base32 |
| 1219 | "1s05qw0r0gqwvvkxvrrwbjkbi61dvilixiwrpgcq21qc9csc9r0m")))) |
| 1220 | (build-system gnu-build-system) |
| 1221 | (native-inputs `(("pkg-config" ,pkg-config))) |
| 1222 | (inputs `(("bogofilter" ,bogofilter) |
| 1223 | ("curl" ,curl) |
| 1224 | ("dbus-glib" ,dbus-glib) |
| 1225 | ("enchant" ,enchant) |
| 1226 | ("expat" ,expat) |
| 1227 | ("ghostscript" ,ghostscript) |
| 1228 | ("hicolor-icon-theme" ,hicolor-icon-theme) |
| 1229 | ("gnupg" ,gnupg) |
| 1230 | ("gnutls" ,gnutls) |
| 1231 | ("gpgme" ,gpgme) |
| 1232 | ("gtk" ,gtk+-2) |
| 1233 | ("libarchive" ,libarchive) |
| 1234 | ("libcanberra" ,libcanberra) |
| 1235 | ("libetpan" ,libetpan) |
| 1236 | ("libical" ,libical) |
| 1237 | ("libnotify" ,libnotify) |
| 1238 | ("libsm" ,libsm) |
| 1239 | ("libxml2" ,libxml2) |
| 1240 | ("perl" ,perl) |
| 1241 | ("python-2" ,python-2) |
| 1242 | ("mime-info" ,shared-mime-info) |
| 1243 | ("startup-notification" ,startup-notification))) |
| 1244 | (arguments |
| 1245 | '(#:configure-flags |
| 1246 | '("--enable-gnutls" "--enable-pgpmime-plugin" "--enable-enchant" |
| 1247 | "--enable-ldap") |
| 1248 | #:make-flags |
| 1249 | ;; Disable updating icon cache since it's done by the profile hook. |
| 1250 | ;; Conflict with other packages in the profile would be inevitable |
| 1251 | ;; otherwise. |
| 1252 | '("gtk_update_icon_cache=true") |
| 1253 | #:phases (modify-phases %standard-phases |
| 1254 | (add-before 'build 'patch-mime |
| 1255 | (lambda* (#:key inputs #:allow-other-keys) |
| 1256 | (substitute* "src/procmime.c" |
| 1257 | (("/usr/share/mime/globs") |
| 1258 | (string-append (assoc-ref inputs "mime-info") |
| 1259 | "/share/mime/globs")))))))) |
| 1260 | (synopsis "GTK-based Email client") |
| 1261 | (description |
| 1262 | "Claws-Mail is an email client (and news reader) based on GTK+. The |
| 1263 | appearance and interface are designed to be familiar to new users coming from |
| 1264 | other popular email clients, as well as experienced users. Almost all commands |
| 1265 | are accessible with the keyboard. Plus, Claws-Mail is extensible via addons |
| 1266 | which can add many functionalities to the base client.") |
| 1267 | (home-page "https://www.claws-mail.org/") |
| 1268 | (license license:gpl3+))) ; most files are actually public domain or x11 |
| 1269 | |
| 1270 | (define-public msmtp |
| 1271 | (package |
| 1272 | (name "msmtp") |
| 1273 | (version "1.8.12") |
| 1274 | (source |
| 1275 | (origin |
| 1276 | (method url-fetch) |
| 1277 | (uri (string-append "https://marlam.de/msmtp/releases/" |
| 1278 | "/msmtp-" version ".tar.xz")) |
| 1279 | (sha256 |
| 1280 | (base32 "0m33m5bc7ajmgy7vivnzj3mhybg37259hx79xypj769kfyafyvx8")))) |
| 1281 | (build-system gnu-build-system) |
| 1282 | (inputs |
| 1283 | `(("libsecret" ,libsecret) |
| 1284 | ("gnutls" ,gnutls) |
| 1285 | ("zlib" ,zlib) |
| 1286 | ("gsasl" ,gsasl))) |
| 1287 | (native-inputs |
| 1288 | `(("pkg-config" ,pkg-config))) |
| 1289 | (home-page "https://marlam.de/msmtp/") |
| 1290 | (arguments |
| 1291 | `(#:configure-flags (list "--with-libgsasl" |
| 1292 | "--with-libidn" |
| 1293 | "--with-tls=gnutls") |
| 1294 | #:phases |
| 1295 | (modify-phases %standard-phases |
| 1296 | (add-after 'install 'install-additional-files |
| 1297 | (lambda* (#:key outputs #:allow-other-keys) |
| 1298 | (let* ((out (assoc-ref outputs "out")) |
| 1299 | (bin (string-append out "/bin")) |
| 1300 | (doc (string-append out "/share/doc/msmtp")) |
| 1301 | (msmtpq "scripts/msmtpq") |
| 1302 | (vimfiles (string-append out "/share/vim/vimfiles/plugin"))) |
| 1303 | (install-file (string-append msmtpq "/msmtpq") bin) |
| 1304 | (install-file (string-append msmtpq "/msmtp-queue") bin) |
| 1305 | (install-file (string-append msmtpq "/README.msmtpq") doc) |
| 1306 | (install-file "scripts/vim/msmtp.vim" vimfiles) |
| 1307 | ;; Don't rely on netcat being in the PATH to test for a |
| 1308 | ;; connection, instead try tp ing debian.org. |
| 1309 | (substitute* (string-append bin "/msmtpq") |
| 1310 | (("EMAIL_CONN_TEST=n") "EMAIL_CONN_TEST=p")) |
| 1311 | #t)))))) |
| 1312 | (synopsis |
| 1313 | "Simple and easy to use SMTP client with decent sendmail compatibility") |
| 1314 | (description |
| 1315 | "msmtp is an SMTP client. In the default mode, it transmits a mail to |
| 1316 | an SMTP server (for example at a free mail provider) which takes care of further |
| 1317 | delivery.") |
| 1318 | (license license:gpl3+))) |
| 1319 | |
| 1320 | (define-public exim |
| 1321 | (package |
| 1322 | (name "exim") |
| 1323 | (version "4.94") |
| 1324 | (source |
| 1325 | (origin |
| 1326 | (method url-fetch) |
| 1327 | (uri (let ((file-name (string-append "exim-" version ".tar.xz"))) |
| 1328 | (list (string-append "https://ftp.exim.org/pub/exim/exim4/" |
| 1329 | file-name) |
| 1330 | ;; ‘Fix’ releases (exim-x.y.z.f) are kept separately. |
| 1331 | (string-append "https://ftp.exim.org/pub/exim/exim4/fixes/" |
| 1332 | file-name) |
| 1333 | ;; After a new non-fix release, the old one is moved here. |
| 1334 | (string-append "https://ftp.exim.org/pub/exim/exim4/old/" |
| 1335 | file-name)))) |
| 1336 | (sha256 |
| 1337 | (base32 "1nsb2i5mqxfz1sl1bmbxmpb2qiaf3wffhfiw4j9vfpagy3xfhzpp")))) |
| 1338 | (build-system gnu-build-system) |
| 1339 | (inputs |
| 1340 | `(("bdb" ,bdb-5.3) ; ‘#error Version 6 and later BDB API is not supported’ |
| 1341 | ("gnutls" ,gnutls/dane) |
| 1342 | ("gzip" ,gzip) |
| 1343 | ("bzip2" ,bzip2) |
| 1344 | ("xz" ,xz) |
| 1345 | ("perl" ,perl) |
| 1346 | ("libnsl" ,libnsl) |
| 1347 | ("libxt" ,libxt) |
| 1348 | ("libxaw" ,libxaw))) |
| 1349 | (native-inputs |
| 1350 | `(("pcre" ,pcre "bin") |
| 1351 | ("perl" ,perl) |
| 1352 | ("pkg-config" ,pkg-config))) |
| 1353 | (arguments |
| 1354 | '(#:phases |
| 1355 | (modify-phases %standard-phases |
| 1356 | (replace 'configure |
| 1357 | ;; We'd use #:make-flags but the top-level Makefile calls others |
| 1358 | ;; recursively, so just set all variables this way. |
| 1359 | (lambda* (#:key outputs inputs #:allow-other-keys) |
| 1360 | (substitute* '("Makefile" "OS/Makefile-Default") |
| 1361 | (("(RM_COMMAND=).*" all var) |
| 1362 | (string-append var "rm\n"))) |
| 1363 | (copy-file "src/EDITME" "Local/Makefile") |
| 1364 | (copy-file "exim_monitor/EDITME" "Local/eximon.conf") |
| 1365 | (let ((out (assoc-ref outputs "out")) |
| 1366 | (gzip (assoc-ref inputs "gzip")) |
| 1367 | (bzip2 (assoc-ref inputs "bzip2")) |
| 1368 | (xz (assoc-ref inputs "xz"))) |
| 1369 | (substitute* '("Local/Makefile") |
| 1370 | (("(BIN_DIRECTORY=).*" all var) |
| 1371 | (string-append var out "/bin\n")) |
| 1372 | (("(CONFIGURE_FILE=).*" all var) |
| 1373 | (string-append var out "/etc/exim.conf\n")) |
| 1374 | (("(EXIM_USER=).*" all var) |
| 1375 | (string-append var "nobody\n")) |
| 1376 | (("(FIXED_NEVER_USERS=).*" all var) |
| 1377 | (string-append var "\n")) ; XXX no root in build environment |
| 1378 | (("(COMPRESS_COMMAND=).*" all var) |
| 1379 | (string-append var gzip "/bin/gzip\n")) |
| 1380 | (("(ZCAT_COMMAND=).*" all var) |
| 1381 | (string-append var gzip "/bin/zcat\n")) |
| 1382 | (("# (USE_GNUTLS(|_PC)=.*)" all line) |
| 1383 | (string-append line "\n"))) |
| 1384 | ;; This file has hard-coded relative file names for tools despite |
| 1385 | ;; the zcat configuration above. |
| 1386 | (substitute* '("src/exigrep.src") |
| 1387 | (("'zcat'") (string-append "'" gzip "/bin/zcat'")) |
| 1388 | (("'bzcat'") (string-append "'" bzip2 "/bin/bzcat'")) |
| 1389 | (("'xzcat'") (string-append "'" xz "/bin/xzcat'")) |
| 1390 | (("'lzma'") (string-append "'" xz "/bin/lzma'")))) |
| 1391 | #t)) |
| 1392 | (add-before 'build 'fix-sh-paths |
| 1393 | (lambda* (#:key inputs #:allow-other-keys) |
| 1394 | (substitute* '("scripts/lookups-Makefile" "scripts/reversion") |
| 1395 | (("SHELL=/bin/sh") "SHELL=sh")) |
| 1396 | (substitute* '("scripts/Configure-config.h") |
| 1397 | (("\\| /bin/sh") "| sh")) |
| 1398 | (let ((bash (assoc-ref inputs "bash"))) |
| 1399 | (substitute* '("scripts/Configure-eximon") |
| 1400 | (("#!/bin/sh") (string-append "#!" bash "/bin/sh")))) |
| 1401 | #t)) |
| 1402 | (add-before 'build 'build-reproducibly |
| 1403 | (lambda _ |
| 1404 | ;; The ‘compilation number’ is incremented for every build from the |
| 1405 | ;; same source tree. It appears to vary over different (parallel?) |
| 1406 | ;; builds. Make it a ‘constant number’ instead. |
| 1407 | (substitute* "src/version.c" |
| 1408 | (("#include \"cnumber.h\"") "1"))))) |
| 1409 | #:make-flags |
| 1410 | (list "CC=gcc" |
| 1411 | "INSTALL_ARG=-no_chown") |
| 1412 | ;; No 'check' target. There is a test suite in test/, which assumes that |
| 1413 | ;; certain build options were (not) used and that it can freely ‘sudo’. |
| 1414 | #:tests? #f)) |
| 1415 | (home-page "https://www.exim.org/") |
| 1416 | (synopsis |
| 1417 | "Message Transfer Agent (MTA) developed at the University of Cambridge") |
| 1418 | (description |
| 1419 | "Exim is a message transfer agent (MTA) developed at the University of |
| 1420 | Cambridge for use on Unix systems connected to the Internet. In style it is |
| 1421 | similar to Smail 3, but its facilities are more general. There is a great |
| 1422 | deal of flexibility in the way mail can be routed, and there are extensive |
| 1423 | facilities for checking incoming mail.") |
| 1424 | (license license:gpl2+))) |
| 1425 | |
| 1426 | (define-public dovecot |
| 1427 | (package |
| 1428 | (name "dovecot") |
| 1429 | ;; Also update dovecot-pigeonhole when updating to a new minor version. |
| 1430 | (version "2.3.11.3") |
| 1431 | (source |
| 1432 | (origin |
| 1433 | (method url-fetch) |
| 1434 | (uri (string-append "https://www.dovecot.org/releases/" |
| 1435 | (version-major+minor version) "/" |
| 1436 | "dovecot-" version ".tar.gz")) |
| 1437 | (sha256 |
| 1438 | (base32 "1p5gp8jbavcsaara5mfn5cbrnlxssajnchczbgmmfzr7228fmnfk")))) |
| 1439 | (build-system gnu-build-system) |
| 1440 | (native-inputs |
| 1441 | `(("pkg-config" ,pkg-config))) |
| 1442 | (inputs |
| 1443 | `(("bzip2" ,bzip2) |
| 1444 | ("clucene" ,clucene) |
| 1445 | ("icu4c" ,icu4c) |
| 1446 | ("libsodium" ,libsodium) ; extra password algorithms |
| 1447 | ("libstemmer" ,libstemmer) |
| 1448 | ;; FIXME: The 'test-backtrace' tests fail on arm when using glibc's |
| 1449 | ;; backtrace_symbol() function so fallback to using libunwind. |
| 1450 | ,@(if (target-arm?) |
| 1451 | `(("libunwind" ,libunwind)) |
| 1452 | '()) |
| 1453 | ("linux-pam" ,linux-pam) |
| 1454 | ("lz4" ,lz4) |
| 1455 | ("openssl" ,openssl) |
| 1456 | ("sqlite" ,sqlite) |
| 1457 | ("zlib" ,zlib) |
| 1458 | ("zstd" ,zstd "lib"))) |
| 1459 | (arguments |
| 1460 | `(#:configure-flags '("--sysconfdir=/etc" |
| 1461 | "--localstatedir=/var" |
| 1462 | "--with-sqlite" ; not auto-detected |
| 1463 | "--with-lucene") ; not auto-detected |
| 1464 | #:phases |
| 1465 | (modify-phases %standard-phases |
| 1466 | (add-after 'unpack 'patch-file-names |
| 1467 | (lambda _ |
| 1468 | (substitute* "src/lib-program-client/test-program-client-local.c" |
| 1469 | (("(/bin/| )cat") (which "cat")) |
| 1470 | (("/bin/echo") (which "echo")) |
| 1471 | (("/bin/false") (which "false")) |
| 1472 | (("/bin/sh") (which "bash")) |
| 1473 | (("head") (which "head")) |
| 1474 | (("sleep") (which "sleep"))) |
| 1475 | (substitute* (list "src/lib-smtp/test-bin/sendmail-exit-1.sh" |
| 1476 | "src/lib-smtp/test-bin/sendmail-success.sh") |
| 1477 | (("cat") (which "cat"))) |
| 1478 | #t)) |
| 1479 | (replace 'install |
| 1480 | (lambda* (#:key make-flags #:allow-other-keys) |
| 1481 | ;; Simple hack to avoid installing a trivial README in /etc. |
| 1482 | (apply invoke "make" "install" "sysconfdir=/tmp/bogus" |
| 1483 | make-flags)))))) |
| 1484 | (home-page "https://www.dovecot.org") |
| 1485 | (synopsis "Secure POP3/IMAP server") |
| 1486 | (description |
| 1487 | "Dovecot is a mail server whose major goals are security and reliability. |
| 1488 | It supports mbox/Maildir and its own dbox/mdbox formats.") |
| 1489 | ;; Most source files are covered by either lgpl2.1 or expat. The SHA code |
| 1490 | ;; is covered by a variant of BSD-3, and UnicodeData.txt is covered by the |
| 1491 | ;; Unicode, Inc. License Agreement for Data Files and Software. |
| 1492 | (license (list license:lgpl2.1 license:expat |
| 1493 | (license:non-copyleft "file://COPYING"))))) |
| 1494 | |
| 1495 | (define-public dovecot-pigeonhole |
| 1496 | (let ((dovecot-version (version-major+minor (package-version dovecot)))) |
| 1497 | (package |
| 1498 | (name "dovecot-pigeonhole") |
| 1499 | (version "0.5.11") |
| 1500 | (source |
| 1501 | (origin |
| 1502 | (method url-fetch) |
| 1503 | (uri (string-append |
| 1504 | "https://pigeonhole.dovecot.org/releases/" dovecot-version "/" |
| 1505 | "dovecot-" dovecot-version "-pigeonhole-" version ".tar.gz")) |
| 1506 | (sha256 |
| 1507 | (base32 "1w5mryv6izh1gv7davnl94rb0pvh5bxl2bydzbfla1b83x22m5qb")) |
| 1508 | (modules '((guix build utils))) |
| 1509 | (snippet |
| 1510 | '(begin |
| 1511 | ;; RFC licencing is ad-hoc and rarely free. Remove them all. |
| 1512 | (delete-file-recursively "doc/rfc") |
| 1513 | (substitute* "configure" |
| 1514 | (("doc/rfc/Makefile") "")) |
| 1515 | (substitute* "doc/Makefile.in" |
| 1516 | (("rfc ") "")) |
| 1517 | #t)))) |
| 1518 | (build-system gnu-build-system) |
| 1519 | (arguments |
| 1520 | `(#:configure-flags |
| 1521 | (list "--disable-static" |
| 1522 | "--with-dovecot-install-dirs=no" |
| 1523 | (string-append "--with-dovecot=" |
| 1524 | (assoc-ref %build-inputs "dovecot") |
| 1525 | "/lib/dovecot") |
| 1526 | (string-append "--docdir=" |
| 1527 | (assoc-ref %outputs "out") |
| 1528 | "/share/doc/" ,name "-" ,version) |
| 1529 | (string-append "--with-moduledir=" |
| 1530 | (assoc-ref %outputs "out") |
| 1531 | "/lib/dovecot")) |
| 1532 | #:phases |
| 1533 | (modify-phases %standard-phases |
| 1534 | (add-after 'unpack 'patch-file-names |
| 1535 | (lambda* (#:key outputs #:allow-other-keys) |
| 1536 | (let* ((out (assoc-ref outputs "out")) |
| 1537 | (libexec (string-append out "/libexec/dovecot"))) |
| 1538 | (substitute* "src/managesieve/managesieve-settings.c" |
| 1539 | (("\\.executable = \"managesieve\"") |
| 1540 | (string-append ".executable = \"" libexec |
| 1541 | "/managesieve\""))) |
| 1542 | (substitute* "src/managesieve-login/managesieve-login-settings.c" |
| 1543 | (("\\.executable = \"managesieve-login\"") |
| 1544 | (string-append ".executable = \"" libexec |
| 1545 | "/managesieve-login\""))) |
| 1546 | #t)))))) |
| 1547 | (native-inputs |
| 1548 | `(("pkg-config" ,pkg-config))) |
| 1549 | (inputs |
| 1550 | `(("dovecot" ,dovecot))) |
| 1551 | (home-page "https://pigeonhole.dovecot.org") |
| 1552 | (synopsis "Dovecot Sieve mail filtering plug-in and ManageSieve service") |
| 1553 | (description |
| 1554 | "Pigeonhole adds support for the Sieve language (RFC 5228) and the |
| 1555 | ManageSieve protocol (RFC 5804) to the Dovecot e-mail server. |
| 1556 | |
| 1557 | @dfn{Sieve} is a language for filtering incoming mail. Messages can be |
| 1558 | forwarded or sorted into separate folders. Unwanted messages can be rejected |
| 1559 | or discarded, and, when the user is not available, the Sieve interpreter can |
| 1560 | send an automated reply. |
| 1561 | |
| 1562 | Sieve is meant to be simple, extensible, and system-independent. The |
| 1563 | intention is to make it impossible to write anything more complex (and |
| 1564 | dangerous) than simple mail filters. Unlike most other mail filtering script |
| 1565 | languages, Sieve does not allow users to execute arbitrary programmes. |
| 1566 | |
| 1567 | Through the @dfn{ManageSieve} protocol, users can remotely manage their Sieve |
| 1568 | scripts without needing file system access. The server accepts only valid |
| 1569 | scripts to prevent embarrassing errors later on.") |
| 1570 | (license license:lgpl2.1)))) |
| 1571 | |
| 1572 | (define-public dovecot-trees |
| 1573 | (package |
| 1574 | (name "dovecot-trees") |
| 1575 | (version "2.1.0") |
| 1576 | (source |
| 1577 | (origin |
| 1578 | (method url-fetch) |
| 1579 | (uri (string-append "https://0xacab.org/riseuplabs/trees/repository/" |
| 1580 | "archive.tar.gz?ref=v" version)) |
| 1581 | (file-name (string-append name "-" version ".tar.gz")) |
| 1582 | (sha256 |
| 1583 | (base32 |
| 1584 | "0rkk10b1bsjz979sc864vpgcdchy7yxwmyv4ik50lar1h6awdnrf")) |
| 1585 | (patches |
| 1586 | (search-patches "dovecot-trees-support-dovecot-2.3.patch")))) |
| 1587 | (build-system gnu-build-system) |
| 1588 | (native-inputs |
| 1589 | `(("automake" ,automake) |
| 1590 | ("autoconf" ,autoconf) |
| 1591 | ("libtool" ,libtool) |
| 1592 | ("dovecot" ,dovecot) |
| 1593 | ("pkg-config" ,pkg-config))) |
| 1594 | (inputs |
| 1595 | `(("libsodium" ,libsodium))) |
| 1596 | (arguments |
| 1597 | `(#:tests? #f ;No tests exist. |
| 1598 | #:configure-flags (list (string-append "--with-dovecot=" |
| 1599 | (assoc-ref %build-inputs "dovecot") |
| 1600 | "/lib/dovecot")))) |
| 1601 | (home-page "https://0xacab.org/riseuplabs/trees") |
| 1602 | (synopsis "NaCL-based Dovecot email storage encryption plugin") |
| 1603 | (description |
| 1604 | "Technology for Resting Email Encrypted Storage (TREES) is a NaCL-based |
| 1605 | Dovecot encryption plugin. This plugin adds individually encrypted mail |
| 1606 | storage to the Dovecot IMAP server. It is inspired by Posteo's scrambler |
| 1607 | which uses OpenSSL and RSA keypairs. TREES works in a similar way, but uses |
| 1608 | the Sodium crypto library (based on NaCL). |
| 1609 | |
| 1610 | How it works: |
| 1611 | @enumerate |
| 1612 | @item On IMAP log in, the user's cleartext password is passed to the plugin. |
| 1613 | @item The plugin creates an argon2 digest from the password. |
| 1614 | @item This password digest is used as a symmetric secret to decrypt a libsodium secretbox. |
| 1615 | @item Inside the secretbox is stored a Curve25519 private key. |
| 1616 | @item The Curve25519 private key is used to decrypt each individual message, |
| 1617 | using libsodium sealed boxes. |
| 1618 | @item New mail is encrypted as it arrives using the Curve25519 public key. |
| 1619 | @end enumerate\n") |
| 1620 | (license license:agpl3))) |
| 1621 | |
| 1622 | (define-public dovecot-libsodium-plugin |
| 1623 | (let ((commit "044de73c01c35385df0105f6b387bec5d5317ce7") |
| 1624 | (revision "1")) |
| 1625 | (package |
| 1626 | (name "dovecot-libsodium-plugin") |
| 1627 | (version (string-append "0.0.0-" revision "." (string-take commit 7))) |
| 1628 | (source |
| 1629 | (origin |
| 1630 | (method git-fetch) |
| 1631 | (uri (git-reference |
| 1632 | (url "https://github.com/LuckyFellow/dovecot-libsodium-plugin") |
| 1633 | (commit commit))) |
| 1634 | (file-name (string-append name "-" version "-checkout")) |
| 1635 | (sha256 |
| 1636 | (base32 |
| 1637 | "13h07l7xy713zchnj2p9fhvq7fdl4zy1ai94li3ygkqjjj8hrgas")))) |
| 1638 | (build-system gnu-build-system) |
| 1639 | (native-inputs |
| 1640 | `(("automake" ,automake) |
| 1641 | ("autoconf" ,autoconf) |
| 1642 | ("libtool" ,libtool) |
| 1643 | ("dovecot" ,dovecot) |
| 1644 | ("pkg-config" ,pkg-config))) |
| 1645 | (inputs |
| 1646 | `(("libsodium" ,libsodium))) |
| 1647 | (arguments |
| 1648 | `(#:tests? #f ;No tests exist. |
| 1649 | #:configure-flags (list (string-append "--with-dovecot=" |
| 1650 | (assoc-ref %build-inputs "dovecot") |
| 1651 | "/lib/dovecot")))) |
| 1652 | (home-page "https://github.com/LuckyFellow/dovecot-libsodium-plugin") |
| 1653 | (synopsis "Libsodium password hashing schemes plugin for Dovecot") |
| 1654 | (description |
| 1655 | "@code{dovecot-libsodium-plugin} provides a libsodium password |
| 1656 | hashing scheme (such as scrypt) plug-in for @code{Dovecot}.") |
| 1657 | (license license:gpl3+)))) |
| 1658 | |
| 1659 | (define-public isync |
| 1660 | (package |
| 1661 | (name "isync") |
| 1662 | (version "1.3.3") |
| 1663 | (source |
| 1664 | (origin |
| 1665 | (method url-fetch) |
| 1666 | (uri (string-append "mirror://sourceforge/isync/isync/" |
| 1667 | version "/isync-" version ".tar.gz")) |
| 1668 | (sha256 (base32 |
| 1669 | "10n8ykag0q3ws6fc15xqyg3v980v5nq3kzpablly2rh2z7vkn8gj")))) |
| 1670 | (build-system gnu-build-system) |
| 1671 | (native-inputs |
| 1672 | `(("perl" ,perl))) |
| 1673 | (inputs |
| 1674 | `(("bdb" ,bdb) |
| 1675 | ("cyrus-sasl" ,cyrus-sasl) |
| 1676 | ("openssl" ,openssl-1.0) |
| 1677 | ("zlib" ,zlib))) |
| 1678 | (home-page "https://isync.sourceforge.io/") |
| 1679 | (synopsis "Mailbox synchronization program") |
| 1680 | (description |
| 1681 | "isync/mbsync is a command-line tool for two-way synchronization of |
| 1682 | mailboxes. Currently Maildir and IMAP are supported types.") |
| 1683 | (license license:gpl2+))) |
| 1684 | |
| 1685 | (define-public perl-email-abstract |
| 1686 | (package |
| 1687 | (name "perl-email-abstract") |
| 1688 | (version "3.008") |
| 1689 | (source |
| 1690 | (origin |
| 1691 | (method url-fetch) |
| 1692 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" |
| 1693 | "Email-Abstract-" version ".tar.gz")) |
| 1694 | (sha256 |
| 1695 | (base32 |
| 1696 | "0h42rhvp769wb421cpbbg6v6xjp8iv86mvz70pqgfgf4nsn6jwgw")))) |
| 1697 | (build-system perl-build-system) |
| 1698 | (propagated-inputs |
| 1699 | `(("perl-email-simple" ,perl-email-simple) |
| 1700 | ("perl-module-pluggable" ,perl-module-pluggable) |
| 1701 | ("perl-mro-compat" ,perl-mro-compat))) |
| 1702 | (home-page "https://metacpan.org/release/Email-Abstract") |
| 1703 | (synopsis "Interface to mail representations") |
| 1704 | (description "Email::Abstract provides module writers with the ability to |
| 1705 | write simple, representation-independent mail handling code.") |
| 1706 | (license license:perl-license))) |
| 1707 | |
| 1708 | (define-public perl-email-address |
| 1709 | (package |
| 1710 | (name "perl-email-address") |
| 1711 | (version "1.912") |
| 1712 | (source |
| 1713 | (origin |
| 1714 | (method url-fetch) |
| 1715 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" |
| 1716 | "Email-Address-" version ".tar.gz")) |
| 1717 | (sha256 |
| 1718 | (base32 "1vzr0vx4zsw4zbc9xdffc31wnkc1raqmyfiyws06fbyck197i8qg")))) |
| 1719 | (build-system perl-build-system) |
| 1720 | (home-page "https://metacpan.org/release/Email-Address") |
| 1721 | (synopsis "Email address parsing and creation") |
| 1722 | (description "Email::Address implements a regex-based RFC 2822 parser that |
| 1723 | locates email addresses in strings and returns a list of Email::Address |
| 1724 | objects found. Alternatively you may construct objects manually.") |
| 1725 | (license license:perl-license))) |
| 1726 | |
| 1727 | (define-public perl-email-address-xs |
| 1728 | (package |
| 1729 | (name "perl-email-address-xs") |
| 1730 | (version "1.04") |
| 1731 | (source |
| 1732 | (origin |
| 1733 | (method url-fetch) |
| 1734 | (uri (string-append "mirror://cpan/authors/id/P/PA/PALI/" |
| 1735 | "Email-Address-XS-" version ".tar.gz")) |
| 1736 | (sha256 |
| 1737 | (base32 |
| 1738 | "0gjrrl81z3sfwavgx5kwjd87gj44mlnbbqsm3dgdv1xllw26spwr")))) |
| 1739 | (build-system perl-build-system) |
| 1740 | (home-page "https://metacpan.org/release/Email-Address-XS") |
| 1741 | (synopsis "Parse and format RFC 5322 email addresses and groups") |
| 1742 | (description |
| 1743 | "Email::Address::XS implements RFC 5322 parser and formatter of email |
| 1744 | addresses and groups. Unlike Email::Address, this module does not use regular |
| 1745 | expressions for parsing but instead is implemented in XS and uses shared code |
| 1746 | from Dovecot IMAP server.") |
| 1747 | (license license:perl-license))) |
| 1748 | |
| 1749 | (define-public perl-email-date-format |
| 1750 | (package |
| 1751 | (name "perl-email-date-format") |
| 1752 | (version "1.005") |
| 1753 | (source |
| 1754 | (origin |
| 1755 | (method url-fetch) |
| 1756 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" |
| 1757 | "Email-Date-Format-" version ".tar.gz")) |
| 1758 | (sha256 |
| 1759 | (base32 |
| 1760 | "012ivfwpnbl3wr50f9c6f4azhdlxnm31pdn72528g79v61z6372p")))) |
| 1761 | (build-system perl-build-system) |
| 1762 | (home-page "https://metacpan.org/release/Email-Date-Format") |
| 1763 | (synopsis "Produce RFC 2822 date strings") |
| 1764 | (description "Email::Date::Format provides a means for generating an RFC |
| 1765 | 2822 compliant datetime string.") |
| 1766 | (license license:perl-license))) |
| 1767 | |
| 1768 | (define-public perl-email-messageid |
| 1769 | (package |
| 1770 | (name "perl-email-messageid") |
| 1771 | (version "1.406") |
| 1772 | (source |
| 1773 | (origin |
| 1774 | (method url-fetch) |
| 1775 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" |
| 1776 | "Email-MessageID-" version ".tar.gz")) |
| 1777 | (sha256 |
| 1778 | (base32 |
| 1779 | "1f22sdnfq169qw1l0lg7y74pmiam7j9v95bggjnf3q4mygdmshpc")))) |
| 1780 | (build-system perl-build-system) |
| 1781 | (home-page "https://metacpan.org/release/Email-MessageID") |
| 1782 | (synopsis "Generate world unique message-ids") |
| 1783 | (description "Email::MessageID generates recommended message-ids to |
| 1784 | identify a message uniquely.") |
| 1785 | (license license:perl-license))) |
| 1786 | |
| 1787 | (define-public perl-email-mime |
| 1788 | (package |
| 1789 | (name "perl-email-mime") |
| 1790 | (version "1.946") |
| 1791 | (source |
| 1792 | (origin |
| 1793 | (method url-fetch) |
| 1794 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" |
| 1795 | "Email-MIME-" version ".tar.gz")) |
| 1796 | (sha256 |
| 1797 | (base32 |
| 1798 | "0z1k3i0lzp2k421gc8f3wq0jbqflkbw2xqd2k7n7pmv56417kvk8")))) |
| 1799 | (build-system perl-build-system) |
| 1800 | (propagated-inputs |
| 1801 | `(("perl-email-address" ,perl-email-address) |
| 1802 | ("perl-email-messageid" ,perl-email-messageid) |
| 1803 | ("perl-email-mime-contenttype" ,perl-email-mime-contenttype) |
| 1804 | ("perl-email-mime-encodings" ,perl-email-mime-encodings) |
| 1805 | ("perl-email-simple" ,perl-email-simple) |
| 1806 | ("perl-mime-types" ,perl-mime-types) |
| 1807 | ("perl-module-runtime" ,perl-module-runtime))) |
| 1808 | (home-page "https://metacpan.org/release/Email-MIME") |
| 1809 | (synopsis "MIME message handling") |
| 1810 | (description "Email::MIME is an extension of the Email::Simple module, to |
| 1811 | handle MIME encoded messages. It takes a message as a string, splits it up |
| 1812 | into its constituent parts, and allows you access to various parts of the |
| 1813 | message. Headers are decoded from MIME encoding.") |
| 1814 | (license license:perl-license))) |
| 1815 | |
| 1816 | (define-public perl-email-mime-contenttype |
| 1817 | (package |
| 1818 | (name "perl-email-mime-contenttype") |
| 1819 | (version "1.022") |
| 1820 | (source |
| 1821 | (origin |
| 1822 | (method url-fetch) |
| 1823 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" |
| 1824 | "Email-MIME-ContentType-" version ".tar.gz")) |
| 1825 | (sha256 |
| 1826 | (base32 |
| 1827 | "042kxhs3bp1ab9z0mbr1wy21ld4lxd6v2a2mmrashqnsn2075fws")))) |
| 1828 | (build-system perl-build-system) |
| 1829 | (native-inputs |
| 1830 | `(("perl-capture-tiny" ,perl-capture-tiny))) |
| 1831 | (home-page "https://metacpan.org/release/Email-MIME-ContentType") |
| 1832 | (synopsis "Parse MIME Content-Type headers") |
| 1833 | (description "Email::MIME::ContentType parses a MIME Content-Type |
| 1834 | header.") |
| 1835 | (license license:perl-license))) |
| 1836 | |
| 1837 | (define-public perl-email-mime-encodings |
| 1838 | (package |
| 1839 | (name "perl-email-mime-encodings") |
| 1840 | (version "1.315") |
| 1841 | (source |
| 1842 | (origin |
| 1843 | (method url-fetch) |
| 1844 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" |
| 1845 | "Email-MIME-Encodings-" version ".tar.gz")) |
| 1846 | (sha256 |
| 1847 | (base32 |
| 1848 | "0p5b8g9gh35m8fqrpx60g4bp98rvwd02n5b0vm9wh7mk0xah8wac")))) |
| 1849 | (build-system perl-build-system) |
| 1850 | (native-inputs |
| 1851 | `(("perl-capture-tiny" ,perl-capture-tiny))) |
| 1852 | (home-page "https://metacpan.org/release/Email-MIME-Encodings") |
| 1853 | (synopsis "Unified interface to MIME encoding and decoding") |
| 1854 | (description "This module wraps MIME::Base64 and MIME::QuotedPrint.") |
| 1855 | (license license:perl-license))) |
| 1856 | |
| 1857 | (define-public perl-email-sender |
| 1858 | (package |
| 1859 | (name "perl-email-sender") |
| 1860 | (version "1.300034") |
| 1861 | (source |
| 1862 | (origin |
| 1863 | (method url-fetch) |
| 1864 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" |
| 1865 | "Email-Sender-" version ".tar.gz")) |
| 1866 | (sha256 |
| 1867 | (base32 "14aj9kqa9dr2bdhzn2qvjj2mffj8wjb5397z8qw7qg057fk3ib05")))) |
| 1868 | (build-system perl-build-system) |
| 1869 | (native-inputs |
| 1870 | `(("perl-capture-tiny" ,perl-capture-tiny))) |
| 1871 | (propagated-inputs |
| 1872 | `(("perl-email-abstract" ,perl-email-abstract) |
| 1873 | ("perl-email-address" ,perl-email-address) |
| 1874 | ("perl-email-simple" ,perl-email-simple) |
| 1875 | ("perl-list-moreutils" ,perl-list-moreutils) |
| 1876 | ("perl-module-runtime" ,perl-module-runtime) |
| 1877 | ("perl-moo" ,perl-moo) |
| 1878 | ("perl-moox-types-mooselike" ,perl-moox-types-mooselike) |
| 1879 | ("perl-sub-exporter" ,perl-sub-exporter) |
| 1880 | ("perl-throwable" ,perl-throwable) |
| 1881 | ("perl-try-tiny" ,perl-try-tiny))) |
| 1882 | (home-page "https://metacpan.org/release/Email-Sender") |
| 1883 | (synopsis "Perl library for sending email") |
| 1884 | (description "Email::Sender replaces the old and sometimes problematic |
| 1885 | Email::Send library.") |
| 1886 | (license license:perl-license))) |
| 1887 | |
| 1888 | (define-public perl-email-simple |
| 1889 | (package |
| 1890 | (name "perl-email-simple") |
| 1891 | (version "2.216") |
| 1892 | (source |
| 1893 | (origin |
| 1894 | (method url-fetch) |
| 1895 | (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/" |
| 1896 | "Email-Simple-" version ".tar.gz")) |
| 1897 | (sha256 |
| 1898 | (base32 |
| 1899 | "1m4brbjvalyp5kjqslqv4155dzwg977shxin208i7lc8236n6pyq")))) |
| 1900 | (build-system perl-build-system) |
| 1901 | (propagated-inputs |
| 1902 | `(("perl-email-date-format" ,perl-email-date-format))) |
| 1903 | (home-page "https://metacpan.org/release/Email-Simple") |
| 1904 | (synopsis "Parsing of RFC 2822 messages") |
| 1905 | (description "Email::Simple provides simple parsing of RFC 2822 message |
| 1906 | format and headers.") |
| 1907 | (license license:perl-license))) |
| 1908 | |
| 1909 | (define-public libesmtp |
| 1910 | (package |
| 1911 | (name "libesmtp") |
| 1912 | (version "1.0.6") |
| 1913 | (source |
| 1914 | (origin |
| 1915 | (method url-fetch) |
| 1916 | (uri (list (string-append "https://pkgs.fedoraproject.org/repo/pkgs/" |
| 1917 | "libesmtp/libesmtp-" version ".tar.bz2/" |
| 1918 | "bf3915e627fd8f35524a8fdfeed979c8/libesmtp-" |
| 1919 | version ".tar.bz2") |
| 1920 | ;; XXX This site is offline, so we fetch Fedora's cached copy |
| 1921 | ;; of the source tarball. |
| 1922 | (string-append "http://www.stafford.uklinux.net/libesmtp/libesmtp-" |
| 1923 | version ".tar.bz2"))) |
| 1924 | (sha256 |
| 1925 | (base32 |
| 1926 | "02zbniyz7qys1jmx3ghx21kxmns1wc3hmv80gp7ag7yra9f1m9nh")))) |
| 1927 | (build-system gnu-build-system) |
| 1928 | (propagated-inputs |
| 1929 | `(("openssl" ,openssl))) |
| 1930 | (home-page "http://www.stafford.uklinux.net/libesmtp/") |
| 1931 | (synopsis "Library for sending mail via remote hosts using SMTP") |
| 1932 | (description "libESMTP is an SMTP client which manages posting (or |
| 1933 | submission of) electronic mail via a preconfigured Mail Transport Agent (MTA). |
| 1934 | It may be used as part of a Mail User Agent (MUA) or other program that must |
| 1935 | be able to post electronic mail where mail functionality may not be that |
| 1936 | program's primary purpose.") |
| 1937 | (license (list license:lgpl2.1+ license:gpl2+)))) |
| 1938 | |
| 1939 | (define-public esmtp |
| 1940 | (package |
| 1941 | (name "esmtp") |
| 1942 | (version "1.2") |
| 1943 | (source |
| 1944 | (origin |
| 1945 | (method git-fetch) |
| 1946 | (uri (git-reference |
| 1947 | (url "https://github.com/andywingo/esmtp") |
| 1948 | (commit "01bf9fc"))) |
| 1949 | (sha256 |
| 1950 | (base32 |
| 1951 | "1ay282rrl92h0m0m8z5zzjnwiiagi7c78aq2qvhia5mw7prwfyw2")) |
| 1952 | (file-name (string-append name "-" version "-checkout")))) |
| 1953 | (arguments |
| 1954 | `(#:phases (modify-phases %standard-phases |
| 1955 | (replace 'bootstrap |
| 1956 | (lambda _ (invoke "autoreconf" "-vfi")))))) |
| 1957 | (build-system gnu-build-system) |
| 1958 | (native-inputs |
| 1959 | `(("bison" ,bison) |
| 1960 | ("flex" ,flex) |
| 1961 | ("autoconf" ,autoconf) |
| 1962 | ("automake" ,automake) |
| 1963 | ("libtool" ,libtool))) |
| 1964 | (inputs |
| 1965 | `(("libesmtp" ,libesmtp))) |
| 1966 | (home-page "https://sourceforge.net/projects/esmtp/") |
| 1967 | (synopsis "Relay-only mail transfer agent (MTA)") |
| 1968 | (description "Esmtp is a simple relay-only mail transfer agent built using |
| 1969 | libESMTP. It sends e-mail via a remote SMTP server using credentials from the |
| 1970 | user's @file{$HOME/.esmtprc} configuration file; see the @command{esmtprc} man |
| 1971 | page for more on configuration. This package also provides minimal |
| 1972 | compatibility shims for the @command{sendmail}, @command{mailq}, and |
| 1973 | @command{newaliases} commands.") |
| 1974 | (license license:gpl2+))) |
| 1975 | |
| 1976 | (define-public fdm |
| 1977 | (package |
| 1978 | (name "fdm") |
| 1979 | (version "2.0") |
| 1980 | (source (origin |
| 1981 | (method url-fetch) |
| 1982 | (uri (string-append "https://github.com/nicm/fdm/releases/download/" |
| 1983 | version "/fdm-" version ".tar.gz")) |
| 1984 | (sha256 |
| 1985 | (base32 "196fs1z8y7p12wmqn1bylzz94szl58yv2aby3p30nmwjnyv8rch6")))) |
| 1986 | (build-system gnu-build-system) |
| 1987 | (inputs |
| 1988 | `(("tdb" ,tdb) |
| 1989 | ("openssl" ,openssl) |
| 1990 | ("zlib" ,zlib))) |
| 1991 | (home-page "https://github.com/nicm/fdm") |
| 1992 | (synopsis "Mail Retrieval Agent (MRA) and Mail Delivery Agent (MDA)") |
| 1993 | (description "fdm is a program designed to fetch mail from POP3 |
| 1994 | or IMAP servers, or receive local mail from stdin, and |
| 1995 | deliver it in various ways.") |
| 1996 | (license |
| 1997 | ;; Why point to a source file? Well, all the individual files have a |
| 1998 | ;; copy of this license in their headers, but there's no seprate file |
| 1999 | ;; with that information. |
| 2000 | (license:non-copyleft |
| 2001 | "https://github.com/nicm/fdm/blob/master/command.c")))) |
| 2002 | |
| 2003 | |
| 2004 | (define-public procmail |
| 2005 | (package |
| 2006 | (name "procmail") |
| 2007 | (version "3.22") |
| 2008 | (source |
| 2009 | (origin |
| 2010 | (method url-fetch) |
| 2011 | (uri (string-append |
| 2012 | "ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-" |
| 2013 | version |
| 2014 | ".tar.gz")) |
| 2015 | (sha256 |
| 2016 | (base32 |
| 2017 | "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08")) |
| 2018 | ;; The following patch fixes an ambiguous definition of |
| 2019 | ;; getline() in formail.c. The patch is provided by Debian as |
| 2020 | ;; patch 24. |
| 2021 | (patches (search-patches "procmail-ambiguous-getline-debian.patch" |
| 2022 | "procmail-CVE-2014-3618.patch" |
| 2023 | "procmail-CVE-2017-16844.patch")))) |
| 2024 | (arguments |
| 2025 | `(#:phases (modify-phases %standard-phases |
| 2026 | (replace 'configure |
| 2027 | (lambda _ |
| 2028 | (substitute* "Makefile" |
| 2029 | (("/bin/sh") |
| 2030 | (which "sh")) |
| 2031 | (("/usr") |
| 2032 | (assoc-ref %outputs "out")) |
| 2033 | (("/bin/rm") |
| 2034 | (which "rm"))) |
| 2035 | #t))) |
| 2036 | #:tests? #f)) ;; There are no tests indicating a successful |
| 2037 | ;; build. Some tests of basic locking mechanisms provided by the |
| 2038 | ;; file system are performed during 'make install'. However, these |
| 2039 | ;; are performed before the actual build process. |
| 2040 | (build-system gnu-build-system) |
| 2041 | (inputs `(("exim" ,exim))) |
| 2042 | (home-page "http://www.procmail.org/") |
| 2043 | (synopsis "Versatile mail delivery agent (MDA)") |
| 2044 | (description "Procmail is a mail delivery agent (MDA) featuring support |
| 2045 | for a variety of mailbox formats such as mbox, mh and maildir. Incoming mail |
| 2046 | can be sorted into separate files/directories and arbitrary commands can be |
| 2047 | executed on mail arrival. Procmail is considered stable, but is no longer |
| 2048 | maintained.") |
| 2049 | (license license:gpl2+))) ;; procmail allows to choose the |
| 2050 | ;; nonfree Artistic License 1.0 |
| 2051 | ;; as alternative to the GPL2+. |
| 2052 | ;; This option is not listed here. |
| 2053 | |
| 2054 | (define-public khard |
| 2055 | (package |
| 2056 | (name "khard") |
| 2057 | (version "0.17.0") |
| 2058 | (source (origin |
| 2059 | (method url-fetch) |
| 2060 | (uri (pypi-uri name version)) |
| 2061 | (sha256 |
| 2062 | (base32 |
| 2063 | "062nv4xkfsjc11k9m52dh6xjn9z68a4a6x1s8z05wwv4jbp1lkhn")))) |
| 2064 | (build-system python-build-system) |
| 2065 | (arguments |
| 2066 | `(#:phases |
| 2067 | (modify-phases %standard-phases |
| 2068 | (add-after 'install 'install-completions |
| 2069 | (lambda* (#:key outputs #:allow-other-keys) |
| 2070 | (let* ((out (assoc-ref outputs "out")) |
| 2071 | (zsh (string-append out "/share/zsh/site-functions"))) |
| 2072 | (copy-recursively "misc/zsh" zsh) |
| 2073 | #t)))))) |
| 2074 | (native-inputs |
| 2075 | `(("python-setuptools-scm" ,python-setuptools-scm))) |
| 2076 | (inputs |
| 2077 | `(("python-atomicwrites" ,python-atomicwrites) |
| 2078 | ("python-configobj" ,python-configobj) |
| 2079 | ("python-ruamel.yaml" ,python-ruamel.yaml) |
| 2080 | ("python-unidecode" ,python-unidecode) |
| 2081 | ("python-vobject" ,python-vobject))) |
| 2082 | (synopsis "Console address book using CardDAV") |
| 2083 | (description "Khard is an address book for the console. It creates, reads, |
| 2084 | modifies and removes CardDAV address book entries at your local machine. For |
| 2085 | synchronizing with a remote address book, @command{vdirsyncer} is recommended. |
| 2086 | Khard can also be used from within the email client @command{mutt}.") |
| 2087 | (home-page "https://github.com/scheibler/khard") |
| 2088 | (license license:gpl3+))) |
| 2089 | |
| 2090 | (define-public perl-mail-spf |
| 2091 | (package |
| 2092 | (name "perl-mail-spf") |
| 2093 | (version "2.9.0") |
| 2094 | (source |
| 2095 | (origin |
| 2096 | (method url-fetch) |
| 2097 | (uri (string-append |
| 2098 | "mirror://cpan/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v" |
| 2099 | version |
| 2100 | ".tar.gz")) |
| 2101 | (sha256 |
| 2102 | (base32 "0qk1rfgfm5drj4iyniiabrasrpqv570vzhgz66lwgb67y4amkjv1")))) |
| 2103 | (build-system perl-build-system) |
| 2104 | (native-inputs |
| 2105 | `(("perl-module-build" ,perl-module-build) |
| 2106 | ("perl-net-dns-resolver-programmable" |
| 2107 | ,perl-net-dns-resolver-programmable))) |
| 2108 | (arguments |
| 2109 | `(#:phases |
| 2110 | (modify-phases %standard-phases |
| 2111 | (add-before 'configure 'modify-Build.PL |
| 2112 | (lambda* (#:key outputs #:allow-other-keys) |
| 2113 | (substitute* "Build.PL" |
| 2114 | (("'/usr/sbin'") (string-append "'" |
| 2115 | (assoc-ref outputs "out") |
| 2116 | "/sbin'"))) |
| 2117 | #t))))) |
| 2118 | (inputs |
| 2119 | `(("perl-error" ,perl-error) |
| 2120 | ("perl-net-dns" ,perl-net-dns) |
| 2121 | ("perl-netaddr-ip" ,perl-netaddr-ip) |
| 2122 | ("perl-uri" ,perl-uri))) |
| 2123 | (home-page "https://metacpan.org/release/Mail-SPF") |
| 2124 | (synopsis "Perl implementation of Sender Policy Framework") |
| 2125 | (description "Mail::SPF is the Sender Policy Framework implemented |
| 2126 | in Perl.") |
| 2127 | (license license:bsd-3))) |
| 2128 | |
| 2129 | (define-public perl-mail-authenticationresults |
| 2130 | (package |
| 2131 | (name "perl-mail-authenticationresults") |
| 2132 | (version "1.20180923") |
| 2133 | (source (origin |
| 2134 | (method url-fetch) |
| 2135 | (uri (string-append |
| 2136 | "mirror://cpan/authors/id/M/MB/MBRADSHAW/" |
| 2137 | "Mail-AuthenticationResults-" version ".tar.gz")) |
| 2138 | (sha256 |
| 2139 | (base32 |
| 2140 | "1g1wym9vcbhldwvi4w5pl0fhd4jh2icj975awf4wr5xmkli9mxbz")))) |
| 2141 | (build-system perl-build-system) |
| 2142 | (native-inputs |
| 2143 | `(("perl-test-exception" ,perl-test-exception))) |
| 2144 | (home-page "https://metacpan.org/release/Mail-AuthenticationResults") |
| 2145 | (synopsis "Object Oriented Authentication-Results Headers") |
| 2146 | (description "Mail::AuthenticationResults parses the message header field |
| 2147 | that indicates the message authentication status as per RFC7601. This module |
| 2148 | is not fully compliant with the RFC but it tries to implement most styles of |
| 2149 | Authentication-Results header seen in the wild.") |
| 2150 | (license license:perl-license))) |
| 2151 | |
| 2152 | (define-public perl-mail-dkim |
| 2153 | (package |
| 2154 | (name "perl-mail-dkim") |
| 2155 | (version "0.58") |
| 2156 | (source (origin |
| 2157 | (method url-fetch) |
| 2158 | (uri (string-append |
| 2159 | "mirror://cpan/authors/id/M/MB/MBRADSHAW/Mail-DKIM-" |
| 2160 | version |
| 2161 | ".tar.gz")) |
| 2162 | (sha256 |
| 2163 | (base32 |
| 2164 | "0cgkal65qqcy57b21lgij90ba36wl66byw9i76g5yhwaa8ms8hqa")))) |
| 2165 | (build-system perl-build-system) |
| 2166 | (propagated-inputs |
| 2167 | `(("perl-crypt-openssl-rsa" ,perl-crypt-openssl-rsa) |
| 2168 | ("perl-mail-authenticationresults" ,perl-mail-authenticationresults) |
| 2169 | ("perl-mailtools" ,perl-mailtools) |
| 2170 | ("perl-net-dns" ,perl-net-dns))) |
| 2171 | (native-inputs |
| 2172 | `(("perl-net-dns-resolver-mock" ,perl-net-dns-resolver-mock) |
| 2173 | ("perl-test-requiresinternet" ,perl-test-requiresinternet) |
| 2174 | ("perl-yaml-libyaml" ,perl-yaml-libyaml))) |
| 2175 | (home-page "https://metacpan.org/release/Mail-DKIM") |
| 2176 | (synopsis "Signs/verifies Internet mail with DKIM/DomainKey signatures") |
| 2177 | (description "Mail::DKIM is a Perl module that implements the new Domain |
| 2178 | Keys Identified Mail (DKIM) standard, and the older Yahoo! DomainKeys standard, |
| 2179 | both of which sign and verify emails using digital signatures and DNS records. |
| 2180 | Mail-DKIM can be used by any Perl program that wants to provide support for |
| 2181 | DKIM and/or DomainKeys.") |
| 2182 | (license license:gpl3+))) |
| 2183 | |
| 2184 | (define-public dkimproxy |
| 2185 | (package |
| 2186 | (name "dkimproxy") |
| 2187 | (version "1.4.1") |
| 2188 | (source (origin |
| 2189 | (method url-fetch) |
| 2190 | (uri (string-append |
| 2191 | "mirror://sourceforge/dkimproxy/dkimproxy/" |
| 2192 | version "/dkimproxy-" version ".tar.gz")) |
| 2193 | (sha256 |
| 2194 | (base32 |
| 2195 | "1gc5c7lg2qrlck7b0lvjfqr824ch6jkrzkpsn0gjvlzg7hfmld75")) |
| 2196 | (patches |
| 2197 | (search-patches "dkimproxy-add-ipv6-support.patch")))) |
| 2198 | (build-system gnu-build-system) |
| 2199 | (arguments |
| 2200 | `(#:phases |
| 2201 | (modify-phases %standard-phases |
| 2202 | (add-after 'install 'make-wrapper |
| 2203 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 2204 | (let* ((out (assoc-ref outputs "out")) |
| 2205 | (wrap.pl (lambda (scripts keys) |
| 2206 | (for-each |
| 2207 | (lambda (script) |
| 2208 | (wrap-program (string-append out script) |
| 2209 | `("PERL5LIB" ":" prefix |
| 2210 | ,(map (λ (input) |
| 2211 | (string-append |
| 2212 | (assoc-ref inputs input) |
| 2213 | "/lib/perl5/site_perl")) |
| 2214 | keys)))) |
| 2215 | scripts)))) |
| 2216 | (wrap.pl (list "/bin/dkimproxy.in" |
| 2217 | "/bin/dkimproxy.out") |
| 2218 | (list "perl-crypt-openssl-rsa" |
| 2219 | "perl-io-socket-inet6" |
| 2220 | "perl-mailtools" |
| 2221 | "perl-mail-authenticationresults" |
| 2222 | "perl-mail-dkim" |
| 2223 | "perl-net-dns" |
| 2224 | "perl-net-server" |
| 2225 | "perl-socket6")) |
| 2226 | (wrap.pl (list "/bin/dkim_responder.pl") |
| 2227 | (list "perl-crypt-openssl-rsa" |
| 2228 | "perl-mail-dkim" |
| 2229 | "perl-mailtools" |
| 2230 | "perl-mime-tools" |
| 2231 | "perl-net-dns" |
| 2232 | "perl-timedate")) |
| 2233 | #t)))))) |
| 2234 | (inputs |
| 2235 | `(("perl" ,perl) |
| 2236 | ("perl-crypt-openssl-rsa" ,perl-crypt-openssl-rsa) |
| 2237 | ("perl-io-socket-inet6" ,perl-io-socket-inet6) |
| 2238 | ("perl-mailtools" ,perl-mailtools) |
| 2239 | ("perl-mail-authenticationresults" ,perl-mail-authenticationresults) |
| 2240 | ("perl-mail-dkim" ,perl-mail-dkim) |
| 2241 | ("perl-mime-tools" ,perl-mime-tools) |
| 2242 | ("perl-net-dns" ,perl-net-dns) |
| 2243 | ("perl-net-server" ,perl-net-server) |
| 2244 | ("perl-socket6" ,perl-socket6) |
| 2245 | ("perl-timedate" ,perl-timedate))) |
| 2246 | (home-page "http://dkimproxy.sourceforge.net/") |
| 2247 | (synopsis "SMTP proxy to sign and verify Internet mail with DKIM headers") |
| 2248 | (description |
| 2249 | "DKIMproxy is an SMTP proxy that signs and verifies Internet mail using the |
| 2250 | @code{Mail::DKIM} Perl module. It comprises two separate proxies: an outbound |
| 2251 | proxy for signing outgoing email, and an inbound proxy for verifying signatures |
| 2252 | of incoming messages. |
| 2253 | |
| 2254 | It was designed for Postfix, but can be used to add DKIM support to nearly any |
| 2255 | existing mail server. With Postfix, the proxies can operate as either |
| 2256 | @code{Before-Queue} or @code{After-Queue} content filters.") |
| 2257 | (license license:gpl2+))) |
| 2258 | |
| 2259 | (define-public mb2md |
| 2260 | (package |
| 2261 | (name "mb2md") |
| 2262 | (version "3.20") |
| 2263 | (source (origin |
| 2264 | (method url-fetch) |
| 2265 | (uri (string-append |
| 2266 | "http://batleth.sapienti-sat.org/projects/mb2md/mb2md-" |
| 2267 | version ".pl.gz")) |
| 2268 | (sha256 |
| 2269 | (base32 |
| 2270 | "0bvkky3c90738h3skd2f1b2yy5xzhl25cbh9w2dy97rs86ssjidg")))) |
| 2271 | (build-system trivial-build-system) |
| 2272 | (arguments |
| 2273 | '(#:modules ((guix build utils)) |
| 2274 | #:builder |
| 2275 | (begin |
| 2276 | (use-modules (guix build utils)) |
| 2277 | (let* ((source (assoc-ref %build-inputs "source")) |
| 2278 | (out (assoc-ref %outputs "out")) |
| 2279 | (bin (string-append out "/bin")) |
| 2280 | (perl (assoc-ref %build-inputs "perl")) |
| 2281 | (gzip (assoc-ref %build-inputs "gzip")) |
| 2282 | (perl-timedate (assoc-ref %build-inputs "perl-timedate")) |
| 2283 | (perl5lib (string-append perl-timedate "/lib/perl5/site_perl"))) |
| 2284 | (mkdir-p bin) |
| 2285 | (with-directory-excursion bin |
| 2286 | (copy-file source "mb2md.gz") |
| 2287 | (invoke (string-append gzip "/bin/gzip") "-d" "mb2md.gz") |
| 2288 | (substitute* "mb2md" |
| 2289 | (("#!/usr/bin/perl") |
| 2290 | (string-append "#!/usr/bin/perl -I " perl5lib))) |
| 2291 | (patch-shebang "mb2md" (list (string-append perl "/bin"))) |
| 2292 | (chmod "mb2md" #o555)) |
| 2293 | #t)))) |
| 2294 | (native-inputs `(("gzip" ,gzip))) |
| 2295 | (inputs `(("perl" ,perl) |
| 2296 | ("perl-timedate" ,perl-timedate))) |
| 2297 | (home-page "http://batleth.sapienti-sat.org/projects/mb2md/") |
| 2298 | (synopsis "Mbox to maildir converter") |
| 2299 | (description |
| 2300 | "Mb2md is a Perl script that takes one or more mbox format files and |
| 2301 | converts them to maildir format directories.") |
| 2302 | (license license:public-domain))) |
| 2303 | |
| 2304 | (define-public mpop |
| 2305 | (package |
| 2306 | (name "mpop") |
| 2307 | (version "1.4.10") |
| 2308 | (source |
| 2309 | (origin |
| 2310 | (method url-fetch) |
| 2311 | (uri (string-append "https://marlam.de/mpop/releases/" |
| 2312 | "mpop-" version ".tar.xz")) |
| 2313 | (sha256 |
| 2314 | (base32 "1243hazpiwgvz2m3p48cdh0yw1019i6xjxgc7qyhmxcdy0inb6wy")))) |
| 2315 | (build-system gnu-build-system) |
| 2316 | (inputs |
| 2317 | `(("gnutls" ,gnutls))) |
| 2318 | (native-inputs |
| 2319 | `(("pkg-config" ,pkg-config))) |
| 2320 | (home-page "https://marlam.de/mpop/") |
| 2321 | (synopsis "POP3 mail client") |
| 2322 | (description "mpop is a small and fast POP3 client suitable as a |
| 2323 | fetchmail replacement. |
| 2324 | |
| 2325 | mpop supports multiple accounts, header based mail filtering, delivery |
| 2326 | to mbox files, maildir folders or an @acronym{MDA, Mail Delivery Agent}, |
| 2327 | TLS/SSL, several authentication methods, @acronym{IDN, Internationalized Domain |
| 2328 | Names} and SOCKS proxies.") |
| 2329 | (license license:gpl3+))) |
| 2330 | |
| 2331 | (define-public mhonarc |
| 2332 | (package |
| 2333 | (name "mhonarc") |
| 2334 | (version "2.6.19") |
| 2335 | (source |
| 2336 | (origin |
| 2337 | (method url-fetch) |
| 2338 | (uri (string-append "mirror://cpan/authors/id/E/EH/EHOOD/MHonArc-" |
| 2339 | version ".tar.gz")) |
| 2340 | (sha256 |
| 2341 | (base32 |
| 2342 | "0ll3v93yji334zqp6xfzfxc0127pmjcznmai1l5q6dzawrs2igzq")))) |
| 2343 | (build-system perl-build-system) |
| 2344 | (home-page "https://www.mhonarc.org/") |
| 2345 | (synopsis "Create HTML archives of mail/news messages") |
| 2346 | (description |
| 2347 | "MHonArc is a Perl mail-to-HTML converter. MHonArc |
| 2348 | provides HTML mail archiving with index, mail thread linking, |
| 2349 | etc; plus other capabilities including support for MIME and |
| 2350 | powerful user customization features.") |
| 2351 | (license license:gpl2+))) |
| 2352 | |
| 2353 | (define-public sendmail |
| 2354 | (package |
| 2355 | (name "sendmail") |
| 2356 | (version "8.15.2") |
| 2357 | (source |
| 2358 | (origin |
| 2359 | (method url-fetch) |
| 2360 | (uri (string-append |
| 2361 | "ftp://ftp.sendmail.org/pub/sendmail/sendmail." |
| 2362 | version ".tar.gz")) |
| 2363 | (sha256 |
| 2364 | (base32 |
| 2365 | "0fdl9ndmspqspdlmghzxlaqk56j3yajk52d7jxcg21b7sxglpy94")))) |
| 2366 | (build-system gnu-build-system) |
| 2367 | (arguments |
| 2368 | `(#:phases |
| 2369 | (modify-phases %standard-phases |
| 2370 | (add-before 'build 'replace-/bin/sh |
| 2371 | (lambda _ |
| 2372 | (substitute* |
| 2373 | (append |
| 2374 | (list "smrsh/smrsh.c" "sendmail/conf.c" "contrib/mailprio" |
| 2375 | "contrib/mmuegel" "devtools/bin/configure.sh") |
| 2376 | (find-files "." ".*\\.m4") |
| 2377 | (find-files "." ".*\\.cf")) |
| 2378 | (("/bin/sh") (which "sh"))) |
| 2379 | |
| 2380 | (substitute* "devtools/bin/Build" |
| 2381 | (("SHELL=/bin/sh") (string-append "SHELL=" (which "sh")))) |
| 2382 | #t)) |
| 2383 | (replace 'configure |
| 2384 | (lambda _ |
| 2385 | |
| 2386 | ;; Render harmless any attempts to chown or chgrp |
| 2387 | (substitute* "devtools/bin/install.sh" |
| 2388 | (("owner=\\$2") "owner=''") |
| 2389 | (("group=\\$2") "group=''")) |
| 2390 | |
| 2391 | (with-output-to-file "devtools/Site/site.config.m4" |
| 2392 | (lambda () |
| 2393 | (format #t " |
| 2394 | define(`confCC', `gcc') |
| 2395 | define(`confOPTIMIZE', `-g -O2') |
| 2396 | define(`confLIBS', `-lresolv') |
| 2397 | define(`confINSTALL', `~a/devtools/bin/install.sh') |
| 2398 | define(`confDEPEND_TYPE', `CC-M') |
| 2399 | define(`confINST_DEP', `') |
| 2400 | " (getcwd)))) |
| 2401 | #t)) |
| 2402 | (replace 'build |
| 2403 | (lambda _ |
| 2404 | (invoke "sh" "Build") |
| 2405 | (with-directory-excursion "cf/cf" |
| 2406 | (copy-file "generic-linux.mc" "sendmail.mc") |
| 2407 | (invoke "sh" "Build" "sendmail.cf")) |
| 2408 | #t)) |
| 2409 | (add-before 'install 'pre-install |
| 2410 | (lambda _ |
| 2411 | (let ((out (assoc-ref %outputs "out"))) |
| 2412 | (mkdir-p (string-append out "/usr/bin")) |
| 2413 | (mkdir-p (string-append out "/usr/sbin")) |
| 2414 | (mkdir-p (string-append out "/etc/mail")) |
| 2415 | (setenv "DESTDIR" out) |
| 2416 | (with-directory-excursion "cf/cf" |
| 2417 | (invoke "sh" "Build" "install-cf")) |
| 2418 | #t)))) |
| 2419 | ;; There is no make check. There are some post installation tests, but those |
| 2420 | ;; require root privileges |
| 2421 | #:tests? #f)) |
| 2422 | (inputs |
| 2423 | `(("m4" ,m4) |
| 2424 | ("perl" ,perl))) |
| 2425 | (home-page "http://sendmail.org") |
| 2426 | (synopsis |
| 2427 | "Highly configurable Mail Transfer Agent (MTA)") |
| 2428 | (description |
| 2429 | "Sendmail is a mail transfer agent (MTA) originally developed by Eric |
| 2430 | Allman. It is highly configurable and supports many delivery methods and many |
| 2431 | transfer protocols.") |
| 2432 | (license (license:non-copyleft "file://LICENSE" |
| 2433 | "See LICENSE in the distribution.")))) |
| 2434 | |
| 2435 | (define-public sieve-connect |
| 2436 | (package |
| 2437 | (name "sieve-connect") |
| 2438 | (version "0.90") |
| 2439 | (source |
| 2440 | (origin |
| 2441 | (method url-fetch) |
| 2442 | (uri (string-append "https://people.spodhuis.org/phil.pennock/software/" |
| 2443 | "sieve-connect-" version ".tar.bz2")) |
| 2444 | (sha256 |
| 2445 | (base32 "00vnyzr67yr2ilnprbd388gfnwmrmbdx1jsig9d0n5q902jqn62a")))) |
| 2446 | (build-system gnu-build-system) |
| 2447 | (arguments |
| 2448 | `(#:make-flags |
| 2449 | (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) |
| 2450 | #:tests? #f ; no test suite |
| 2451 | #:phases |
| 2452 | (modify-phases %standard-phases |
| 2453 | (delete 'configure) ; no configure script |
| 2454 | (add-before 'install 'create-output-directories |
| 2455 | (lambda* (#:key outputs #:allow-other-keys) |
| 2456 | (let ((out (assoc-ref outputs "out"))) |
| 2457 | (for-each (lambda (subdirectory) |
| 2458 | (mkdir-p (string-append out "/" subdirectory))) |
| 2459 | (list "bin" |
| 2460 | "man/man1")) |
| 2461 | #t))) |
| 2462 | (add-after 'install 'wrap-program |
| 2463 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 2464 | (let ((out (assoc-ref outputs "out")) |
| 2465 | (path (getenv "PERL5LIB"))) |
| 2466 | (wrap-script (string-append out "/bin/sieve-connect") |
| 2467 | `("PERL5LIB" ":" = (,path))) |
| 2468 | #t)))))) |
| 2469 | (inputs |
| 2470 | `(("guile" ,guile-3.0) ; for wrap-script |
| 2471 | ("perl" ,perl) |
| 2472 | ("perl-authen-sasl" ,perl-authen-sasl) |
| 2473 | ("perl-io-socket-inet6" ,perl-io-socket-inet6) |
| 2474 | ("perl-io-socket-ssl" ,perl-io-socket-ssl) |
| 2475 | ("perl-net-dns" ,perl-net-dns) |
| 2476 | ("perl-socket6" ,perl-socket6) |
| 2477 | ("perl-term-readkey" ,perl-term-readkey) |
| 2478 | ("perl-term-readline" ,perl-term-readline-gnu))) |
| 2479 | (home-page |
| 2480 | "https://people.spodhuis.org/phil.pennock/software/#sieve-connect") |
| 2481 | (synopsis "ManageSieve client for managing Sieve e-mail filters") |
| 2482 | (description |
| 2483 | "Sieve-connect lets you view, upload, edit, delete, and otherwise manage |
| 2484 | Sieve scripts on any mail server that speaks the @dfn{ManageSieve} protocol, |
| 2485 | as specifed in RFC 5804. |
| 2486 | |
| 2487 | @dfn{Sieve} (RFC 5228) is a specialised language for e-mail filtering. Sieve |
| 2488 | scripts are stored on the server and run whenever mail arrives. They can |
| 2489 | automatically sort new messages into folders, silently reject them, send an |
| 2490 | automated response, and more. |
| 2491 | |
| 2492 | @command{sieve-connect} is designed to be both a tool which can be invoked |
| 2493 | from scripts as well as a decent interactive client. It supports TLS for |
| 2494 | connection privacy, as well as authentication with SASL or GSSAPI client |
| 2495 | certificates. It should be a drop-in replacement for @command{sieveshell} |
| 2496 | from the Cyrus IMAP project.") |
| 2497 | (license license:bsd-3))) |
| 2498 | |
| 2499 | (define-public opensmtpd |
| 2500 | (package |
| 2501 | (name "opensmtpd") |
| 2502 | (version "6.7.1p1") |
| 2503 | (source |
| 2504 | (origin |
| 2505 | (method url-fetch) |
| 2506 | (uri (string-append "https://www.opensmtpd.org/archives/" |
| 2507 | "opensmtpd-" version ".tar.gz")) |
| 2508 | (sha256 |
| 2509 | (base32 "1jh8vxfajm1mvp1v5yh6llrhjzv0n9fgab88mlwllwqynhcfjy3l")))) |
| 2510 | (build-system gnu-build-system) |
| 2511 | (inputs |
| 2512 | `(("bdb" ,bdb) |
| 2513 | ("libasr" ,libasr) |
| 2514 | ("libevent" ,libevent) |
| 2515 | ("libressl" ,libressl) ; recommended, and supports e.g. ECDSA |
| 2516 | ("linux-pam" ,linux-pam) |
| 2517 | ("zlib" ,zlib))) |
| 2518 | (native-inputs |
| 2519 | `(("bison" ,bison) |
| 2520 | ("groff" ,groff))) ; for man pages |
| 2521 | (arguments |
| 2522 | `(#:configure-flags |
| 2523 | (list "--localstatedir=/var" |
| 2524 | ;; This is the default only if it exists at build time—it doesn't. |
| 2525 | "--with-path-socket=/var/run" |
| 2526 | "--with-path-CAfile=/etc/ssl/certs/ca-certificates.crt" |
| 2527 | "--with-user-smtpd=smtpd" |
| 2528 | "--with-user-queue=smtpq" "--with-group-queue=smtpq" |
| 2529 | "--with-auth-pam" |
| 2530 | "--with-table-db") |
| 2531 | #:phases |
| 2532 | (modify-phases %standard-phases |
| 2533 | ;; See: https://github.com/OpenSMTPD/OpenSMTPD/issues/1069. |
| 2534 | (add-after 'unpack 'fix-smtpctl-encrypt-bug |
| 2535 | (lambda _ |
| 2536 | (substitute* "smtpd/smtpctl.c" |
| 2537 | (("\"encrypt\", \"--\",") |
| 2538 | "\"encrypt\",")) |
| 2539 | #t)) |
| 2540 | ;; Fix some incorrectly hard-coded external tool file names. |
| 2541 | (add-after 'unpack 'patch-FHS-file-names |
| 2542 | (lambda _ |
| 2543 | (substitute* "smtpd/smtpctl.c" |
| 2544 | ;; ‘gzcat’ is auto-detected at compile time, but ‘cat’ isn't. |
| 2545 | (("/bin/cat") (which "cat"))) |
| 2546 | (substitute* "smtpd/mda_unpriv.c" |
| 2547 | (("/bin/sh") (which "sh"))) |
| 2548 | #t)) |
| 2549 | ;; OpenSMTPD provides a single smtpctl utility to control both the |
| 2550 | ;; daemon and the local submission subsystem. To accomodate systems |
| 2551 | ;; that require historical interfaces such as sendmail, newaliases or |
| 2552 | ;; makemap, smtpctl operates in compatibility mode if called with the |
| 2553 | ;; historical name. |
| 2554 | (add-after 'install 'install-compability-links |
| 2555 | (lambda* (#:key outputs #:allow-other-keys) |
| 2556 | (let* ((out (assoc-ref outputs "out")) |
| 2557 | (sbin (string-append out "/sbin/"))) |
| 2558 | (for-each (lambda (command) |
| 2559 | (symlink "smtpctl" (string-append sbin command))) |
| 2560 | (list "mailq" "makemap" "newaliases" |
| 2561 | "send-mail" "sendmail"))) |
| 2562 | #t))))) |
| 2563 | (synopsis "Lightweight SMTP daemon") |
| 2564 | (description |
| 2565 | "OpenSMTPD is an implementation of server-side @acronym{SMTP, Simple Mail |
| 2566 | Transfer Protocol}, with some additional standard extensions. It allows |
| 2567 | ordinary machines to exchange e-mails with other systems speaking the SMTP |
| 2568 | protocol, or to deliver them to local users. |
| 2569 | |
| 2570 | In order to simplify the use of SMTP, OpenSMTPD implements a smaller set of |
| 2571 | functionality than those available in other SMTP daemons. The objective is to |
| 2572 | provide enough features to satisfy typical usage at the risk of unsuitability |
| 2573 | to esoteric or niche requirements.") |
| 2574 | (home-page "https://www.opensmtpd.org") |
| 2575 | (license (list license:bsd-2 license:bsd-3 license:bsd-4 |
| 2576 | (license:non-copyleft "file://COPYING") |
| 2577 | license:public-domain license:isc license:openssl)))) |
| 2578 | |
| 2579 | (define-public opensmtpd-extras |
| 2580 | (package |
| 2581 | (name "opensmtpd-extras") |
| 2582 | (version "6.7.1") |
| 2583 | (source (origin |
| 2584 | (method url-fetch) |
| 2585 | (uri (string-append "https://www.opensmtpd.org/archives/" |
| 2586 | "opensmtpd-extras-" version ".tar.gz")) |
| 2587 | (sha256 |
| 2588 | (base32 |
| 2589 | "1b1mx71bvmv92lbm08wr2p60g3qhikvv3n15zsr6dcwbk9aqahzq")))) |
| 2590 | (build-system gnu-build-system) |
| 2591 | (native-inputs |
| 2592 | `(("pkg-config" ,pkg-config))) |
| 2593 | (inputs |
| 2594 | `(("libressl" ,libressl) |
| 2595 | ("libevent" ,libevent) |
| 2596 | ("mysql" ,mysql) |
| 2597 | ("opensmtpd" ,opensmtpd) |
| 2598 | ("postgresql" ,postgresql) |
| 2599 | ("python" ,python-2) |
| 2600 | ("sqlite" ,sqlite))) |
| 2601 | (arguments |
| 2602 | `(#:configure-flags |
| 2603 | (list "--sysconfdir=/etc" |
| 2604 | "--localstatedir=/var" |
| 2605 | |
| 2606 | "--with-queue-null" |
| 2607 | "--with-queue-python" |
| 2608 | "--with-queue-ram" |
| 2609 | "--with-queue-stub" |
| 2610 | |
| 2611 | "--with-table-ldap" |
| 2612 | "--with-table-mysql" |
| 2613 | "--with-table-postgres" |
| 2614 | ;; "--with-table-redis" ; TODO: package hiredis |
| 2615 | "--with-table-socketmap" |
| 2616 | "--with-table-passwd" |
| 2617 | "--with-table-python" |
| 2618 | "--with-table-sqlite" |
| 2619 | "--with-table-stub" |
| 2620 | |
| 2621 | "--with-scheduler-ram" |
| 2622 | "--with-scheduler-stub" |
| 2623 | "--with-scheduler-python" |
| 2624 | |
| 2625 | "--with-user-smtpd=smtpd" |
| 2626 | |
| 2627 | ;; We have to configure it like this because the default checks for |
| 2628 | ;; for example Python in /usr/{,local/}bin and fails otherwise. |
| 2629 | (string-append "--with-python=" |
| 2630 | (assoc-ref %build-inputs "python"))))) |
| 2631 | (home-page "https://www.opensmtpd.org") |
| 2632 | (synopsis "Extra tables, filters, and various other addons for OpenSMTPD") |
| 2633 | (description |
| 2634 | "This package provides extra tables, filters, and various other addons |
| 2635 | for OpenSMTPD to extend its functionality.") |
| 2636 | (license (list license:bsd-2 license:bsd-3 ; openbsd-compat |
| 2637 | license:isc)))) ; everything else |
| 2638 | |
| 2639 | (define libopensmtpd |
| 2640 | ;; Private source dependency of opensmtpd-filter-dkimsign (by the same |
| 2641 | ;; author), until any project actually uses it in its compiled form. |
| 2642 | (let ((revision 48)) |
| 2643 | (package |
| 2644 | (name "libopensmtpd") |
| 2645 | (version (format #f "0.0.0-~a" revision)) |
| 2646 | (source |
| 2647 | (origin |
| 2648 | (method svn-fetch) |
| 2649 | (uri (svn-reference |
| 2650 | (url "http://imperialat.at/dev/libopensmtpd/") |
| 2651 | (revision revision))) |
| 2652 | (sha256 |
| 2653 | (base32 "04fgibpi6q0c3468ww3z7gsvraz0gyfps0c2dj8mdyri636c0x0s")) |
| 2654 | (file-name (git-file-name name version)))) |
| 2655 | (build-system gnu-build-system) |
| 2656 | (arguments |
| 2657 | `(#:make-flags |
| 2658 | (list "-f" "Makefile.gnu" |
| 2659 | (string-append "CC=" ,(cc-for-target)) |
| 2660 | (string-append "LOCALBASE=" (assoc-ref %outputs "out"))) |
| 2661 | #:tests? #f ; no test suite |
| 2662 | #:phases |
| 2663 | (modify-phases %standard-phases |
| 2664 | (add-after 'unpack 'inherit-ownership |
| 2665 | (lambda _ |
| 2666 | (substitute* "Makefile.gnu" |
| 2667 | (("-o \\$\\{BINOWN\\} -g \\$\\{BINGRP\\}") "")) |
| 2668 | #t)) |
| 2669 | (delete 'configure) ; no configure script |
| 2670 | (add-before 'install 'create-output-directories |
| 2671 | (lambda* (#:key outputs #:allow-other-keys) |
| 2672 | (let ((out (assoc-ref outputs "out"))) |
| 2673 | (mkdir-p (string-append out "/lib")) |
| 2674 | #t))) |
| 2675 | (add-after 'install 'install-header-file |
| 2676 | (lambda* (#:key make-flags outputs #:allow-other-keys) |
| 2677 | (let ((out (assoc-ref outputs "out"))) |
| 2678 | (mkdir-p (string-append out "/include")) |
| 2679 | (apply invoke "make" "includes" make-flags)))) |
| 2680 | (add-after 'install 'install-man-page |
| 2681 | (lambda* (#:key outputs #:allow-other-keys) |
| 2682 | (let* ((out (assoc-ref outputs "out")) |
| 2683 | (man3 (string-append out "/share/man/man3"))) |
| 2684 | ;; There is no make target for this. |
| 2685 | (install-file "osmtpd_run.3" man3) |
| 2686 | #t)))))) |
| 2687 | (inputs |
| 2688 | `(("libevent" ,libevent))) |
| 2689 | (home-page "http://imperialat.at/dev/libopensmtpd/") |
| 2690 | (synopsis "OpenSMTPd filter C API") |
| 2691 | (description |
| 2692 | "The @code{osmtpd} API is an event-based C programming interface for |
| 2693 | writing OpenSMTPd filters.") |
| 2694 | (license license:expat)))) |
| 2695 | |
| 2696 | (define-public opensmtpd-filter-dkimsign |
| 2697 | (package |
| 2698 | (name "opensmtpd-filter-dkimsign") |
| 2699 | ;; The .arch repackaging provides not only a usable Makefile, but patches |
| 2700 | ;; the source to actually build on GNU, e.g., by making pledge() optional. |
| 2701 | ;; It's effectively the portable branch that upstream lacks at this time. |
| 2702 | (version "0.2.arch2") ; also update both native-inputs |
| 2703 | (source |
| 2704 | (origin |
| 2705 | (method git-fetch) |
| 2706 | (uri (git-reference |
| 2707 | (url "https://github.com/de-vri-es/filter-dkimsign") |
| 2708 | (commit (string-append "v" version)))) |
| 2709 | (sha256 |
| 2710 | (base32 "1dv6184h0gq2safnc7ln4za3arbafzc1xwkgwmiihqcjvdyxig0c")) |
| 2711 | (file-name (git-file-name name version)))) |
| 2712 | (build-system gnu-build-system) |
| 2713 | (arguments |
| 2714 | `(#:make-flags |
| 2715 | (list (string-append "CC=" ,(cc-for-target))) |
| 2716 | #:tests? #f ; no test suite |
| 2717 | #:phases |
| 2718 | (modify-phases %standard-phases |
| 2719 | (replace 'unpack |
| 2720 | (lambda* (#:key source inputs #:allow-other-keys) |
| 2721 | (copy-recursively source "filter-dkimsign") |
| 2722 | (copy-recursively (assoc-ref inputs "libopensmtpd-source") |
| 2723 | "libopensmtpd") |
| 2724 | (copy-file (assoc-ref inputs "Makefile") "Makefile") |
| 2725 | #t)) |
| 2726 | (delete 'configure) ; no configure script |
| 2727 | (replace 'install |
| 2728 | (lambda* (#:key outputs #:allow-other-keys) |
| 2729 | (let* ((out (assoc-ref outputs "out")) |
| 2730 | (libexec (string-append out "/libexec/opensmtpd")) |
| 2731 | (man8 (string-append out "/share/man/man8"))) |
| 2732 | (chdir "filter-dkimsign") |
| 2733 | (install-file "filter-dkimsign" libexec) |
| 2734 | (install-file "filter-dkimsign.8" man8) |
| 2735 | #t)))))) |
| 2736 | (native-inputs |
| 2737 | `(("Makefile" |
| 2738 | ,(origin |
| 2739 | (method url-fetch) |
| 2740 | (uri (string-append |
| 2741 | "https://aur.archlinux.org/cgit/aur.git/plain/Makefile" |
| 2742 | "?h=opensmtpd-filter-dkimsign" |
| 2743 | "&id=58393470477a2ff2a58f9d72f5d851698067539f")) |
| 2744 | (sha256 |
| 2745 | (base32 "0da5qr9hfjkf07ybvfva967njmf2x0b82z020r6v5f93jzsbqx92")) |
| 2746 | (file-name (string-append name "-" version "-Makefile")))) |
| 2747 | ("libopensmtpd-source" ,(package-source libopensmtpd)))) |
| 2748 | (inputs |
| 2749 | `(("libevent" ,libevent) |
| 2750 | ("libressl" ,libressl))) ; openssl works too but follow opensmtpd |
| 2751 | (home-page "http://imperialat.at/dev/filter-dkimsign/") |
| 2752 | (synopsis "OpenSMTPd filter for signing mail with DKIM") |
| 2753 | (description |
| 2754 | "The @command{filter-dkimsign} OpenSMTPd filter signs outgoing e-mail |
| 2755 | messages with @acronym{DKIM, DomainKeys Identified Mail} (RFC 4871).") |
| 2756 | (license license:expat))) |
| 2757 | |
| 2758 | (define-public mailman |
| 2759 | (package |
| 2760 | (name "mailman") |
| 2761 | (version "3.3.1") |
| 2762 | (source |
| 2763 | (origin |
| 2764 | (method url-fetch) |
| 2765 | (uri (pypi-uri "mailman" version)) |
| 2766 | (sha256 |
| 2767 | (base32 |
| 2768 | "0idfiv48jjgc0jq4731094ddhraqq8bxnwmjk6sg5ask0jss9kxq")))) |
| 2769 | (build-system python-build-system) |
| 2770 | (propagated-inputs |
| 2771 | `(("gunicorn" ,gunicorn) |
| 2772 | ("python-aiosmtpd" ,python-aiosmtpd) |
| 2773 | ("python-alembic" ,python-alembic) |
| 2774 | ("python-atpublic" ,python-atpublic) |
| 2775 | ("python-authheaders" ,python-authheaders) |
| 2776 | ("python-authres" ,python-authres) |
| 2777 | ("python-click" ,python-click) |
| 2778 | ("python-dateutil" ,python-dateutil) |
| 2779 | ("python-dnspython" ,python-dnspython) |
| 2780 | ("python-falcon" ,python-falcon) |
| 2781 | ("python-flufl-bounce" ,python-flufl-bounce) |
| 2782 | ("python-flufl-i18n" ,python-flufl-i18n) |
| 2783 | ("python-flufl-lock" ,python-flufl-lock) |
| 2784 | ("python-importlib-resources" ,python-importlib-resources) |
| 2785 | ("python-lazr-config" ,python-lazr-config) |
| 2786 | ("python-passlib" ,python-passlib) |
| 2787 | ("python-requests" ,python-requests) |
| 2788 | ("python-sqlalchemy" ,python-sqlalchemy) |
| 2789 | ("python-zope-component" ,python-zope-component) |
| 2790 | ("python-zope-configuration" ,python-zope-configuration) |
| 2791 | ("python-zope-event" ,python-zope-event) |
| 2792 | ("python-zope-interface" ,python-zope-interface))) |
| 2793 | (native-inputs |
| 2794 | `(("python-nose" ,python-nose))) |
| 2795 | (home-page "https://www.list.org") |
| 2796 | (synopsis "Mailing list manager") |
| 2797 | (description |
| 2798 | "GNU Mailman is software for managing email discussion and mailing |
| 2799 | lists. Both users and administrators generally perform their actions in a |
| 2800 | web interface, although email and command-line interfaces are also provided. |
| 2801 | The system features built-in archiving, automatic bounce processing, content |
| 2802 | filtering, digest delivery, and more.") |
| 2803 | (license license:gpl3+))) |
| 2804 | |
| 2805 | (define-public python-mailmanclient |
| 2806 | (package |
| 2807 | (name "python-mailmanclient") |
| 2808 | (version "3.3.1") |
| 2809 | (source |
| 2810 | (origin |
| 2811 | (method url-fetch) |
| 2812 | (uri (pypi-uri "mailmanclient" version)) |
| 2813 | (sha256 |
| 2814 | (base32 |
| 2815 | "0pjgzpvhdb6ql8asb20xr8d01m646zpghmcp9fmscks0n1k4di4g")))) |
| 2816 | (build-system python-build-system) |
| 2817 | (arguments |
| 2818 | `(#:tests? #f)) ; Requires mailman running |
| 2819 | (propagated-inputs |
| 2820 | `(("python-requests" ,python-requests))) |
| 2821 | ;(native-inputs |
| 2822 | ; `(("mailman" ,mailman) |
| 2823 | ; ("python-falcon" ,python-falcon) |
| 2824 | ; ("python-pytest" ,python-pytest) |
| 2825 | ; ("python-pytest-services" ,python-pytest-services))) |
| 2826 | (home-page "https://www.list.org/") |
| 2827 | (synopsis "Python bindings for the Mailman 3 REST API") |
| 2828 | (description |
| 2829 | "The mailmanclient library provides official Python bindings for |
| 2830 | the GNU Mailman 3 REST API.") |
| 2831 | (properties `((python2-variant . ,(delay python2-mailmanclient)))) |
| 2832 | (license license:lgpl3+))) |
| 2833 | |
| 2834 | ;; This is the last version which supports Python-2. |
| 2835 | (define-public python2-mailmanclient |
| 2836 | (let ((base (package-with-python2 |
| 2837 | (strip-python2-variant python-mailmanclient)))) |
| 2838 | (package |
| 2839 | (inherit base) |
| 2840 | (version "3.1.1") |
| 2841 | (source |
| 2842 | (origin |
| 2843 | (method url-fetch) |
| 2844 | (uri (pypi-uri "mailmanclient" version)) |
| 2845 | (sha256 |
| 2846 | (base32 |
| 2847 | "0fdfs5g3pf30v2i7w18pdkv9xnfxmfcv66mzv56dck0a1igq07m3")))) |
| 2848 | (propagated-inputs |
| 2849 | `(("python2-six" ,python2-six) |
| 2850 | ("python2-httplib2" ,python2-httplib2)))))) |
| 2851 | |
| 2852 | (define-public mlmmj |
| 2853 | (package |
| 2854 | (name "mlmmj") |
| 2855 | (version "1.3.0") |
| 2856 | (source |
| 2857 | (origin |
| 2858 | (method url-fetch) |
| 2859 | (uri (string-append "http://mlmmj.org/releases/mlmmj-" |
| 2860 | version ".tar.bz2")) |
| 2861 | (sha256 |
| 2862 | (base32 |
| 2863 | "0hpj10qad821ci11si8xc2qnmkzfn90y13s43fm4fca38f0qjp8w")))) |
| 2864 | (build-system gnu-build-system) |
| 2865 | (inputs |
| 2866 | `(("perl" ,perl))) ; For "contrib/web/" |
| 2867 | (native-inputs |
| 2868 | `(("pkg-config" ,pkg-config))) |
| 2869 | (arguments |
| 2870 | `(#:configure-flags |
| 2871 | ;; mlmmj-receive-strip is a replacement for mlmmj-receive |
| 2872 | ;; It opens the files control/mimedeny and control/mimestrip to get a list |
| 2873 | ;; of mimetypes for parts of multipart/mime messages that should be denied |
| 2874 | ;; or stripped. The parts then get stripped directly when the mail is |
| 2875 | ;; received. mlmmj-receive-strip also appends an extra header |
| 2876 | ;; X-ThisMailContainsUnwantedMimeParts: Y when the mail contains unwanted |
| 2877 | ;; mime parts |
| 2878 | (list "--enable-receive-strip") |
| 2879 | #:phases |
| 2880 | (modify-phases %standard-phases |
| 2881 | (add-before 'install 'install-contrib |
| 2882 | (lambda* (#:key outputs #:allow-other-keys) |
| 2883 | (let* ((out (assoc-ref outputs "out")) |
| 2884 | (share (string-append out "/share/mlmmj")) |
| 2885 | (contrib (string-append share "/contrib/web")) |
| 2886 | (texts (string-append share "/listtexts"))) |
| 2887 | (copy-recursively "contrib/web/" contrib) |
| 2888 | (copy-recursively "listtexts" texts) |
| 2889 | (rename-file texts (string-append share "/texts")) |
| 2890 | #t)))))) |
| 2891 | (home-page "http://mlmmj.org") |
| 2892 | (synopsis "Mailing list managing made joyful") |
| 2893 | (description |
| 2894 | "Mlmmj is a simple and slim mailing list manager (MLM) inspired by ezmlm. |
| 2895 | It works with many different Mail Transport Agents (MTAs) and is simple for a |
| 2896 | system administrator to install, configure and integrate with other software. |
| 2897 | As it uses very few resources, and requires no daemons, it is ideal for |
| 2898 | installation on systems where resources are limited. Its features include: |
| 2899 | @enumerate |
| 2900 | @item Archive, Custom headers / footer, |
| 2901 | @item Fully automated bounce handling (similar to ezmlm), |
| 2902 | @item Complete requeueing functionality, Moderation functionality, Subject prefix, |
| 2903 | @item Subscribers only posting, Regular expression access control, |
| 2904 | @item Functionality to retrieve old posts, Web interface, Digests, |
| 2905 | @item No-mail subscription, VERP support, |
| 2906 | @item Delivery Status Notification (RFC1891) support, |
| 2907 | @item Rich and customisable texts for automated operations. |
| 2908 | @end enumerate\n") |
| 2909 | (license license:expat))) |
| 2910 | |
| 2911 | (define-public python-django-mailman3 |
| 2912 | (package |
| 2913 | (name "python-django-mailman3") |
| 2914 | (version "1.3.4") |
| 2915 | (source |
| 2916 | (origin |
| 2917 | (method url-fetch) |
| 2918 | (uri (pypi-uri "django-mailman3" version)) |
| 2919 | (sha256 |
| 2920 | (base32 |
| 2921 | "1yrm7wpjy34xai72vn2vkhc9131cdrbqy08rrabf36kynj5vcdvy")))) |
| 2922 | (build-system python-build-system) |
| 2923 | (arguments |
| 2924 | '(#:phases |
| 2925 | (modify-phases %standard-phases |
| 2926 | (replace 'check |
| 2927 | (lambda _ |
| 2928 | (setenv "DJANGO_SETTINGS_MODULE" |
| 2929 | "django_mailman3.tests.settings_test") |
| 2930 | (invoke "django-admin" "test" |
| 2931 | "--pythonpath=.")))))) |
| 2932 | (propagated-inputs |
| 2933 | `(("python-django" ,python-django) |
| 2934 | ("python-django-allauth" ,python-django-allauth) |
| 2935 | ("python-django-gravatar2" ,python-django-gravatar2) |
| 2936 | ("python-mailmanclient" ,python-mailmanclient) |
| 2937 | ("python-pytz" ,python-pytz))) |
| 2938 | (native-inputs |
| 2939 | `(("python-mock" ,python-mock))) |
| 2940 | (home-page "https://gitlab.com/mailman/django-mailman3") |
| 2941 | (synopsis "Django library to help interaction with Mailman") |
| 2942 | (description |
| 2943 | "This package contains libraries and templates for Django-based interfaces |
| 2944 | interacting with Mailman.") |
| 2945 | (properties `((python2-variant . ,(delay python2-django-mailman3)))) |
| 2946 | (license license:gpl3+))) |
| 2947 | |
| 2948 | ;; This is the last version to support Python-2. |
| 2949 | (define-public python2-django-mailman3 |
| 2950 | (package |
| 2951 | (name "python2-django-mailman3") |
| 2952 | (version "1.1.0") |
| 2953 | (source |
| 2954 | (origin |
| 2955 | (method url-fetch) |
| 2956 | (uri (pypi-uri "django-mailman3" version)) |
| 2957 | (sha256 |
| 2958 | (base32 |
| 2959 | "1xjdkgfjwhgyrp5nxw65dcpcsr98ygj6856sp0bwkrmyxpd1xxk2")))) |
| 2960 | (build-system python-build-system) |
| 2961 | (arguments |
| 2962 | `(#:phases |
| 2963 | (modify-phases %standard-phases |
| 2964 | (replace 'check |
| 2965 | (lambda _ |
| 2966 | (invoke "django-admin" |
| 2967 | "test" |
| 2968 | "--settings=django_mailman3.tests.settings_test" |
| 2969 | "django_mailman3")))) |
| 2970 | #:python ,python-2)) |
| 2971 | (inputs |
| 2972 | `(("python2-django" ,python2-django))) |
| 2973 | (propagated-inputs |
| 2974 | `(("python2-requests" ,python2-requests) |
| 2975 | ("python2-requests-oauthlib" ,python2-requests-oauthlib) |
| 2976 | ("python2-openid" ,python2-openid) |
| 2977 | ("python2-mailmanclient" ,python2-mailmanclient) |
| 2978 | ("python2-django-allauth" ,python2-django-allauth) |
| 2979 | ("python2-django-gravatar2" ,python2-django-gravatar2) |
| 2980 | ("python2-pytz" ,python2-pytz))) |
| 2981 | (home-page "https://gitlab.com/mailman/django-mailman3") |
| 2982 | (synopsis "Django library for Mailman UIs") |
| 2983 | (description |
| 2984 | "Libraries and templates for Django-based interfaces |
| 2985 | interacting with Mailman.") |
| 2986 | (license license:gpl3+))) |
| 2987 | |
| 2988 | (define-public python-mailman-hyperkitty |
| 2989 | (package |
| 2990 | (name "python-mailman-hyperkitty") |
| 2991 | (version "1.1.0") |
| 2992 | (source |
| 2993 | (origin |
| 2994 | (method url-fetch) |
| 2995 | (uri (pypi-uri "mailman-hyperkitty" version)) |
| 2996 | (sha256 |
| 2997 | (base32 |
| 2998 | "1lfqa9admhvdv71f528jmz2wl0i5cv77v6l64px2pm4zqr9ckkjx")) |
| 2999 | (patches |
| 3000 | (list |
| 3001 | (origin |
| 3002 | ;; see: https://gitlab.com/mailman/mailman-hyperkitty/issues/17 |
| 3003 | ;; fixes test_archive_message_unserializable |
| 3004 | (method url-fetch) |
| 3005 | (uri "https://salsa.debian.org/mailman-team/mailman-hyperkitty/raw/debian/1.1.0-9/debian/patches/0002-Skip-the-test_archive_message_unserializable.patch") |
| 3006 | (sha256 |
| 3007 | (base32 |
| 3008 | "0p1fwm46c4bl81lvsg3kjhn2r1lwgkpgxamb3xyqn7h9qdrw10hw"))))))) |
| 3009 | (build-system python-build-system) |
| 3010 | (propagated-inputs |
| 3011 | `(("python-requests" ,python-requests) |
| 3012 | ("python-zope-interface" ,python-zope-interface))) |
| 3013 | (inputs |
| 3014 | `(("mailman" ,mailman))) |
| 3015 | (native-inputs |
| 3016 | `(("python-mock" ,python-mock) |
| 3017 | ("python-nose" ,python-nose) |
| 3018 | ("python-nose2" ,python-nose2))) |
| 3019 | (home-page "https://gitlab.com/mailman/mailman-hyperkitty/") |
| 3020 | (synopsis "Mailman archiver plugin for HyperKitty") |
| 3021 | (description |
| 3022 | "Mailman3 allows emails sent to its mailing lists to be archived by any |
| 3023 | software provided that there is a plugin (loadable by Mailman3) designed to |
| 3024 | communicate with it properly. This module contains a Mailman3 archiver plugin |
| 3025 | which sends emails to HyperKitty, the official Mailman3 web archiver.") |
| 3026 | (license license:gpl3+))) |
| 3027 | |
| 3028 | (define-public python-hyperkitty |
| 3029 | (package |
| 3030 | (name "python-hyperkitty") |
| 3031 | (version "1.3.3") |
| 3032 | (source |
| 3033 | (origin |
| 3034 | (method url-fetch) |
| 3035 | (uri (pypi-uri "HyperKitty" version)) |
| 3036 | (sha256 |
| 3037 | (base32 |
| 3038 | "0p85r9q6mn5as5b39xp9hkkipnk0156acx540n2ygk3qb3jd4a5n")))) |
| 3039 | (build-system python-build-system) |
| 3040 | (arguments |
| 3041 | '(#:phases |
| 3042 | (modify-phases %standard-phases |
| 3043 | (replace 'check |
| 3044 | (lambda _ |
| 3045 | ;; It is unclear why this test fails. |
| 3046 | (substitute* "hyperkitty/tests/commands/test_import.py" |
| 3047 | (("def test_bad_content_type_part_two") |
| 3048 | "@SkipTest\n def test_bad_content_type_part_two")) |
| 3049 | (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH"))) |
| 3050 | (invoke "example_project/manage.py" "test" |
| 3051 | "--settings=hyperkitty.tests.settings_test")))))) |
| 3052 | (propagated-inputs |
| 3053 | `(("python-dateutil" ,python-dateutil) |
| 3054 | ("python-django" ,python-django) |
| 3055 | ("python-django-compressor" ,python-django-compressor) |
| 3056 | ("python-django-extensions" ,python-django-extensions) |
| 3057 | ("python-django-gravatar2" ,python-django-gravatar2) |
| 3058 | ("python-django-haystack" ,python-django-haystack) |
| 3059 | ("python-django-mailman3" ,python-django-mailman3) |
| 3060 | ("python-django-q" ,python-django-q) |
| 3061 | ("python-djangorestframework" ,python-djangorestframework) |
| 3062 | ("python-flufl-lock" ,python-flufl-lock) |
| 3063 | ("python-mailmanclient" ,python-mailmanclient) |
| 3064 | ("python-networkx" ,python-networkx) |
| 3065 | ("python-pytz" ,python-pytz) |
| 3066 | ("python-robot-detection" ,python-robot-detection))) |
| 3067 | (native-inputs |
| 3068 | `(("python-beautifulsoup4" ,python-beautifulsoup4) |
| 3069 | ("python-elasticsearch" ,python-elasticsearch) |
| 3070 | ("python-isort" ,python-isort) |
| 3071 | ("python-mock" ,python-mock) |
| 3072 | ("python-whoosh" ,python-whoosh))) |
| 3073 | (home-page "https://gitlab.com/mailman/hyperkitty") |
| 3074 | (synopsis "Web interface to access GNU Mailman v3 archives") |
| 3075 | (description |
| 3076 | "The hyperkitty Django app provides a web user interface to access GNU |
| 3077 | Mailman3 archives, and manage it. This interface uses django, and requires |
| 3078 | some configuration.") |
| 3079 | (license license:gpl3))) ; Some files are gpl2+ |
| 3080 | |
| 3081 | (define-public postorius |
| 3082 | (package |
| 3083 | (name "postorius") |
| 3084 | (version "1.3.3") |
| 3085 | (source |
| 3086 | (origin |
| 3087 | (method url-fetch) |
| 3088 | (uri (pypi-uri "postorius" version)) |
| 3089 | (sha256 |
| 3090 | (base32 |
| 3091 | "08jn23gblbkfl09qlykbpsmp39mmach3sl69h1j5cd5kkx839rwa")))) |
| 3092 | (build-system python-build-system) |
| 3093 | (arguments |
| 3094 | '(#:phases |
| 3095 | (modify-phases %standard-phases |
| 3096 | (replace 'check |
| 3097 | (lambda* (#:key inputs outputs tests? #:allow-other-keys) |
| 3098 | (add-installed-pythonpath inputs outputs) |
| 3099 | (if tests? |
| 3100 | (invoke "python" "example_project/manage.py" "test" |
| 3101 | "--settings=test_settings" "postorius") |
| 3102 | #t)))) |
| 3103 | #:tests? #f)) ; Tests try to run a mailman instance to test against. |
| 3104 | (inputs |
| 3105 | `(("python-django" ,python-django) |
| 3106 | ("python-django-mailman3" ,python-django-mailman3) |
| 3107 | ("python-mailmanclient" ,python-mailmanclient) |
| 3108 | ("python-readme-renderer" ,python-readme-renderer))) |
| 3109 | (native-inputs |
| 3110 | `(("python-beautifulsoup4" ,python-beautifulsoup4) |
| 3111 | ("python-isort" ,python-isort) |
| 3112 | ("python-mock" ,python-mock) |
| 3113 | ("python-vcrpy" ,python-vcrpy))) |
| 3114 | (home-page "https://gitlab.com/mailman/postorius") |
| 3115 | (synopsis "Web user interface for GNU Mailman") |
| 3116 | (description |
| 3117 | "Postorius is a Django app which provides a web user interface |
| 3118 | to access GNU Mailman.") |
| 3119 | (license (list license:gpl3+ license:lgpl3+)))) |
| 3120 | |
| 3121 | (define-public blists |
| 3122 | (package |
| 3123 | (name "blists") |
| 3124 | (version "2.0") |
| 3125 | (source |
| 3126 | (origin |
| 3127 | (method url-fetch) |
| 3128 | (uri (string-append "http://download.openwall.net/pub/projects/" |
| 3129 | "blists/blists-" version ".tar.gz")) |
| 3130 | (sha256 |
| 3131 | (base32 |
| 3132 | "1xll5wn7py3bbncbwrj172f56nz75c9gwfsa80rwd96ss9gfmp3c")))) |
| 3133 | (build-system gnu-build-system) |
| 3134 | (arguments |
| 3135 | `(#:tests? #f ; No tests |
| 3136 | #:phases |
| 3137 | (modify-phases %standard-phases |
| 3138 | (delete 'configure) |
| 3139 | (replace 'install |
| 3140 | (lambda* (#:key outputs #:allow-other-keys) |
| 3141 | (let* ((out (assoc-ref outputs "out")) |
| 3142 | (bin (string-append out "/bin"))) |
| 3143 | (install-file "bindex" bin) |
| 3144 | (install-file "bit" bin) |
| 3145 | #t)))))) |
| 3146 | (home-page "http://www.openwall.com/blists/") |
| 3147 | (synopsis "Web interface to mailing list archives") |
| 3148 | (description |
| 3149 | "Blists is a web interface to mailing list archives that works off |
| 3150 | indexed mbox files. There are two programs: @code{bindex} and @code{bit}. |
| 3151 | @code{bindex} generates or updates the index file (incremental updates |
| 3152 | are supported). @code{bit} is a CGI/SSI program that generates web pages |
| 3153 | on the fly. Both programs are written in C and are very fast.") |
| 3154 | (license license:expat))) |
| 3155 | |
| 3156 | (define-public swaks |
| 3157 | (package |
| 3158 | (name "swaks") |
| 3159 | (version "20190914.0") |
| 3160 | (source |
| 3161 | (origin |
| 3162 | (method url-fetch) |
| 3163 | (uri (string-append |
| 3164 | "https://jetmore.org/john/code/swaks/files/swaks-" |
| 3165 | version ".tar.gz")) |
| 3166 | (sha256 |
| 3167 | (base32 |
| 3168 | "12awq5z4sdd54cxprj834zajxhkpy4jwhzf1fhigcx1zbhdaacsp")))) |
| 3169 | (build-system perl-build-system) |
| 3170 | (inputs |
| 3171 | `(("perl-net-dns" ,perl-net-dns) |
| 3172 | ("perl-net-ssleay" ,perl-net-ssleay))) |
| 3173 | (arguments |
| 3174 | `(#:tests? #f ; No tests |
| 3175 | #:phases |
| 3176 | (modify-phases %standard-phases |
| 3177 | (delete 'configure) |
| 3178 | (replace 'build |
| 3179 | (lambda _ |
| 3180 | (invoke "pod2man" "doc/ref.pod" "swaks.1"))) |
| 3181 | (replace 'install |
| 3182 | (lambda* (#:key outputs #:allow-other-keys) |
| 3183 | (let ((out (assoc-ref outputs "out"))) |
| 3184 | (install-file "swaks" (string-append out "/bin")) |
| 3185 | (install-file "swaks.1" (string-append out "/share/man/man1"))) |
| 3186 | #t)) |
| 3187 | (add-after 'install 'wrap-program |
| 3188 | (lambda* (#:key outputs #:allow-other-keys) |
| 3189 | (wrap-program (string-append (assoc-ref outputs "out") |
| 3190 | "/bin/swaks") |
| 3191 | `("PERL5LIB" ":" = (,(getenv "PERL5LIB")))) |
| 3192 | #t))))) |
| 3193 | (home-page "https://jetmore.org/john/code/swaks/") |
| 3194 | (synopsis "Featureful SMTP test tool") |
| 3195 | (description "Swaks is a flexible, scriptable, transaction-oriented SMTP |
| 3196 | test tool. It handles SMTP features and extensions such as TLS, |
| 3197 | authentication, and pipelining; multiple versions of the SMTP protocol |
| 3198 | including SMTP, ESMTP, and LMTP; and multiple transport methods including |
| 3199 | unix-domain sockets, internet-domain sockets, and pipes to spawned processes. |
| 3200 | Options can be specified in environment variables, configuration files, and |
| 3201 | the command line allowing maximum configurability and ease of use for |
| 3202 | operators and scripters.") |
| 3203 | (license license:gpl2+))) |
| 3204 | |
| 3205 | (define-public alpine |
| 3206 | (package |
| 3207 | (name "alpine") |
| 3208 | (version "2.23.2") |
| 3209 | (source |
| 3210 | (origin |
| 3211 | (method git-fetch) |
| 3212 | ;; There are two versions: the plain continuation of Alpine without extra |
| 3213 | ;; patches and the version which adds extra fixes. Every distro uses |
| 3214 | ;; the patched version, and so do we to not break expectations. |
| 3215 | ;; http://alpine.freeiz.com/alpine/readme/README.patches |
| 3216 | (uri (git-reference |
| 3217 | (url "http://repo.or.cz/alpine.git") |
| 3218 | (commit (string-append "v" version)))) |
| 3219 | (file-name (git-file-name name version)) |
| 3220 | (sha256 |
| 3221 | (base32 "16ldmmcymrnpnbfc1kb2rhac7nzlc87wjawic4wfinkphd124d1y")) |
| 3222 | (modules '((guix build utils))) |
| 3223 | (snippet |
| 3224 | '(begin |
| 3225 | ;; Remove pre-built binaries scattered across the source repository. |
| 3226 | (for-each delete-file (find-files "." "\\.(dll|exe)")) |
| 3227 | #t)))) |
| 3228 | (build-system gnu-build-system) |
| 3229 | (arguments |
| 3230 | `(#:make-flags |
| 3231 | (list (string-append "CC=" ,(cc-for-target))) |
| 3232 | #:configure-flags (list (string-append "--with-ssl-include-dir=" |
| 3233 | (assoc-ref %build-inputs "openssl") |
| 3234 | "/include/openssl") |
| 3235 | (string-append "--with-ssl-dir=" |
| 3236 | (assoc-ref %build-inputs "openssl")) |
| 3237 | (string-append "--with-ssl-certs-dir=" |
| 3238 | "/etc/ssl/certs/") |
| 3239 | (string-append "--with-ssl-lib-dir=" |
| 3240 | (assoc-ref %build-inputs "openssl") |
| 3241 | "/lib") |
| 3242 | (string-append "--with-interactive-spellcheck=" |
| 3243 | (assoc-ref %build-inputs "aspell") |
| 3244 | "/bin/aspell") |
| 3245 | "--with-date-stamp=Thu 1 Jan 01:00:01 CET 1970") |
| 3246 | #:phases |
| 3247 | (modify-phases %standard-phases |
| 3248 | (add-after 'unpack 'assume-shadow-passwords |
| 3249 | ;; Alpine's configure script confuses ‘shadow password support’ with |
| 3250 | ;; ‘/etc/shadow exists in the build environment’. It does not. |
| 3251 | (lambda _ |
| 3252 | (substitute* "configure" |
| 3253 | (("test -f /etc/shadow") "true")) |
| 3254 | #t)) |
| 3255 | (add-after 'unpack 'make-reproducible |
| 3256 | (lambda _ |
| 3257 | ;; This removes time-dependent code to make alpine reproducible. |
| 3258 | (substitute* "pico/blddate.c" |
| 3259 | (("%02d-%s-%d") "1970-01-01")) |
| 3260 | #t))))) |
| 3261 | (inputs |
| 3262 | `(("ncurses" ,ncurses) |
| 3263 | ("openssl" ,openssl) |
| 3264 | ("gnutls" ,gnutls) |
| 3265 | ("openldap" ,openldap) |
| 3266 | ("cyrus-sasl" ,cyrus-sasl) |
| 3267 | ("mit-krb5" ,mit-krb5) |
| 3268 | ("aspell" ,aspell) |
| 3269 | ("tcl" ,tcl) |
| 3270 | ("linux-pam" ,linux-pam))) |
| 3271 | (home-page "https://repo.or.cz/alpine.git") |
| 3272 | (synopsis "Alternatively Licensed Program for Internet News and Email") |
| 3273 | (description |
| 3274 | "Alpine is a text-based mail and news client. Alpine includes several |
| 3275 | tools and applications: |
| 3276 | @enumerate |
| 3277 | @item alpine, the Alpine mailer |
| 3278 | @item pico, the standalone text editor, GNU nano's predecessor |
| 3279 | @item pilot, the standalone file system navigator |
| 3280 | @end enumerate\n") |
| 3281 | (license license:asl2.0))) |
| 3282 | |
| 3283 | (define-public balsa |
| 3284 | (package |
| 3285 | (name "balsa") |
| 3286 | (version "2.6.1") |
| 3287 | (source |
| 3288 | (origin |
| 3289 | (method url-fetch) |
| 3290 | (uri (string-append "https://pawsa.fedorapeople.org/balsa/" |
| 3291 | "balsa-" version ".tar.bz2")) |
| 3292 | (sha256 |
| 3293 | (base32 "1xkxx801p7sbfkn0bh3cz85wra4xf1z1zhjqqc80z1z1nln7fhb4")))) |
| 3294 | (build-system gnu-build-system) |
| 3295 | (arguments |
| 3296 | `(#:configure-flags |
| 3297 | '(;; Balsa tries to install additional MIME icons |
| 3298 | ;; under gtk+ directory. |
| 3299 | "--enable-extra-mimeicons=no" |
| 3300 | "--with-gtksourceview" |
| 3301 | "--with-canberra" |
| 3302 | "--with-spell-checker=gtkspell" |
| 3303 | "--with-gpgme" |
| 3304 | "--with-sqlite" |
| 3305 | "--with-compface" |
| 3306 | "--with-ldap"))) |
| 3307 | (inputs |
| 3308 | `(("cyrus-sasl" ,cyrus-sasl) |
| 3309 | ("enchant" ,enchant) |
| 3310 | ("gdk-pixbuf" ,gdk-pixbuf) |
| 3311 | ("gmime" ,gmime) |
| 3312 | ("gnutls" ,gnutls) |
| 3313 | ("gpgme" ,gpgme) |
| 3314 | ("gtk+" ,gtk+) |
| 3315 | ("gtksourceview" ,gtksourceview-3) |
| 3316 | ("gtkspell3" ,gtkspell3) |
| 3317 | ("libcanberra" ,libcanberra) |
| 3318 | ("libesmtp" ,libesmtp) |
| 3319 | ("libical" ,libical) |
| 3320 | ("libnotify" ,libnotify) |
| 3321 | ("libsecret" ,libsecret) |
| 3322 | ("openldap" ,openldap) |
| 3323 | ("sqlite" ,sqlite) |
| 3324 | ("webkitgtk" ,webkitgtk))) |
| 3325 | (native-inputs |
| 3326 | `(("compface" ,compface) |
| 3327 | ("glib" ,glib "bin") |
| 3328 | ("intltool" ,intltool) |
| 3329 | ("pkg-config" ,pkg-config) |
| 3330 | ("yelp-tools" ,yelp-tools))) |
| 3331 | (home-page "https://pawsa.fedorapeople.org/balsa") |
| 3332 | (synopsis "E-mail client for GNOME") |
| 3333 | (description "Balsa is a highly configurable and robust mail client for |
| 3334 | the GNOME desktop. It supports both POP3 and IMAP servers as well as the |
| 3335 | mbox, maildir and mh local mailbox formats. Balsa also supports SMTP and/or |
| 3336 | the use of a local MTA such as Sendmail.") |
| 3337 | (license license:gpl3+))) |
| 3338 | |
| 3339 | (define-public afew |
| 3340 | (package |
| 3341 | (name "afew") |
| 3342 | (version "1.2.0") |
| 3343 | (source |
| 3344 | (origin |
| 3345 | (method url-fetch) |
| 3346 | (uri (pypi-uri "afew" version)) |
| 3347 | (sha256 |
| 3348 | (base32 |
| 3349 | "121w7bd53xyibllxxbfykjj76n81kn1vgjqd22izyh67y8qyyk5r")))) |
| 3350 | (build-system python-build-system) |
| 3351 | (inputs |
| 3352 | `(("python-chardet" ,python-chardet) |
| 3353 | ("python-notmuch" ,python-notmuch))) |
| 3354 | (native-inputs |
| 3355 | `(("python-setuptools-scm" ,python-setuptools-scm))) |
| 3356 | (home-page "https://github.com/afewmail/afew") |
| 3357 | (synopsis "Initial tagging script for notmuch mail") |
| 3358 | (description "afew is an initial tagging script for notmuch mail. It |
| 3359 | provides automatic tagging each time new mail is registered with notmuch. It |
| 3360 | can add tags based on email headers or Maildir folders and can handle spam and |
| 3361 | killed threads.") |
| 3362 | (license license:isc))) |
| 3363 | |
| 3364 | (define-public pan |
| 3365 | (package |
| 3366 | (name "pan") |
| 3367 | (version "0.146") |
| 3368 | (source |
| 3369 | (origin |
| 3370 | (method url-fetch) |
| 3371 | (uri (string-append "http://pan.rebelbase.com/download/releases/" |
| 3372 | version "/source/" name "-" version ".tar.bz2")) |
| 3373 | (sha256 |
| 3374 | (base32 "17agd27sn4a7nahvkpg0w39kv74njgdrrygs74bbvpaj8rk2hb55")))) |
| 3375 | (arguments |
| 3376 | `(#:configure-flags '("--with-gtk3" "--with-gtkspell" "--with-gnutls" |
| 3377 | "--enable-libnotify" "--enable-manual" |
| 3378 | "--enable-gkr") |
| 3379 | #:phases |
| 3380 | (modify-phases %standard-phases |
| 3381 | (add-before 'configure 'patch-gpg2 |
| 3382 | (lambda* (#:key inputs #:allow-other-keys) |
| 3383 | (substitute* "pan/usenet-utils/gpg.cc" |
| 3384 | (("\"gpg2\"") (string-append "\"" |
| 3385 | (assoc-ref inputs "gnupg") |
| 3386 | "/bin/gpg\""))) |
| 3387 | #t))))) |
| 3388 | (inputs |
| 3389 | `(("gmime" ,gmime-2.6) |
| 3390 | ("gnupg" ,gnupg) |
| 3391 | ("gnutls" ,gnutls) |
| 3392 | ("gtk+" ,gtk+) |
| 3393 | ("gtkspell3" ,gtkspell3) |
| 3394 | ("libnotify" ,libnotify) |
| 3395 | ("libsecret" ,libsecret) |
| 3396 | ("libxml2" ,libxml2) |
| 3397 | ("zlib" ,zlib))) |
| 3398 | (native-inputs |
| 3399 | `(("gettext-minimal" ,gettext-minimal) |
| 3400 | ("itstool" ,itstool) |
| 3401 | ("pkg-config" ,pkg-config))) |
| 3402 | (build-system gnu-build-system) |
| 3403 | (home-page "http://pan.rebelbase.com/") |
| 3404 | (synopsis "Pan newsreader") |
| 3405 | (description "@code{pan} is a Usenet newsreader that's good at both text |
| 3406 | and binaries. It supports offline reading, scoring and killfiles, yEnc, NZB, |
| 3407 | PGP handling, multiple servers, and secure connections.") |
| 3408 | ;; License of the docs: fdl-1.1; Others: gpl2. |
| 3409 | (license (list license:fdl1.1+ license:gpl2)))) |
| 3410 | |
| 3411 | (define-public imapfilter |
| 3412 | (package |
| 3413 | (name "imapfilter") |
| 3414 | (version "2.6.16") |
| 3415 | (source |
| 3416 | (origin |
| 3417 | (method git-fetch) |
| 3418 | (uri (git-reference |
| 3419 | (url "https://github.com/lefcha/imapfilter") |
| 3420 | (commit (string-append "v" version)))) |
| 3421 | (file-name (git-file-name name version)) |
| 3422 | (sha256 |
| 3423 | (base32 "0f65sg6hhv6778fxwsz4hvarbm97dsb8jj0mg7a9qs273r35pqck")))) |
| 3424 | (build-system gnu-build-system) |
| 3425 | (arguments |
| 3426 | `(#:tests? #f |
| 3427 | #:make-flags |
| 3428 | (list (string-append "PREFIX=" (assoc-ref %outputs "out")) |
| 3429 | "CC=gcc") |
| 3430 | #:phases |
| 3431 | (modify-phases %standard-phases |
| 3432 | (delete 'configure)))) ; no configure script |
| 3433 | (native-inputs |
| 3434 | `(("lua" ,lua) |
| 3435 | ("pcre" ,pcre) |
| 3436 | ("openssl" ,openssl))) |
| 3437 | (home-page "https://github.com/lefcha/imapfilter") |
| 3438 | (synopsis "IMAP mail filtering utility") |
| 3439 | (description "IMAPFilter is a mail filtering utility. It connects |
| 3440 | to remote mail servers using IMAP, sends searching queries to the server and |
| 3441 | processes mailboxes based on the results. It can be used to delete, copy, |
| 3442 | move, flag, etc. messages residing in mailboxes at the same or different mail |
| 3443 | servers. The 4rev1 and 4 versions of IMAP are supported.") |
| 3444 | (license license:expat))) |
| 3445 | |
| 3446 | (define-public urlscan |
| 3447 | (package |
| 3448 | (name "urlscan") |
| 3449 | (version "0.9.5") |
| 3450 | (source |
| 3451 | (origin |
| 3452 | (method url-fetch) |
| 3453 | (uri (pypi-uri "urlscan" version)) |
| 3454 | (sha256 |
| 3455 | (base32 "07vcwirap0p4dkqrqblfn1q017slgd8m6qyijvbi3gxnr09pbyx2")))) |
| 3456 | (build-system python-build-system) |
| 3457 | (propagated-inputs |
| 3458 | `(("python-urwid" ,python-urwid))) |
| 3459 | (home-page "https://github.com/firecat53/urlscan") |
| 3460 | (synopsis "View/select the URLs in an email message or file") |
| 3461 | (description |
| 3462 | "Urlscan is a small program that is designed to integrate with the |
| 3463 | Mutt mail reader to allow you to easily launch a Web browser for URLs |
| 3464 | contained in email messages. It parses an email message or file and scans it |
| 3465 | for URLs and email addresses. It then displays the URLs and their context |
| 3466 | within the message, and allows you to choose one or more URLs to send to your |
| 3467 | Web browser. Alternatively, it send a list of all URLs to standard output. |
| 3468 | It is a replacement for the @command{urlview} program.") |
| 3469 | (license license:gpl2))) |
| 3470 | |
| 3471 | (define-public tnef |
| 3472 | (package |
| 3473 | (name "tnef") |
| 3474 | (version "1.4.18") |
| 3475 | (source |
| 3476 | (origin |
| 3477 | (method git-fetch) |
| 3478 | (uri (git-reference |
| 3479 | (url "https://github.com/verdammelt/tnef") |
| 3480 | (commit version))) |
| 3481 | (sha256 |
| 3482 | (base32 "104g48mcm00bgiyzas2vf86331w7bnw7h3bc11ib4lp7rz6zqfck")) |
| 3483 | (file-name (git-file-name name version)))) |
| 3484 | (build-system gnu-build-system) |
| 3485 | (native-inputs |
| 3486 | `(("autoconf" ,autoconf) |
| 3487 | ("automake" ,automake))) |
| 3488 | (arguments `(#:parallel-tests? #f)) ;tests are side-effect'y |
| 3489 | (home-page "https://github.com/verdammelt/tnef") |
| 3490 | (synopsis "Unpack @code{application/ms-tnef} attachments") |
| 3491 | (description |
| 3492 | "TNEF is a tar-like program that unpacks MIME attachments of type |
| 3493 | @code{application/ms-tnef}.") |
| 3494 | (license license:gpl2+))) |
| 3495 | |
| 3496 | (define-public mumi |
| 3497 | (let ((commit "5a578328199bab51a147fbadbce12c8d06959ed6") |
| 3498 | (revision "2")) |
| 3499 | (package |
| 3500 | (name "mumi") |
| 3501 | (version (git-version "0.0.1" revision commit)) |
| 3502 | (source (origin |
| 3503 | (method git-fetch) |
| 3504 | (uri (git-reference |
| 3505 | (url "https://git.elephly.net/software/mumi.git") |
| 3506 | (commit commit))) |
| 3507 | (file-name (git-file-name name version)) |
| 3508 | (sha256 |
| 3509 | (base32 |
| 3510 | "0hngv82gd19l4q7nnbf97r120z1yagsmkp0x3lc8haza5q4mc12c")))) |
| 3511 | (build-system gnu-build-system) |
| 3512 | (arguments |
| 3513 | `(#:modules ((guix build gnu-build-system) |
| 3514 | ((guix build guile-build-system) |
| 3515 | #:select (target-guile-effective-version)) |
| 3516 | (guix build utils)) |
| 3517 | #:imported-modules ((guix build guile-build-system) |
| 3518 | ,@%gnu-build-system-modules) |
| 3519 | |
| 3520 | #:configure-flags '("--localstatedir=/var") |
| 3521 | |
| 3522 | #:phases |
| 3523 | (modify-phases %standard-phases |
| 3524 | (add-after 'install 'wrap-executable |
| 3525 | (lambda* (#:key outputs #:allow-other-keys) |
| 3526 | (let* ((out (assoc-ref outputs "out")) |
| 3527 | (bin (string-append out "/bin")) |
| 3528 | (version (target-guile-effective-version)) |
| 3529 | (scm (string-append out "/share/guile/site/" version)) |
| 3530 | (go (string-append out "/lib/guile/" version |
| 3531 | "/site-ccache"))) |
| 3532 | (wrap-program (string-append bin "/mumi") |
| 3533 | `("GUILE_LOAD_PATH" ":" prefix |
| 3534 | (,scm ,(getenv "GUILE_LOAD_PATH"))) |
| 3535 | `("GUILE_LOAD_COMPILED_PATH" ":" prefix |
| 3536 | (,go ,(getenv "GUILE_LOAD_COMPILED_PATH")))) |
| 3537 | #t)))))) |
| 3538 | (inputs |
| 3539 | `(("guile-email" ,guile-email) |
| 3540 | ("guile-fibers" ,guile-fibers) |
| 3541 | ("guile-gcrypt" ,guile-gcrypt) |
| 3542 | ("guile-json" ,guile-json-3) |
| 3543 | ("guile-redis" ,guile-redis) |
| 3544 | ("guile-syntax-highlight" ,guile-syntax-highlight) |
| 3545 | ("guile-webutils" ,guile-webutils) |
| 3546 | ("guile-xapian" ,guile-xapian) |
| 3547 | ("guile" ,guile-3.0) |
| 3548 | ("mailutils" ,mailutils))) |
| 3549 | (native-inputs |
| 3550 | `(("autoconf" ,autoconf) |
| 3551 | ("automake" ,automake) |
| 3552 | ("pkg-config" ,pkg-config))) |
| 3553 | (home-page "https://git.elephly.net/software/mumi.git") |
| 3554 | (synopsis "Debbugs web interface") |
| 3555 | (description "Mumi is a Debbugs web interface.") |
| 3556 | (license license:agpl3+)))) |
| 3557 | |
| 3558 | (define-public ytnef |
| 3559 | (package |
| 3560 | (name "ytnef") |
| 3561 | (version "1.9.3") |
| 3562 | (source (origin |
| 3563 | (method git-fetch) |
| 3564 | (uri (git-reference |
| 3565 | (url "https://github.com/Yeraze/ytnef") |
| 3566 | (commit (string-append "v" version)))) |
| 3567 | (file-name (git-file-name name version)) |
| 3568 | (sha256 |
| 3569 | (base32 |
| 3570 | "07h48s5qf08503pp9kafqbwipdqghiif22ghki7z8j67gyp04l6l")))) |
| 3571 | (build-system gnu-build-system) |
| 3572 | (native-inputs |
| 3573 | `(("autoconf" ,autoconf) |
| 3574 | ("automake" ,automake) |
| 3575 | ("libtool" ,libtool))) |
| 3576 | (home-page "https://github.com/Yeraze/ytnef/") |
| 3577 | (synopsis "TNEF stream reader for winmail.dat files") |
| 3578 | (description "This package provides a TNEF stream reader library and |
| 3579 | related tools to process winmail.dat files.") |
| 3580 | (license license:gpl2+))) |
| 3581 | |
| 3582 | (define-public public-inbox |
| 3583 | (package |
| 3584 | (name "public-inbox") |
| 3585 | (version "1.5.0") |
| 3586 | (source |
| 3587 | (origin (method git-fetch) |
| 3588 | (uri (git-reference |
| 3589 | (url "https://public-inbox.org") |
| 3590 | (commit (string-append "v" version)))) |
| 3591 | (sha256 |
| 3592 | (base32 |
| 3593 | "03zj7shdl3vibs7k5lr673bwcf8j1xx8is3mjz34ca4cdh6p5j2k")) |
| 3594 | (file-name (git-file-name name version)))) |
| 3595 | (build-system perl-build-system) |
| 3596 | (arguments |
| 3597 | '(#:phases |
| 3598 | (modify-phases %standard-phases |
| 3599 | (add-before 'configure 'qualify-paths |
| 3600 | (lambda _ |
| 3601 | ;; Use absolute paths for 'xapian-compact'. |
| 3602 | (let ((xapian-compact (which "xapian-compact"))) |
| 3603 | (substitute* "script/public-inbox-compact" |
| 3604 | (("xapian-compact") xapian-compact))) |
| 3605 | #t)) |
| 3606 | (add-before 'check 'pre-check |
| 3607 | (lambda _ |
| 3608 | (substitute* "t/spawn.t" |
| 3609 | (("\\['env'\\]") (string-append "['" (which "env") "']"))) |
| 3610 | (substitute* "t/ds-leak.t" |
| 3611 | (("/bin/sh") (which "sh"))) |
| 3612 | (invoke "./certs/create-certs.perl") |
| 3613 | ;; XXX: This test fails due to zombie process is not reaped by |
| 3614 | ;; the builder. |
| 3615 | (substitute* "t/httpd-unix.t" |
| 3616 | (("^SKIP: \\{") "SKIP: { skip('Guix');")) |
| 3617 | #t)) |
| 3618 | (add-after 'install 'wrap-programs |
| 3619 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 3620 | (let ((out (assoc-ref outputs "out"))) |
| 3621 | (for-each |
| 3622 | (lambda (prog) |
| 3623 | (wrap-program prog |
| 3624 | ;; Let those scripts find their perl modules. |
| 3625 | `("PERL5LIB" ":" prefix |
| 3626 | (,(string-append out "/lib/perl5/site_perl") |
| 3627 | ,(getenv "PERL5LIB"))) |
| 3628 | ;; 'git' is invoked in various files of the PublicInbox |
| 3629 | ;; perl module. |
| 3630 | `("PATH" ":" prefix |
| 3631 | (,(string-append (assoc-ref inputs "git") "/bin"))))) |
| 3632 | (find-files (string-append out "/bin")))) |
| 3633 | #t))))) |
| 3634 | (native-inputs |
| 3635 | `(("xapian" ,xapian) |
| 3636 | ;; For testing. |
| 3637 | ("lsof" ,lsof) |
| 3638 | ("openssl" ,openssl))) |
| 3639 | (inputs |
| 3640 | `(("git" ,git) |
| 3641 | ("perl-dbd-sqlite" ,perl-dbd-sqlite) |
| 3642 | ("perl-dbi" ,perl-dbi) |
| 3643 | ("perl-email-address-xs" ,perl-email-address-xs) |
| 3644 | ("perl-email-mime-contenttype" ,perl-email-mime-contenttype) |
| 3645 | ("perl-email-mime" ,perl-email-mime) |
| 3646 | ("perl-email-simple" ,perl-email-simple) |
| 3647 | ("perl-net-server" ,perl-net-server) |
| 3648 | ("perl-filesys-notify-simple" ,perl-filesys-notify-simple) |
| 3649 | ("perl-plack-middleware-deflater" ,perl-plack-middleware-deflater) |
| 3650 | ("perl-plack-middleware-reverseproxy" ,perl-plack-middleware-reverseproxy) |
| 3651 | ("perl-plack" ,perl-plack) |
| 3652 | ("perl-search-xapian" ,perl-search-xapian) |
| 3653 | ("perl-timedate" ,perl-timedate) |
| 3654 | ("perl-uri-escape" ,perl-uri-escape) |
| 3655 | ;; For testing. |
| 3656 | ("perl-ipc-run" ,perl-ipc-run) |
| 3657 | ("perl-xml-feed" ,perl-xml-feed))) |
| 3658 | (home-page "https://public-inbox.org/README.html") |
| 3659 | (synopsis "Archive mailing lists in git repositories") |
| 3660 | (description |
| 3661 | "public-inbox implements the sharing of an email inbox via git to |
| 3662 | complement or replace traditional mailing lists. Readers may read via NNTP, |
| 3663 | Atom feeds or HTML archives.") |
| 3664 | (license license:agpl3+))) |
| 3665 | |
| 3666 | (define-public sylpheed |
| 3667 | (package |
| 3668 | (name "sylpheed") |
| 3669 | (version "3.7.0") |
| 3670 | (source (origin |
| 3671 | (method url-fetch) |
| 3672 | (uri (string-append "https://sylpheed.sraoss.jp/sylpheed/v3.7/" |
| 3673 | name "-" version ".tar.xz")) |
| 3674 | (sha256 |
| 3675 | (base32 |
| 3676 | "0j9y5vdzch251s264diw9clrn88dn20bqqkwfmis9l7m8vmwasqd")))) |
| 3677 | (build-system gnu-build-system) |
| 3678 | (native-inputs |
| 3679 | `(("pkg-config" ,pkg-config))) |
| 3680 | (inputs |
| 3681 | `(("bogofilter" ,bogofilter) |
| 3682 | ("compface" ,compface) |
| 3683 | ("gnupg" ,gnupg-1) |
| 3684 | ("gpgme" ,gpgme) |
| 3685 | ("gtk+-2.0" ,gtk+-2) |
| 3686 | ("gtkspell" ,gtkspell3) |
| 3687 | ("libnsl" ,libnsl) |
| 3688 | ("openldap" ,openldap) |
| 3689 | ("openssl" ,openssl))) |
| 3690 | (home-page "https://sylpheed.sraoss.jp/en/") |
| 3691 | (synopsis "Lightweight GTK+ email client") |
| 3692 | (description |
| 3693 | "Sylpheed is a simple, lightweight but featureful, and easy-to-use e-mail |
| 3694 | client. Sylpheed provides intuitive user-interface. Sylpheed is also |
| 3695 | designed for keyboard-oriented operation.") |
| 3696 | (license license:gpl2+))) |
| 3697 | |
| 3698 | (define-public python-authres |
| 3699 | (package |
| 3700 | (name "python-authres") |
| 3701 | (version "1.2.0") |
| 3702 | (source |
| 3703 | (origin |
| 3704 | (method url-fetch) |
| 3705 | (uri (pypi-uri "authres" version)) |
| 3706 | (sha256 |
| 3707 | (base32 |
| 3708 | "1dr5zpqnb54h4f5ax8334l1dcp8j9083d7v4vdi1xqkwmnavklck")))) |
| 3709 | (build-system python-build-system) |
| 3710 | (arguments |
| 3711 | '(#:phases |
| 3712 | (modify-phases %standard-phases |
| 3713 | (replace 'check |
| 3714 | ;; Run doctests as described in the README. |
| 3715 | (lambda _ |
| 3716 | (invoke "python" "-m" "authres" "-v")))))) |
| 3717 | (home-page "https://launchpad.net/authentication-results-python") |
| 3718 | (synopsis "Authentication-Results email header creator and parser") |
| 3719 | (description |
| 3720 | "This Python module can be used to generate and parse RFC 5451/7001/7601 |
| 3721 | @code{Authentication-Results} email headers. It supports extensions such as: |
| 3722 | @itemize |
| 3723 | @item RFC 5617 DKIM/ADSP |
| 3724 | @item RFC 6008 DKIM signature identification (@code{header.b}) |
| 3725 | @item RFC 6212 @acronym{VBR, Vouch By Reference} |
| 3726 | @item RFC 6577 @acronym{SPF, Sender Policy Framework} |
| 3727 | @item RFC 7281 @code{Authentication-Results} registration for S/MIME |
| 3728 | @item RFC 7293 The @code{Require-Recipient-Valid-Since} header field |
| 3729 | @item RFC 7489 @acronym{DMARC, Domain-based Message Authentication Reporting |
| 3730 | and Conformance} |
| 3731 | @item @acronym{ARC, Authenticated Received Chain} |
| 3732 | (draft-ietf-dmarc-arc-protocol-08) |
| 3733 | @end itemize\n") |
| 3734 | (license license:asl2.0))) |
| 3735 | |
| 3736 | (define-public python-dkimpy |
| 3737 | (package |
| 3738 | (name "python-dkimpy") |
| 3739 | (version "1.0.5") |
| 3740 | (source |
| 3741 | (origin |
| 3742 | (method url-fetch) |
| 3743 | (uri (pypi-uri "dkimpy" version)) |
| 3744 | (sha256 |
| 3745 | (base32 "088iz5cqjqh4c7141d94pvn13bh25aizqlrifwv6fs5g16zj094s")))) |
| 3746 | (build-system python-build-system) |
| 3747 | (arguments |
| 3748 | '(#:phases |
| 3749 | (modify-phases %standard-phases |
| 3750 | (add-after 'patch-source-shebangs 'patch-more-source |
| 3751 | (lambda* (#:key inputs #:allow-other-keys) |
| 3752 | (let ((openssl (assoc-ref inputs "openssl"))) |
| 3753 | (substitute* "dkim/dknewkey.py" |
| 3754 | (("/usr/bin/openssl") (string-append openssl "/bin/openssl")))) |
| 3755 | #t)) |
| 3756 | (replace 'check |
| 3757 | (lambda _ |
| 3758 | (invoke "python" "test.py")))))) |
| 3759 | (propagated-inputs |
| 3760 | `(("python-dnspython" ,python-dnspython))) |
| 3761 | (native-inputs |
| 3762 | `(("python-authres" ,python-authres) |
| 3763 | ("python-pynacl" ,python-pynacl))) |
| 3764 | (inputs |
| 3765 | `(("openssl" ,openssl))) |
| 3766 | (home-page "https://launchpad.net/dkimpy") |
| 3767 | (synopsis "DKIM (DomainKeys Identified Mail)") |
| 3768 | (description "Python module that implements @dfn{DKIM} (DomainKeys |
| 3769 | Identified Mail) email signing and verification (RFC6376). It also provides |
| 3770 | helper scripts for command line signing and verification. It supports DKIM |
| 3771 | signing/verifying of ed25519-sha256 signatures (RFC 8463). It also supports |
| 3772 | the RFC 8617 Authenticated Received Chain (ARC) protocol.") |
| 3773 | (license license:bsd-3))) |
| 3774 | |
| 3775 | (define-public python-authheaders |
| 3776 | (package |
| 3777 | (name "python-authheaders") |
| 3778 | (version "0.13.0") |
| 3779 | (source |
| 3780 | (origin |
| 3781 | (method url-fetch) |
| 3782 | (uri (pypi-uri "authheaders" version)) |
| 3783 | (sha256 |
| 3784 | (base32 |
| 3785 | "14k6i72k5f8dyvps8vc0aq0cczc8lvqpgjfjzsy6qqychjvjcmwk")))) |
| 3786 | (build-system python-build-system) |
| 3787 | (propagated-inputs |
| 3788 | `(("python-authres" ,python-authres) |
| 3789 | ("python-dkimpy" ,python-dkimpy) |
| 3790 | ("python-dnspython" ,python-dnspython) |
| 3791 | ("python-publicsuffix2" ,python-publicsuffix2))) |
| 3792 | (home-page "https://github.com/ValiMail/authentication-headers") |
| 3793 | (synopsis "Library wrapping email authentication header verification and generation") |
| 3794 | (description |
| 3795 | "This is a Python library for the generation of email authentication |
| 3796 | headers. The library can perform DKIM, SPF, and DMARC validation, and the |
| 3797 | results are packaged into the Authentication-Results header. The library can |
| 3798 | DKIM and ARC sign messages and output the corresponding signature headers.") |
| 3799 | ;; The package's metadata claims it were MIT licensed, but the source file |
| 3800 | ;; headers disagree. MPL-2 for the public suffix list. |
| 3801 | (license (list license:zpl2.1 license:zlib license:mpl2.0)))) |
| 3802 | |
| 3803 | (define-public python-aiosmtpd |
| 3804 | (package |
| 3805 | (name "python-aiosmtpd") |
| 3806 | (version "1.2.1") |
| 3807 | (source |
| 3808 | (origin |
| 3809 | (method git-fetch) |
| 3810 | (uri (git-reference |
| 3811 | (url "https://github.com/aio-libs/aiosmtpd") |
| 3812 | (commit version))) |
| 3813 | (sha256 |
| 3814 | (base32 "14c30dm6jzxiblnsah53fdv68vqhxwvb9x0aq9bc4vcdas747vr7")) |
| 3815 | (file-name (git-file-name name version)))) |
| 3816 | (build-system python-build-system) |
| 3817 | (arguments |
| 3818 | '(#:phases |
| 3819 | (modify-phases %standard-phases |
| 3820 | (add-after 'unpack 'delete-failing-tests |
| 3821 | (lambda _ |
| 3822 | ;; This test uses an expired certificate. |
| 3823 | (delete-file "aiosmtpd/tests/test_smtps.py") |
| 3824 | #t)) |
| 3825 | (replace 'check |
| 3826 | (lambda _ |
| 3827 | (invoke "python" "-m" "nose2" "-v")))))) |
| 3828 | (native-inputs |
| 3829 | `(("python-flufl-testing" ,python-flufl-testing) |
| 3830 | ("python-nose2" ,python-nose2))) |
| 3831 | (propagated-inputs |
| 3832 | `(("python-atpublic" ,python-atpublic))) |
| 3833 | (home-page "https://aiosmtpd.readthedocs.io/") |
| 3834 | (synopsis "Asyncio based SMTP server") |
| 3835 | (description |
| 3836 | "This project is a reimplementation of the Python stdlib @code{smtpd.py} |
| 3837 | based on asyncio.") |
| 3838 | (license (list license:asl2.0 |
| 3839 | license:lgpl3)))) ; only for setup_helpers.py |