Skip to content

Vacations can't handle dates in brackets #10074

@Abyss777

Description

@Abyss777

Prerequisites

  • I have searched for duplicate or closed issues
  • I can recreate the issue with all plugins disabled

Describe the issue

Hello
I programmatically generate Vacation outside the roundcube via managesieve, but still want to be able edit it in roundcube.

Here is example of generated sieve script

require ["date", "relational", "vacation"];

# rule:[Вне офиса]
if allof (currentdate :zone "+0500" :value "ge" "date" ["2026-01-01"], currentdate :zone "+0500" :value "le" "date" ["2026-01-15"]) {
    vacation :subject "Отпуск" :days 1 :from "<s09@example.ru>" :addresses "s09@example.ru" "В отпуске";
}

The dates are parsed normally in filters

Image

But can't be parsed in Vacation tab

Image

I believe that behavior should be consistent and dates are parsed correctly in both places

What browser(s) are you seeing the problem on?

Firefox

What version of PHP are you using?

8.1.2

What version of Roundcube are you using?

1.6.12

JavaScript errors

No response

PHP errors

Jan 16 08:30:01 mail roundcube: PHP Warning: Array to string conversion in /var/www/roundcube/program/lib/Roundcube/rcube_utils.php on line 1136
Jan 16 08:30:01 mail roundcube: PHP Warning: Array to string conversion in /var/www/roundcube/program/lib/Roundcube/rcube_utils.php on line 1136

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions