procmail
[Top] [All Lists]

Re: suggestion needed on a recipe

2019-10-29 11:17:12
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-attachment


Jostein
____________________________________________________________
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>