[rt-devel] Using MessageId field in Attachments table

Jesse Vincent jesse at bestpractical.com
Tue Feb 19 19:04:21 EST 2002


You just want to make sure that it's a _local_ rt ticket id.


On Tue, Feb 19, 2002 at 03:59:44PM -0800, Eric Berggren wrote:
> > 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)
> 
> 

-- 
http://www.bestpractical.com/products/rt  -- Trouble Ticketing. Free.




More information about the Rt-devel mailing list