X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=scripts.git;a=blobdiff_plain;f=gma.sh;h=8725acc97a884103faf0696a297cb2a51b371bf8;hp=640c7f3cb4c16955526b0ed771903a96b3d70dff;hb=88cc045a5eecced9d8f71c2a8e0aef67a8d94368;hpb=64b41be2a78d2dc2d500f140491ed69a890d82ad diff --git a/gma.sh b/gma.sh index 640c7f3..8725acc 100755 --- a/gma.sh +++ b/gma.sh @@ -20,7 +20,7 @@ set -e function usage () { - echo "gma.sh [--body] [--from|--to|--fromto] []" + echo "gma.sh [--body] [--subject|--from|--to|--fromto|--subject] []" } RESULT_MBOX="/tmp/gma" @@ -61,6 +61,10 @@ while [[ $1 ]]; do RE_PREFIX="^(From|To):.*" ;; + "--subject") + RE_PREFIX="^Subject:.*" + ;; + *) if [[ ${PATTERN} ]]; then if [[ ${FILE_PATTERN} ]]; then