[rt-devel] Using MessageId field in Attachments table

Eric Berggren ericb at fpt.fujitsu.com
Tue Feb 19 18:59:44 EST 2002


> Take a look at RT's generated message Ids. they probably don't need to be
> explicitly stored
> for you to get what you want out of them...

  Ah, so it is... didn't notice that comment. This should work nicely
then :

	if ( MessageID not in Attachments table )
            if ( MessageID == /^rt-/ )
                get TicketID and TransactionID from MessageID
                if ( ticketid in TransactionID record matches TicketID )
                    return ticketid
        return notfound

thanks,
-eric
--
Fujitsu Processor Technologies, Inc.
 (Lawrence System Integration)





More information about the Rt-devel mailing list