Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #/ Usage: newmsg /path/to/Maildir
- test -z "$1" && grep '^#/' <"$0" | cut -c4- >&2 && exit 2
- test "$1" && ls | tail -n1 | xargs -I {} egrep "^(From|Subject):" "{}" | cut -d ' ' -f2-
Add Comment
Please, Sign In to add comment