commit 20cfff4a2595c86ae1959eae6cf0ed966e766337 parent b7cb134a9bcb93f54a572de27ff59dff5ab3265c Author: Mark Feller <mjfeller1992@gmail.com> Date: Fri, 19 Jun 2020 13:23:27 -0600 add archiving to notmuch script Diffstat:
M | dots/.local/bin/notmuch_delete | | | 11 | +++++++---- |
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/dots/.local/bin/notmuch_delete b/dots/.local/bin/notmuch_delete @@ -1,5 +1,9 @@ -#!/bin/sh -set -e +#!/bin/sh -e + +archive() { + mv -f $1 $HOME/mail/archive/ +} notmuch search --output=files tag:deleted | tr '\n' '\0' | xargs -0 -L 1 rm -notmuch new- \ No newline at end of file +notmuch search --output=files tag:archived | xargs archive +notmuch new