I'm not certain this is the solution you need but I think it may be. This will make the system sleep for a time before beginning the auto response code.
1.6ST
Find the following in include/class.ticket.php
//SEND OUT NEW TICKET AUTORESP && ALERTS.
//New Ticket AutoResponse..
if($autorespond && $cfg->autoRespONNewTicket() && $dept->autoRespONNewTicket()){
1.6RC5
Find the following in include/class.ticket.php
//If enabled...send confirmation to user. ( New Message AutoResponse )
if($autorespond && $cfg->autoRespONNewMessage() && $dept && $dept->autoRespONNewMessage()){
And after that add the following:
function slaap($seconds)
{
$seconds = abs($seconds);
if ($seconds < 1):
usleep($seconds*1000000);
else:
sleep($seconds);
endif;
}
slaap(0.5);
The above assumes you want to sleep for 0.5 seconds, modify to your desired time.
I don't know how to test this as for starters I don't send autoresponders because of all the outscatter it will cause with as many spam messages that we receive to our tickets (we have filtering off so people can report phish). And also I don't know how I'd be able to confirm such a short delay. Hopefully this works for you though, good luck!