26 May
2015
26 May
'15
5:27 p.m.
Hello,
is it possible to extract the first x chars of the body of an message to forward it, or the complete body inside an sieve script.
I want to forward specific mails via telegram-messenger. No Problem to extract the "from" and the "subject".
if header :matches "Subject" "*" { set "subject" "${1}"; } if header :matches "from" "*" { set "from" "${1}"; } pipe :copy :try "notify.sh" [ "(${from})# ${subject}" ];
But is it also possible for the body? If I can only pass the complete body, I can cut out the first x chars inside the notify-script.
Can't find any hint for that.
Regards Ingo