From e7b2188fe8dd715603dbd509fc62de6e872933a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 4 Jan 2022 18:16:12 +0100 Subject: Tue Jan 4 06:16:12 PM CET 2022 --- .bin/get-mailbox-local | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .bin/get-mailbox-local (limited to '.bin/get-mailbox-local') diff --git a/.bin/get-mailbox-local b/.bin/get-mailbox-local new file mode 100755 index 0000000..b579016 --- /dev/null +++ b/.bin/get-mailbox-local @@ -0,0 +1,11 @@ +#!/bin/sh + +root_dir=$(readlink -f ${1}) + +mailboxes=$(find "${1}" -name "cur" | + xargs dirname | + sed "s@$root_dir/@+@g" | + grep "${2:-.*}" | + sort) + +echo ${mailboxes} -- cgit v1.2.3