-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Vacations can't handle dates in brackets #10074
Copy link
Copy link
Closed
Labels
Milestone
Description
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
But can't be parsed in Vacation tab
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
Reactions are currently unavailable