
On 29.10.19,11:02, Zhiliang Hu wrote:
I have a recipe to send to my another address a note when receiving certain mails:
:0 * ........some conditions......... { :0 c DEPOSIT_A
FROMA=`formail -rtzxTo:` SUBJE=`formail -zx Subject:`
:0 hw | (formail -I "X-Loop: my-email@my-domain" \ -I "Subject: Problems with ....."; \ cat - notify.moderators.txt) \ | sed 's/FROMA/'"$FROMA"/g | sed 's/SUBJET/'"$SUBJE"/g \ | $SENDMAIL -oi $LSTMATNR }
Everything works fine except that at the end of the notification mail body text, one line of miltipart body separater get appended, like this one: --_000_DB6PR05MB34312B252CB0D273BA34B81A8E610DB6PR05MB3431bxrp_--
I wonder how does this single line from the body get there?
ZL
Check the main answer in this thread and if this can give some clue: https://stackoverflow.com/questions/36302103/how-to-extract-email-body-and-a... Jostein