Sieve filter script EXECUTION FAILED

Odhiambo Washington odhiambo at gmail.com
Fri Oct 30 20:02:24 EET 2020


On Fri, 30 Oct 2020 at 20:12, @lbutlr <kremels at kreme.com> wrote:

> So, I have the sieve working up to the point that it calls the script, and
> the script is called (I get different errors if the script is not there,
> for example).
>
> filter action
>   execute program `darkmode.sh'
>   [[EXECUTION ABORTED]]
>
> There's no other error logged (for example, when I had
> sieve_filter_bin_dir miss-set, I would get:
>
> sieve: action filter: failed to execute program `darkmode.sh':
> vnd.dovecot.filter extension is unconfigured
>
> In /var/log/messages, but I fixed that.
>
> I assume there is something wrong with what I am doing in the script, bit
> that is something I am not finding any examples on that are proving useful.
>
> The script file is simply:
>
> Darkmode.sh:
> #!/bin/sh
> echo $1 | sed -e '|</head>|<style>* {color:white !important;
> background-color: black !important; } </style></head>|'
>

 echo $1 | sed -e 's|</head>|<style>* {color:white !important;
background-color: black !important; } </style></head>|g'
??


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20201030/d368cd38/attachment.html>


More information about the dovecot mailing list