[rt-users] changing status/owner via email pt2

Elaine . cmap_sec at yahoo.co.uk
Fri Jan 21 07:26:39 EST 2005


hi
I got some help the other week from Ruslan and wanted
to ask a quick query. It was regarding changing
status/owner via email.

Code is at the bottom of the email and works fine. My
query is that with the scrips set up it goes out to
the user as its seen the same as a normal reply email
on how to fix the problem. I'd rather if possible not
email out Set-Status etc . Is there a way ?
Thanks for any pointers.
Elaine

Try next commit code:
my $content =
$self->TransactionObj->Attachments->First->Content;
if( $content =~ m/^\QSet-Owner:\E\s*(\S+)\s*$/m ) {

        $self->TicketObj->SetOwner( $1 );
}
if( $content =~ m/^\QSet-Status:\E\s*(\S+)\s*$/m ) {

        $self->TicketObj->SetStatus( $1 );
}
1;

And put into mail body next line:
---------------------------------
Set-Status: rejected
---------------------------------
Don't add empty spaces before Set-Status


	
	
		
___________________________________________________________ 
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com



More information about the rt-users mailing list