Possibility to assign tickets to a user while creating the ticket per mail

Hi List!
I was very inactive on list in the last time, but it’s so hard to read all that mails if you leave for a couple of days…

My boss wanted to be able to send a mail to an e-mail address and that after that the mail gets assigned to a user.
So I thought it should work using a mail alias.
but rt-mailgate does not accept owner as parameter, so I digged in the code and added this variable.
Perhaps someone of you can use this… Perhaps it is already implemented in some new version, but I didn’t had time to thest it.
I saw in svn that these lines are missing from the newest rt version, so perhaps it can be helpful the only problem is that my diff is for rt 3.0.4 and there are some differences in the line numbers, for example for Interface/Email.pm the difference is in about 300 lines, so if somebody could adapt this patch for the newest version…

any feedback and questions are appreciated

Greetings

Samuel

Here the diff:

— /usr/share/perl5/RT/Interface/Email.bak 2003-10-06 17:53:30.000000000 +0200
+++ /usr/share/perl5//RT/Interface/Email.pm 2005-04-19 15:54:42.000000000 +0200

@@ -373,6 +376,7 @@
sub Gateway {
my %args = ( message => undef,
queue => 1,

  •             owner   => undef,
                action  => 'correspond',
                ticket  => undef,
                @_ );
    

@@ -572,6 +601,7 @@

     my ( $id, $Transaction, $ErrStr ) = $Ticket->Create(
                                                   Queue     => $SystemQueueObj->Id,
  •                                                  Owner     => $args{'owner'},
                                                     Subject   => $Subject,
                                                     Requestor => \@Requestors,
                                                     Cc        => \@Cc,
    

— /usr/bin/rt-mailgate.bak 2005-04-19 15:26:32.000000000 +0200
+++ /usr/bin/rt-mailgate 2005-04-19 15:31:10.000000000 +0200
@@ -367,7 +367,7 @@
use constant EX_TEMPFAIL => 75;

my %opts;
+GetOptions( %opts, “queue=s”, “owner=s”, “action=s”, “url=s”, “jar=s”, “help”, “debug”, “extension=s” );
-GetOptions( %opts, “queue=s”, “action=s”, “url=s”, “jar=s”, “help”, “debug”, “extension=s” );

if ( $opts{help} ) {
require Pod::Usage;
@@ -387,7 +387,6 @@

my %args = (
queue => $opts{queue},

  • owner => $opts{owner},
    action => $opts{action},
    message => $message,
    SessionType => ‘REST’, # Surpress login box