do
# skip the Message-ID: line so we don't send email to the wrong place
echo "$l"
- reply=$(echo "$l" | grep -i Message-ID:)
+ reply=$(echo "$l" | grep -a -i Message-ID:)
if [ x"$reply" != x ]
then
continue
# exit 1
# fi
echo "PATCH=$PATCH"
-# SUBJECT=`grep "Subject:" $PATCH`
- SUBJECT=`grep "Subject:" $PATCH | sed s/Subject\:\ //`
+# SUBJECT=`grep -a "Subject:" $PATCH`
+ SUBJECT=`grep -a "Subject:" $PATCH | sed s/Subject\:\ //`
# SUBJECT=$(head -n 2 $PATCH | tail -n 1)
- MESSAGE_ID=`grep -i "^Message-ID:" $PATCH | cut -f 2 -d ' ' | cut -f 2 -d '<' | cut -f 1 -d '>'`
+ MESSAGE_ID=`grep -a -i "^Message-ID:" $PATCH | cut -f 2 -d ' ' | cut -f 2 -d '<' | cut -f 1 -d '>'`
author AUTHOR $1 FIRST_AUTHOR
echo "author said $AUTHOR"
echo "first_author said $FIRST_AUTHOR"
-message_id="$ID" \
"$CHARCMD" \
| \
- ~/bin/msmtp-enqueue.sh -a coco "$to"
+ ~/bin/msmtp-enqueue.sh "$to"
+# ~/bin/msmtp-enqueue.sh -a coco "$to"
#msmtp $to
}