procmail
[Top] [All Lists]

Re: suggestion needed on a recipe

2019-10-30 20:15:42
  :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-attachment

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
____________________________________________________________
procmail mailing list -- procmail(_at_)lists(_dot_)rwth-aachen(_dot_)de   
Procmail homepage: http://www.procmail.org/
To unsubscribe send an email to 
procmail-leave(_at_)lists(_dot_)rwth-aachen(_dot_)de
https://lists.rwth-aachen.de/postorius/lists/procmail.lists.rwth-aachen.de

<Prev in Thread] Current Thread [Next in Thread>