diff options
| author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-12-12 10:50:38 +0100 |
|---|---|---|
| committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-12-12 10:50:38 +0100 |
| commit | 2c4603c01a36b4ed54ada906879f1c02956cd4c2 (patch) | |
| tree | 687ceb20f50da48b7dd1f26d993997bd64eac606 | |
| parent | c37c0bd0f92d34d36de1c288e765c5f2d3b08551 (diff) | |
| download | nixos-2c4603c01a36b4ed54ada906879f1c02956cd4c2.tar nixos-2c4603c01a36b4ed54ada906879f1c02956cd4c2.tar.gz nixos-2c4603c01a36b4ed54ada906879f1c02956cd4c2.tar.bz2 nixos-2c4603c01a36b4ed54ada906879f1c02956cd4c2.tar.xz nixos-2c4603c01a36b4ed54ada906879f1c02956cd4c2.zip | |
List all subscribers
| -rw-r--r-- | ymir/mlmmj-expose.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ymir/mlmmj-expose.nix b/ymir/mlmmj-expose.nix index 0873b0f7..122fafa4 100644 --- a/ymir/mlmmj-expose.nix +++ b/ymir/mlmmj-expose.nix | |||
| @@ -69,6 +69,11 @@ let | |||
| 69 | "mlmmj-get-exposed" -> do | 69 | "mlmmj-get-exposed" -> do |
| 70 | args <- getArgs | 70 | args <- getArgs |
| 71 | case args of | 71 | case args of |
| 72 | [(dropTrailingPathSeperator -> listDir), (map toLower -> ident)] -> do | ||
| 73 | setCurrentDirectory listDir | ||
| 74 | identities <- getIdentities | ||
| 75 | unless (ident `elem` identities) . die $ "Unknown sender: ‘" ++ ident ++ "’" | ||
| 76 | mapM_ (\sub -> putStrLn $ sub ++ " " ++ takeFileName listDir ++ "+" ++ hash' (ident, sub) ++ "@subs.lists.yggdrasil.li") =<< getSubscribers | ||
| 72 | (dropTrailingPathSeparator -> listDir) : (map toLower -> ident) : (map (map toLower) -> recipients) -> do | 77 | (dropTrailingPathSeparator -> listDir) : (map toLower -> ident) : (map (map toLower) -> recipients) -> do |
| 73 | setCurrentDirectory listDir | 78 | setCurrentDirectory listDir |
| 74 | identities <- getIdentities | 79 | identities <- getIdentities |
