Open necrevistonnezr opened 4 years ago
You can use my changes to integrate into RainLoop
this may look like an overkill, but at least it's a good solution if you can dig it in: https://tools.ietf.org/html/rfc5228
there are plenty of good examples and i had a lot of trouble to find this link! 😘
@cauerego that is the wrong rfc for the body extension. You need https://tools.ietf.org/html/rfc5173
P.S. rainloop supports a custom script facility. Enable in admin -> domains per domain. Then in the mailbox settings the filters page has a button for it.
Hi @the-djmaze,
I've replaced files mentioned here (https://github.com/the-djmaze/snappymail/tree/c358a7376681bcbb5e0428faa0ff551bf4e9aaf7/snappymail/v/0.0.0/app/libraries/RainLoop/Providers/Filters) but it's not working.
2021/02/01 18:44:03 [error] 25828#25828: *824 FastCGI sent in stderr: "PHP message: PHP Fatal error: Declaration of RainLoop\Providers\Filters\SieveStorage::Load(RainLoop\Model\Account $oAccount, bool $bAllowRaw = false): array must be compatible with RainLoop\Providers\Filters\FiltersInterface::Load($oAccount, $bAllowRaw = false) in /var/www/rainloop/v/1.14.0/app/libraries/RainLoop/Providers/Filters/SieveStorage.php on line 5" while reading response header from upstream, client: 159.180.255.62, server: xxxx.com, request: "POST /?/Ajax/&q[]=/_1IPIwH8x_O0RztMssWgQ352ywD_qnGXbaItUPOWtHAnhFTRNPpSNbe6gwizQnOOMz9JkpQZ2d-JJmEEfoKjCNQjGM8oTcChBLJtyOCLEJc4bb5pvaIDoxaSmfzSxlPJW-0r2eR1oDJkBz1RDr5SgOY1HbetExcvhB-Ot9WJdk1w3oORlLDL8C85MgEBvQvxc2Y41Qq_XqwBgAbDMBF9-1Dp2bTqZSh30qXtyEia66TJHdxdmahI5rLJdEoCWWfYAtUwzkPMu6eKuSRDOyEpE_OuDA8Sc1J39CaVJw-ZIytoDPE6nxzNKE2wDQSObJfVdZL4_l5MLHjGO3Xp-IXGJUWq-96QbIfZJ84__Nw/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "xxxx", referrer: "xxxx/"
How can i correctly add your RainLoop#2041 fix to my rainloop installation ?
Regards.
@mjoigny you can't !!! There's much more work then just some changed files. My fork of RainLoop is way different in source code, so you can't just copy/paste.
Someone has to merge my code in RainLoop source and create a Pull request and wait until someone approves it. Because you also need to gulp compile the JavaScript as well.
So you either:
@the-djmaze thank you for your feedback.
I don't understand why rainloop hasn't integrated the body filter, it's basic. I understand why you forked :)
Have a nice day !
RainLoop version, browser, OS: RainLoop 1.14.0, Chrome 86.0.4240.111, macOS
Expected behavior and actual behavior: Create a sieve filter based on text in the message body. The "body" option, however, is not there (see screenshot)
Logs or screenshots: