Closing a Ticket via Email

Hello,

Just wondering if anyone is familiar with ways you can close tickets via email?

Thanks,

Ben Blakely

Ben Blakely wrote:

Just wondering if anyone is familiar with ways you can close tickets via email?

This has been through a number of times on the list, but scrips are the
way to go. I’ve got this in “custom action cleanup code” on an “on
correspond” scrip:

my $header = ‘RTC-Set-Owner’;
if ($self->TransactionObj->Attachments->First->GetHeader($header) ne ‘’)
{
$self->TicketObj->SetOwner($self->TransactionObj->Attachments->First->GetHeader($header));
}
$header = ‘RTC-Set-Status’;
if ($self->TransactionObj->Attachments->First->GetHeader($header) ne ‘’)
{
$self->TicketObj->SetStatus($self->TransactionObj->Attachments->First->GetHeader($header));
}
1;

There’s probably better ways to do it, but that works well for me.

-CJ

WOW: Kakistocracy | “The ships hung in the sky in much the same
apocalyptech.com/wow | way that bricks don’t.” - Douglas Adams,
rt@apocalyptech.com | The Hitchhiker’s Guide To The Galaxy