Originally, there was a page at
http://wiki.bestpractical.com/index.cgi?IsReplyEmailOrWeb that described
this, but it appears to be gone now. You can do this in your scrips,
and here is the code:
-----------------------------------------------
# Get the message attachment
my $msgattr = $self->TransactionObj->Attachments->First;
return 0 if (!$msgattr); # if no message attachment - assume web UI
return 0 if (!$msgattr->GetHeader('Received')); # exit if not email
message
-----------------------------------------------
If you make it past those two lines, it must be an email message. I've
used this successfully on a few of my queues.
Eric Schultz
United Online
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Luke
Vanderfluit
Sent: Monday, June 12, 2006 8:07 PM
To: [email protected]
Subject: [rt-users] differentiate tickets created by rt-mailgate
Hi.
I need to find out which tickets have been created by emails sent in to
RT.
I'm thiking maybe I can add an attribute value with rt-mailgate, haven't
checked the API yet.
Anyone know of a way to do this?
Thanks.
Kind regards.
--
Luke Vanderfluit.
Analyst/Programmer.
Internode Systems Pty. Ltd.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
We're hiring! Come hack Perl for Best Practical:
http://bestpractical.com/about/jobs.html
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
We're hiring! Come hack Perl for Best Practical:
http://bestpractical.com/about/jobs.html