From c994dc0c577b1b18d455973af0bb7d4ababc3ce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 27 Mar 2022 10:28:47 +0100 Subject: [PATCH] allow viewing html emails in the terminal --- nixos/email-accounts.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/email-accounts.nix b/nixos/email-accounts.nix index 307d8d11..eaefd6cc 100644 --- a/nixos/email-accounts.nix +++ b/nixos/email-accounts.nix @@ -63,6 +63,10 @@ in { services.mbsync.enable = true; + home.file.".mailcap".text = '' + text/html; ${pkgs.w3m}/bin/w3m -dump -o document_charset=%{charset} '%s'; nametemplate=%s.html; copiousoutput + ''; + systemd.user.services."proton-bridge" = { Unit.Description = "Bridge to ProtonMail"; Install.WantedBy = [ "default.target" "mbsync.service" ];