[Rt-commit] r2933 - in rt/branches/3.4-RELEASE: . lib/RT
jesse at bestpractical.com
jesse at bestpractical.com
Mon May 23 15:30:02 EDT 2005
Author: jesse
Date: Mon May 23 15:30:02 2005
New Revision: 2933
Modified:
rt/branches/3.4-RELEASE/ (props changed)
rt/branches/3.4-RELEASE/lib/RT/EmailParser.pm
Log:
r17670 at hualien: jesse | 2005-05-23 13:48:34 -0400
* RT::EmailParser->ParseTicketId was deprecated but that was not clear. Also, the code was out of date
Modified: rt/branches/3.4-RELEASE/lib/RT/EmailParser.pm
==============================================================================
--- rt/branches/3.4-RELEASE/lib/RT/EmailParser.pm (original)
+++ rt/branches/3.4-RELEASE/lib/RT/EmailParser.pm Mon May 23 15:30:02 2005
@@ -276,17 +276,8 @@
sub ParseTicketId {
my $self = shift;
-
- my $Subject = shift;
-
- if ( $Subject =~ s/\[\Q$RT::rtname\E\s+\#(\d+)\s*\]//i ) {
- my $id = $1;
- $RT::Logger->debug("Found a ticket ID. It's $id");
- return ($id);
- }
- else {
- return (undef);
- }
+ $RT::Logger->warnings("RT::EmailParser->ParseTicketId deprecated. You should be using RT::Interface::Email");
+ RT::Interface::Email::ParseTicketId(@_);
}
# }}}
More information about the Rt-commit
mailing list