[Rt-commit] rt branch, 4.0/parse-ticket-id-function-arguments,	created. rt-4.0.6-243-g39ac53c
    Ruslan Zakirov 
    ruz at bestpractical.com
       
    Fri Jul  6 09:05:34 EDT 2012
    
    
  
The branch, 4.0/parse-ticket-id-function-arguments has been created
        at  39ac53ceba2e925d184e26f860cc265ce0a7b6f5 (commit)
- Log -----------------------------------------------------------------
commit 39ac53ceba2e925d184e26f860cc265ce0a7b6f5
Author: Ruslan Zakirov <ruz at bestpractical.com>
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'} ) ;
-----------------------------------------------------------------------
    
    
More information about the Rt-commit
mailing list