sieve: extract first chars of body in sieve script

Ingo Thierack i.thierack at
Tue May 26 14:27:32 UTC 2015


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
the "from" and the "subject".

if header :matches "Subject" "*" {
    set "subject" "${1}";
if header :matches "from" "*" {
    set "from" "${1}";
pipe :copy :try "" [ "(${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.


More information about the dovecot mailing list