#!/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' > /home/lxf/notes/"$1".txt