diff options
author | lassulus <git@lassul.us> | 2023-09-07 12:26:31 +0200 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-09-07 13:50:26 +0200 |
commit | f55307fd73af235069744dd5155fda0bc73fe613 (patch) | |
tree | f048d7750a50e48493505a08784c96d07d291f89 /lass/5pkgs/review-mail-queue | |
parent | 85ae348bf3f53125c8281669a32bf007dc0063be (diff) |
lass: migrate away
Diffstat (limited to 'lass/5pkgs/review-mail-queue')
-rw-r--r-- | lass/5pkgs/review-mail-queue/default.nix | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/lass/5pkgs/review-mail-queue/default.nix b/lass/5pkgs/review-mail-queue/default.nix deleted file mode 100644 index c8c66706c..000000000 --- a/lass/5pkgs/review-mail-queue/default.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ pkgs }: let - - review = pkgs.writers.writeBash "review-mail" '' - mail="$1" - ${pkgs.exim}/bin/exim -Mvc "$mail" | grep -E 'Subject:|To:' - ${pkgs.exim}/bin/exim -Mvl "$mail" - while :; do - read -p 'delete?' key - case "$key" in - v*) - ${pkgs.exim}/bin/exim -Mvc "$mail" - ;; - d*) - ${pkgs.exim}/bin/exim -Mrm "$mail" - break - ;; - r*) - ${pkgs.exim}/bin/exim -Mt "$mail" - break - ;; - n*) - break - ;; - esac - done - echo '-------------------' - echo '-------------------' - echo '-------------------' - echo '-------------------' - echo '-------------------' - ''; - -in pkgs.writers.writeBashBin "review-mail" '' - for mail in $(${pkgs.exim}/bin/exim -bp \ - | ${pkgs.gnugrep}/bin/grep frozen \ - | ${pkgs.gawk}/bin/awk '{print $3}'); do - ${review} "$mail" - done -'' |