From: pinoaffe <pinoaffe@gmail.com>
To: 65976@debbugs.gnu.org
Cc: pinoaffe <pinoaffe@gmail.com>
Subject: [bug#65976] [PATCH v3 4/4] gnu: Add mailctl.
Date: Mon, 25 Sep 2023 22:21:34 +0200 [thread overview]
Message-ID: <150f319bd7c6926ae3a6c9e0352852526357cfa5.1695671343.git.pinoaffe@gmail.com> (raw)
In-Reply-To: <6ed1b70e5e02a6c46aedf8912ed8d3d5bfa247a8.1695671343.git.pinoaffe@gmail.com>
* gnu/packages/mail.scm (mailctl): New variable.
---
gnu/packages/mail.scm | 58 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index ecaab1c7cd..4fd3e80d90 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -52,6 +52,7 @@
;;; Copyright © 2022 jgart <jgart@dismail.de>
;;; Copyright © 2022 ( <paren@disroot.org>
;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
+;;; Copyright © 2023 pinoaffe <pinoaffe@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -112,6 +113,7 @@ (define-module (gnu packages mail)
#:use-module (gnu packages guile)
#:use-module (gnu packages guile-xyz)
#:use-module (gnu packages haskell-xyz)
+ #:use-module (gnu packages haskell-web)
#:use-module (gnu packages icu4c)
#:use-module (gnu packages kerberos)
#:use-module (gnu packages language)
@@ -176,6 +178,7 @@ (define-module (gnu packages mail)
#:use-module (guix build-system gnu)
#:use-module (guix build-system go)
#:use-module (guix build-system guile)
+ #:use-module (guix build-system haskell)
#:use-module (guix build-system meson)
#:use-module (guix build-system perl)
#:use-module (guix build-system pyproject)
@@ -1145,6 +1148,61 @@ (define-public offlineimap3
(define-public offlineimap
(deprecated-package "offlineimap" offlineimap3))
+(define-public mailctl
+ (package
+ (name "mailctl")
+ (version "0.9.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pdobsan/mailctl")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "18mjlvf8h0afirlr2pw30p9cpcyhfw4g41c0liqbsan684cj3dk1"))))
+ (build-system haskell-build-system)
+ (home-page "https://github.com/pdobsan/mailctl")
+ (arguments `(#:phases (modify-phases %standard-phases
+ ;; The mailctl.cabal file specifies a minimum cabal
+ ;; version of 3.8 (which is newer than the cabal
+ ;; packaged in guix), but doesn't use any new
+ ;; features and it builds with 3.6.
+ (add-after 'unpack 'patch-cabal-version
+ (lambda _
+ (substitute* "mailctl.cabal"
+ (("3.8") "3.6")))))))
+ (inputs (list ghc-aeson
+ ghc-hsyslog
+ ghc-http-conduit
+ ghc-network-uri
+ ghc-optparse-applicative
+ ghc-pretty-simple
+ ghc-twain
+ ghc-base64
+ ghc-strings
+ ghc-utf8-string
+ ghc-warp
+ ghc-yaml))
+ (synopsis "Authorize and renew OAuth2 credentials for IMAP/SMTP clients")
+ (description "@code{mailctl} provides IMAP/SMTP clients with the
+capabilities of renewal and authorization of OAuth2 credentials.
+
+Many IMAP/SMTP clients, like @code{offlineimap}, @code{msmtp}, @code{fdm},
+@code{isync}, @code{neomutt} or @code{mutt} can use OAuth2 access tokens but
+lack the ability to renew and/or authorize OAuth2 credentials. The purpose of
+@code{mailctl} is to provide these missing capabilities by acting as a kind of
+smart password manager. In particular, access token renewal happens
+automatically in the background transparent to the user.
+
+If an IMAP/SMTP client cannot use an OAuth2 access token itself it may be
+\"wrapped\" with @code{fdm} and @code{msmtp} with the help of @code{mailctl}.
+
+@code{mailctl} also has some functionalities to manage the orchestration of a
+mailing system comprised of @code{msmtp}, @code{fdm}, and @code{mutt} or
+similar ones.")
+ (license license:bsd-3)))
+
(define-public emacs-mew
(let ((commit "35772ee0b44dd7e56b0f3899b27fa545b2bc6f03")
(revision "1"))
--
2.41.0
next prev parent reply other threads:[~2023-09-25 20:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-14 10:39 [bug#65976] [PATCH 1/3] gnu: Add ghc-hsyslog pinoaffe
2023-09-14 10:42 ` [bug#65976] [PATCH 2/3] gnu: Add ghc-twain pinoaffe
2023-09-14 10:43 ` [bug#65976] [PATCH 3/3] gnu: Add mailctl pinoaffe
2023-09-25 20:21 ` [bug#65976] [PATCH v3 1/4] gnu: Add ghc-hsyslog pinoaffe
2023-09-25 20:21 ` [bug#65976] [PATCH v3 2/4] gnu: Add ghc-twain pinoaffe
2023-09-25 20:21 ` [bug#65976] [PATCH v3 3/4] gnu: Add ghc-strings pinoaffe
2023-09-25 20:21 ` pinoaffe [this message]
2023-10-24 9:24 ` [bug#65976] [PATCH v4 1/4] gnu: Add ghc-twain pinoaffe
2023-10-24 9:24 ` [bug#65976] [PATCH v4 2/4] gnu: Add ghc-hsyslog pinoaffe
2023-10-24 9:24 ` [bug#65976] [PATCH v4 3/4] gnu: Add ghc-strings pinoaffe
2023-10-24 9:24 ` [bug#65976] [PATCH v4 4/4] gnu: Add mailctl pinoaffe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=150f319bd7c6926ae3a6c9e0352852526357cfa5.1695671343.git.pinoaffe@gmail.com \
--to=pinoaffe@gmail.com \
--cc=65976@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).