Roundcube Community Forum
Release Support => Release Discussion => Topic started by: JoseA on July 27, 2018, 05:22:18 AM
-
Hello all!
I am using the web interface of Roundcube 1.3.0. I want to create a filter to vacation message. I have tested these options:
CAPTURE E-MAIL SUBJECT
In my filter I wrote the rule (capture all the string):
Subject | matches regular expression | (.*)
Later, in the actions to execute, I create and set a new variable:
Variable name: asunto
Variable value: ${1}
And in my reply body message I used the created variable. For example:
Message subject: Automatic reply ${asunto}
It works OK
CAPTURE RECEPTION DATE
The procedure is similar (now there are two capture groups in the regex):
Current date | date (yyyy-mm-dd) | matches regular expression | [0-9]{4}-([0-9]{2})-([0-9]{2})
My variable gets month and day:
Variable name: fecha
Variable value: ${2} ${1}
I can use it without problem with ${fecha}.
It works OK
THE QUESTION IS...
Could I use two regular expressions to get both Subject and current date from incoming e-mails?
I tested this configuration (attached image).
(https://www.roundcubeforum.net/index.php?action=dlattach;topic=25059.0;attach=2263;image)
Thank you very much!
;)