<div dir="ltr">Hi Fredrik,<br><div><br>Have you tried using a simpler BeforeDue condition to test? Something like "--condition-arg 2h". I don't think you need to specify the "0d", and it may confuse the condition module.<br><div><div><div>You can also try to modify the search to return something very specific (search by ticket id for example) so that you can verify that the --action part works properly.<br><br>I have similar notifications for Reminders working with the following command, just in case it's useful:<br><br></div><div></div></div></div><div><div><div><div><div>/opt/rt4/bin/rt-crontool \<br> --search RT::Search::FromSQL \<br> --search-arg 'Type = "reminder" and (Status = "open" or Status = "new") and Due > "now"' \<br> --condition RT::Condition::BeforeDue \<br> --condition-arg 5m \<br> --action RT::Action::Notify \<br> --action-arg Owner,AlwaysNotifyActor \<br> --transaction first \<br> --template 'Reminder'<br><br></div><div>Regards.<br></div><div><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-22 13:03 GMT+02:00 Fredrik Nyström <span dir="ltr"><<a href="mailto:Fredrik.Nystrom@prevas.se" target="_blank">Fredrik.Nystrom@prevas.se</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="#0563C1" vlink="#954F72" lang="SV">
<div>
<p><span lang="EN-US">Hi, <u></u><u></u></span></p>
<p><span lang="EN-US">I'm trying to use rt-crontool, to send out reminders when a ticket expires due date.
<u></u><u></u></span></p>
<p><span lang="EN-US"><u></u> <u></u></span></p>
<p><span lang="EN-US">The command and output is like this, but no mail is sent:
<u></u><u></u></span></p>
<p><span lang="EN-US"><u></u> <u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US">[root@<server> ~]# /opt/rt4/bin/rt-crontool --search RT::Search::FromSQL \
<u></u><u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US">> --search-arg 'Queue = "The Queue" and (Status = "open" or Status = "new")' \
<u></u><u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US">> --condition RT::Condition::BeforeDue \
<u></u><u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US">> --condition-arg 0d2h3m1s \
<u></u><u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US">> --action RT::Action::NotifyGroup \
<u></u><u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US">> --action-arg '<a href="mailto:mail@domain.se" target="_blank">mail@domain.se</a>' \
<u></u><u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US">> --transaction first \
<u></u><u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US">> --template 'Reminder due soon' \
<u></u><u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US">> --verbose \
<u></u><u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US">> --log debug
<u></u><u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US">[3011] [Wed May 20 06:53:26 2015] [debug]: The RTAddressRegexp option is not set in the config. Not setting this option results in additional SQL queries to check whether each address
belongs to RT or not. It is especially important to set this option if RT recieves emails on addresses that are not in the database or config. (/opt/rt4/bin/../lib/RT/Config.pm:505)
<u></u><u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US">18079:
<u></u><u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US"> Using transaction #111037...
<u></u><u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US">18331:
<u></u><u></u></span></p>
<p><span style="font-family:"Courier New"" lang="EN-US"> Using transaction #113770...
<u></u><u></u></span></p>
<p><span lang="EN-US"><u></u> <u></u></span></p>
<p><span lang="EN-US">Does anyone know, what could be the problem here?
<u></u><u></u></span></p>
<p><span lang="EN-US"><u></u> <u></u></span></p>
<p><span lang="EN-US">And, yes, mailing works, when you for exapmle resolve a ticket from the web interface.
<u></u><u></u></span></p>
<p><span lang="EN-US"><u></u> <u></u></span></p>
<p>BR <span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p>Fredrik<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</font></span></div>
</div>
</blockquote></div><br></div>