search for: darkmod

Displaying 12 results from an estimated 12 matches for "darkmod".

Did you mean: darkmode
2020 Oct 30
6
Sieve filter script EXECUTION FAILED
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 assu...
2020 Oct 30
4
Sieve filter script EXECUTION FAILED
> On 30/10/2020 19:25 Bernd Petrovitsch <bernd at petrovitsch.priv.at> wrote: > > > On 30/10/2020 17:11, @lbutlr wrote: > [...] > > echo $1 | sed -e '|</head>|<style>* {color:white !important; background-color: black !important; } </style></head>|' > > What should the sed stuff do? > TTBOMK '|' is not known by sed ...
2020 Oct 27
2
Sieve body test
On 23/10/2020 13:22, @lbutlr wrote: > On 22 Oct 2020, at 19:09, Stephan Bosch <stephan at rename-it.nl> wrote: >> You need to include the extprograms plugin: > I have, and vnf.dovecot.pipe doesn't give the error. > > sieve_plugins = sieve_imapsieve sieve_extprograms > > ?\_(?)_/? > > I am not using filter now though, so I haven't try to track down
2020 Nov 09
1
Sieve body test
...lof ( header :contains "from" "someone", > header :contains "to" "me". > Header :contains "Subject" "Stupid HTML" ) { > > if body :raw :contains "</head>" { > filter :try "darkmode.sh"; > } > } You could also check the content-type header, rather than inspecting the body for a tell-tale HTML tag. > darkmode.sh: > #!/bin/sh > sed -e '|</head>|<style>* {color:white !important; background-color: black !important; } </style></he...
2020 Oct 30
0
Sieve filter script EXECUTION FAILED
On 10/30/20 10:11 AM, @lbutlr 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 /v...
2020 Oct 30
0
Sieve filter script EXECUTION FAILED
On 30 Oct 2020, at 11:57, Aki Tuomi <aki.tuomi at open-xchange.com> wrote: > But I think the sed here is missing 's' from start, so this does not actually do anything... Copy/paste/edit error. The s is there in the file. darkmode.sh: #!/bin/sh echo $1 | sed -e 's|</head>|<style>* {color:white !important; background-color: black !important; } </style></head>|' I am not sure about the $1. I think filter just pipes the message (or part of the message. I will see what happens without the echo...
2020 Oct 30
0
Sieve filter script EXECUTION FAILED
...e.com> wrote: > > > On 30 Oct 2020, at 11:57, Aki Tuomi <aki.tuomi at open-xchange.com> wrote: > > But I think the sed here is missing 's' from start, so this does not actually do anything... > > Copy/paste/edit error. The s is there in the file. > > darkmode.sh: > #!/bin/sh > echo $1 | sed -e 's|</head>|<style>* {color:white !important; background-color: black !important; } </style></head>|' > > I am not sure about the $1. I think filter just pipes the message (or part of the message. > > I will see...
2020 Oct 27
0
Sieve body test
...ng along the lines of if allof ( header :contains "from" "someone", header :contains "to" "me". Header :contains "Subject" "Stupid HTML" ) { if body :raw :contains "</head>" { filter :try "darkmode.sh"; } } darkmode.sh: #!/bin/sh sed -e '|</head>|<style>* {color:white !important; background-color: black !important; } </style></head>|' (Not that I have even begun to test that) -- [Unused] "Are you pondering what I'm pondering?" Pinky:...
2020 Oct 30
1
Sieve filter script EXECUTION FAILED
...<head><title>29-Oct-2020 ""</title> <style>?? ...' > 32: with key `</head>' => 1 > 32: finishing match with result: matched > 32: jump if result is false > 32: not jumping > 34: filter action > 34: execute program `darkmode.sh' > 34: [[EXECUTION ABORTED]] Here is the relevant part of doveconf -n plugin { imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve imapsieve_mailbox1_causes = COPY imapsieve_mailbox1_name = Junk imapsieve_mailbox2_before = file:/usr/lib/dovecot/sieve/re...
2020 Oct 30
2
Sieve filter script EXECUTION FAILED
On 30 Oct 2020, at 11:25, Bernd Petrovitsch <bernd at petrovitsch.priv.at> wrote: > On 30/10/2020 17:11, @lbutlr wrote: > [...] >> echo $1 | sed -e '|</head>|<style>* {color:white !important; background-color: black !important; } </style></head>|' > > What should the sed stuff do? Changes </head> to <style>* {color:white
2020 Oct 22
0
Sieve_before
...box3_name = Archive last_login_dict = file:~/.lastlogin quota_rule2 = .EXPUNGED:ignore sieve = file:~/.sieve;active=~/.active_sieve sieve_before = file:/usr/lib/dovecot/sieve/bcc.sieve sieve_before2 = file:/usr/lib/dovecot/sieve/filespam.sieve sieve_before3 = file:/usr/lib/dovecot/sieve/darkmode.sieve sieve_default_name = spamassassin sieve_duplicate_default_period = 1h sieve_duplicate_max_period = 12d sieve_extensions = +editheader sieve_plugins = sieve_imapsieve sieve_extprograms sieve_trace_level = matching sieve_user_log = ~/sieve.log } I do not have a protocol sieve {...
2020 Oct 21
2
Sieve_before
On 10/21/20 2:12 PM, @lbutlr wrote: > Do I HAVE to have a default.sieve, that's the only thing that I can think the has changed in that folder. RE: compile, fyi note @ https://wiki2.dovecot.org/Pigeonhole/Sieve/Usage#Manually_Compiling_Sieve_Scripts https://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration#Executing_Multiple_Scripts_Sequentially the conditions under which you need to