[rt-users] changing status/owner via email

Ruslan U. Zakirov Ruslan.Zakirov at acronis.com
Fri Jan 14 07:30:53 EST 2005


Elaine . wrote:
>  hi
> I've put 'RTC-Set-Status' resolve and 'RTC-Set-Status'
> resolved in the subject but nothing happens, what
> exactly should i put there ?
:/, Elaine, RTC-Set-Status header field is one thing and subject is 
different field. This scrip don't check subject, from, to fields or mail 
body. It checks special field RTC-Set-Status. Usually you can't setup it 
with MailAgents like mozilla mail, outlook...

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

> Thanks
> Elaine
> 
> --- "Ruslan U. Zakirov" <Ruslan.Zakirov at acronis.com>
> wrote: 
> 
>>Yes. This works, but only if incoming email has
>>special _header fields_.
>>In you previouse mail you said that you try to put
>>info into subject. 
>>Subject is header field, yes, but this scrip
>>requires 'RTC-Set-Status' 
>>field.
>>



More information about the rt-users mailing list