[rt-users] Source of new ticket: Web or email?
Vivek Khera
vivek at khera.org
Wed Feb 14 22:14:38 EST 2007
On Feb 14, 2007, at 8:05 PM, Joe Casadonte wrote:
> Is there any way, specifically in a scrip, to determine if the
> ticket just created was done via the Web UI or via an email? I
> would like to disable auto-replies for web transactions where the
> requestor is also the principal (they get instant feedback; they
> don't need or want the additional email).
Ha! I spent some time doing this a couple of weeks ago... I came up
with this:
my $co = $self->TransactionObj->ContentObj;
...
if ($co->GetHeader('Received')) { # came via email }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2530 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070214/0b990f57/attachment.bin>
More information about the rt-users
mailing list