[rt-users] Distinguishing between mail and web interface in a Scrip

Ruslan U. Zakirov cubic at acronis.ru
Mon Aug 23 07:52:39 EDT 2004


Niels Bakker wrote:
> Hi,
> 
> * rt at chaka.net (Todd Chapman) [Tue 10 Aug 2004, 15:53 CEST]:
> 
>>if ($self->TransactionObj->CreatorObj->Name eq 'RT_System') {
>>    # created by system
>>} else {
>>    # created by web interface
>>}
> 
> 
> Doesn't work (on 3.0.11); incoming mails $self->...->Name gets set
> to the username associated with the From: header in the mail.

Use next hack:
$self->TransactionObj->Attachments->First->GetHeader('Received');

RT WebUI doesn't add this field to attachment header.

> 
> 
> 	-- Niels.
> 




More information about the rt-users mailing list