Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Commit

rt branch, 4.0/parse-ticket-id-function-arguments, created. rt-4.0.6-243-g39ac53c

 

 

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded


ruz at bestpractical

Jul 6, 2012, 6:05 AM

Post #1 of 1 (122 views)
Permalink
rt branch, 4.0/parse-ticket-id-function-arguments, created. rt-4.0.6-243-g39ac53c

The branch, 4.0/parse-ticket-id-function-arguments has been created
at 39ac53ceba2e925d184e26f860cc265ce0a7b6f5 (commit)

- Log -----------------------------------------------------------------
commit 39ac53ceba2e925d184e26f860cc265ce0a7b6f5
Author: Ruslan Zakirov <ruz [at] bestpractical>
Date: Fri Jul 6 16:04:43 2012 +0300

pass MIME::Entity into ParseTicketId function

it would be very handy for any extension that wants
to implement different algorithms for attaching
messages to tickets, for example by reference headers
or by ids from external systems.

diff --git a/lib/RT/Interface/Email.pm b/lib/RT/Interface/Email.pm
index 2594e99..a4d1a90 100644
--- a/lib/RT/Interface/Email.pm
+++ b/lib/RT/Interface/Email.pm
@@ -1433,7 +1433,7 @@ sub Gateway {
}
# }}}

- $args{'ticket'} ||= ParseTicketId( $Subject );
+ $args{'ticket'} ||= ParseTicketId( $Subject, $Message );

$SystemTicket = RT::Ticket->new( RT->SystemUser );
$SystemTicket->Load( $args{'ticket'} ) if ( $args{'ticket'} ) ;

-----------------------------------------------------------------------
_______________________________________________
Rt-commit mailing list
Rt-commit [at] lists
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.