Update.
[scripts.git] / gma.sh
diff --git a/gma.sh b/gma.sh
index e266737..6b0c518 100755 (executable)
--- a/gma.sh
+++ b/gma.sh
@@ -20,7 +20,7 @@
 set -e
 
 function usage () {
-    echo "gma.sh [--body] [--keepspam] [--subject|--from|--to|--fromto] <pattern> [<year>]"
+    echo "gma.sh [--body] [--keepspam] [--subject|--from|--to|--fromto|--sender] <pattern> [<year>]"
 }
 
 RESULT_MBOX="/tmp/gma"
@@ -71,6 +71,10 @@ while [[ $1 ]]; do
             RE_PREFIX="^(From|To):.*"
             ;;
 
+        "--sender")
+            RE_PREFIX="^Sender:.*"
+            ;;
+
         "--subject")
             RE_PREFIX="^Subject:.*"
             ;;