diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-11-09 20:42:56 +0100 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-11-09 20:42:56 +0100 |
commit | c8a6dd4a334382b345c8e713989ae15e290b8bff (patch) | |
tree | 4534b277ec835fdbf55c46fc6da8beaba06f3bae | |
parent | 43cc60eeba4da45d7a25a8a9e75319f7b88f89df (diff) | |
download | nixos-c8a6dd4a334382b345c8e713989ae15e290b8bff.tar nixos-c8a6dd4a334382b345c8e713989ae15e290b8bff.tar.gz nixos-c8a6dd4a334382b345c8e713989ae15e290b8bff.tar.bz2 nixos-c8a6dd4a334382b345c8e713989ae15e290b8bff.tar.xz nixos-c8a6dd4a334382b345c8e713989ae15e290b8bff.zip |
logmessages
-rw-r--r-- | ymir/mlmmj-expose.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ymir/mlmmj-expose.nix b/ymir/mlmmj-expose.nix index 077f6c81..87abeb65 100644 --- a/ymir/mlmmj-expose.nix +++ b/ymir/mlmmj-expose.nix | |||
@@ -14,6 +14,7 @@ let | |||
14 | import System.Exit | 14 | import System.Exit |
15 | import System.Directory | 15 | import System.Directory |
16 | import System.Process | 16 | import System.Process |
17 | import Text.printf | ||
17 | 18 | ||
18 | import Data.Char | 19 | import Data.Char |
19 | 20 | ||
@@ -44,6 +45,7 @@ let | |||
44 | uuid <- UUID.nextRandom | 45 | uuid <- UUID.nextRandom |
45 | let fName = "queue" </> "exposed" <.> UUID.toString uuid | 46 | let fName = "queue" </> "exposed" <.> UUID.toString uuid |
46 | getContents >>= writeFile fName | 47 | getContents >>= writeFile fName |
48 | hPrintf stdout "Forwarding mail to <%s>, subscribed to %s\n" recipient (takeBaseName listDir) | ||
47 | callProcess "${pkgs.mlmmj}/bin/mlmmj-send" ["-L", listDir, "-l", "6", "-m", fName, "-T", recipient] | 49 | callProcess "${pkgs.mlmmj}/bin/mlmmj-send" ["-L", listDir, "-l", "6", "-m", fName, "-T", recipient] |
48 | removeFile fName | 50 | removeFile fName |
49 | [] -> die "Unknown extension" | 51 | [] -> die "Unknown extension" |