sieve: extract first chars of body in sieve script
Ingo Thierack
i.thierack at iwt-promotion.com
Tue May 26 14:27:32 UTC 2015
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
More information about the dovecot
mailing list