Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: 280000ss on January 02, 2025, 06:25:07 AM

Title: Nested allof anyof conditions in Sieve filter
Post by: 280000ss on January 02, 2025, 06:25:07 AM
Hello,

I need to have RoundCube Sieve filters with nested allof-anyof conditions. Something like this:

------------------------------------
if allof (
  header :contains "to" "[email protected]",
  anyof (
    header :contains "subject" "order",
    header :contains "subject" "tickets",
    header :contains "subject" "Verify Your Device With ASSv",
    header :contains "subject" "Verify Your Email With ASSV",
    ...
    header :contains "subject" "You're all set to see"
  )
)
{
  redirect :copy "[email protected]";
}
------------------------------------

Right now RoundCube overwrites this when I create a new simple filter from UI.

1. Any idea how can I achieve this?

I saw a discussion here which says that some of these conditions will be available in RoundCube 1.7

https://github.com/roundcube/roundcubemail/issues/8502#issuecomment-1175934712

2. When is 1.7 scheduled to release?
Title: Re: Nested allof anyof conditions in Sieve filter
Post by: alec on January 02, 2025, 08:53:27 AM
Your example does not make sense.

ps. the ticket you mentioned has nothing to do with Sieve.
Title: Re: Nested allof anyof conditions in Sieve filter
Post by: 280000ss on January 03, 2025, 05:01:25 AM
Please see attached. I need all conditions given in "Subject" as a "Anyof" condition.

(https://drive.google.com/file/d/1zxFzKQFt-fnx8u8H_2fPmKVAR057IKyw/view?usp=sharing)

https://drive.google.com/file/d/1zxFzKQFt-fnx8u8H_2fPmKVAR057IKyw/view?usp=sharing
Title: Re: Nested allof anyof conditions in Sieve filter
Post by: 280000ss on January 07, 2025, 01:59:38 AM
@alec Please can you see my screenshot above and confirm that I would be able to put such filtering conditions in RoundCube 1.7 and when is 1.7 is supposed to be released ?
Title: Re: Nested allof anyof conditions in Sieve filter
Post by: alec on January 07, 2025, 02:45:59 AM
It's not possible.