Automatic finishing of autoreply-mails
Autoreply-Mails can be automatically finished. You have to define the relevant mail-parameters in two steps.
First Step:
Create a new key "AUTOREPLYTAGS" to your system properties.
Add the values that define an autoreply-mail, in this example "Autoreply" and "Abwesenheitsnotiz". Please separate additional values via ",".
Second Step:
Add the following javascript-code on top of the Receive-Action of your mailbox.
This script will evaluate if the predefined AUTOREPLYTAGS can be found within an incoming mail. The mail with these tags will be automatically finished.
The owner of the todo is set to the user "bergener", please modify this according to your own needs.
var atagarr=atags.split(",");
var desc=task.description.toLowerCase();
for (var i=0;i<atagarr.length;++i)
{
var tag=atagarr[i].trim();
if (desc.contains(tag))
{
task.state=3;
task.doneComment='Autoreply verworfen.';
helper.setOwnerByUsername("bergener");
break;
}
}