Re: suggestion needed on a recipe

: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
Thanks for the suggestion, I checked through. However the intention here is not to extract the body but to completely through the body out - that's why I used 'h' in the recipe. Just wonder why that single line of the multipart border get jumped over from the body? (I manually examed a number of such mails, and the border line well stays well with the body and 2 blank lines from the headers. I can't think of any possibility it's from the "Content-type:" header) ZL

On Wed, 30 Oct 2019, at 20:11, Zhiliang Hu wrote:
:0 hw | (formail -I "X-Loop: my-email@my-domain" \ -I "Subject: Problems with ....."; \ cat - notify.moderators.txt) \
You might want to provide example messages. But before you do: The above code seems to read from stdin twice: `formail` does, and `cat -` does, too. -- -- Andreas :-)
participants (2)
-
Andreas Schamanek
-
Zhiliang Hu