diff options
Diffstat (limited to '.bin/get-mailbox-local')
-rwxr-xr-x | .bin/get-mailbox-local | 11 |
1 files changed, 11 insertions, 0 deletions
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} |