Many changes!!!
[scripts.git] / gma.sh
diff --git a/gma.sh b/gma.sh
index 640c7f3..8725acc 100755 (executable)
--- a/gma.sh
+++ b/gma.sh
@@ -20,7 +20,7 @@
 set -e
 
 function usage () {
-    echo "gma.sh [--body] [--from|--to|--fromto] <pattern> [<year>]"
+    echo "gma.sh [--body] [--subject|--from|--to|--fromto|--subject] <pattern> [<year>]"
 }
 
 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