[rt-users] Distinguishing between mail and web interface in a Scrip
Todd Chapman
rt at chaka.net
Tue Aug 10 09:08:56 EDT 2004
if ($self->TransactionObj->CreatorObj->Name eq 'RT_System') {
# created by system
} else {
# created by web interface
}
On Tue, Aug 10, 2004 at 03:37:26PM +0200, Niels Bakker wrote:
> Hi,
>
> I'm trying to figure out a way to have a scrip act differently based on
> whether a transaction was based on an incoming e-mail or something done
> from the web interface. Is there a hook for this?
>
> (Perhaps check $self->TicketObj->Transactions->First->Message->First
> for existance of a header named `Received' via GetHeader method?
> Has anybody tried that before? something like what's shown at
> <http://www.soundwave.net/~wmono/rt/> but doing it this way sounds
> a bit like a hack to me.)
>
> Thanks,
>
>
> -- Niels.
>
> --
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Be sure to check out the RT wiki at http://wiki.bestpractical.com
More information about the rt-users
mailing list