guckes

find mailboxes

Nov 4th, 2018
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. NEOMUTT: finding all mailboxes in ~/Mail:
  2. find ~/Mail -mindepth 1 \
  3. -path '*/.*' \
  4. -prune -o -regex '.*/\(cur\|new\|tmp\)$' \
  5. -prune -o -print | \
  6. sed "s.$(readlink -f ~/Mail).+.g" \
  7. | sort | tr '\n' ' '`
  8. .
  9. mailboxes $(cd ~/Mail;find . -type f -printf '+%f ')
Advertisement
Add Comment
Please, Sign In to add comment