Auto Responder API Issues

So I was trying to add the --autoreply-period to my roundcube vacation plugin because now that users have access to easily manage their autoreplies, I am getting complaints about autoreply loops. It doesn't appear that the --autoreply-period option in the api actually works. I have tried it as below:

virtualmin modify-user --domain domain.com --user test --local --autoreply "Test" --autoreply-period 1

as well as

virtualmin modify-user --domain domain.com --user test --autoreply-period 1

Status: 
Closed (fixed)

Comments

Odd, this works fine for me.

If you look at the user's autoreply text file after using the --autoreply-period flag, do you see a line like :

Reply-Period: 1

I see that in the file, but the form inside virtualmin doesn't show the period. The option "Minimum time between autoreplies" shows no minimum. Shouldn't it show 1?

Ok, I see the bug now .. the issue is that when the API is used, the reply-tracking DB isn't properly setup. I will fix this in the next release.

Also, the parameter to --autoreply-period is in seconds, even though the web UI converts this to minutes.

The command line help states it as --autoreply-period mins, so you might want to update that as well.

Thanks, I will fix that too.

Cool. Thanks. So even though the form doesn't show correctly right now, the option is still being used correctly?

No, the option isn't actually being used correctly unless enabled via the web UI..

If the next release isn't coming out for a while can you provide a patch? With the holidays, I have tons of customers using this and need the replay period working.

Sure .. just replace the file /usr/{share,libexec}/webmin/virtual-server/modify-user.pl with the attached file.

Works perfectly now. Thanks so much, you just made my new year that much better since I wont have to be woken up early with, "I have 4000 messages in my inbox"

Automatically closed -- issue fixed for 2 weeks with no activity.