[rt-users] Closing a Ticket via Email

CJ Kucera rt at apocalyptech.com
Sat Dec 18 20:47:56 EST 2004


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 at apocalyptech.com      |     _The Hitchhiker's Guide To The Galaxy_



More information about the rt-users mailing list