diff options
Diffstat (limited to 'bin/mqq.sh')
-rwxr-xr-x | bin/mqq.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/mqq.sh b/bin/mqq.sh new file mode 100755 index 0000000..6543d8e --- /dev/null +++ b/bin/mqq.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# $HOME/Scripts/mqq + +#message_id=$(grep -E -i "^Message-id:" | sed -e 's/.*<\(.*\)>/\1/') +BODY=$(sed -n '/^Date/,$ p' | grep -E -i '^[^X]+' | sed -En '/^Date/,/application\// p') +echo "${BODY}" | sed -En '/^Date/,/text\/html/ p' > /Users/sng/Notes/"$1".txt |