Commit 1c8f6c340b72

Vincent Demeester <vincent@sbr.pm>
2019-02-26 17:19:00
mails: add a msmtp script…
… for additionnal args 😓 Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 679d1a2
Changed files (1)
modules
profiles
modules/profiles/mails.nix
@@ -128,5 +128,13 @@ in
     programs.notmuch.enable = true;
     programs.msmtp.enable = true;
     home.packages = with pkgs; [ mu ];
+    home.file."bin/msmtp" = {
+      text = ''
+      #!${pkgs.stdenv.shell}
+
+      ${pkgs.msmtp}/bin/msmtp --read-envelope-from $@
+      '';
+      executable = true;
+    };
   };
 }