[rt-users] Submit Ticket via Mail

Andy Harrison aharrison at gmail.com
Sat Dec 4 16:20:52 EST 2004


On Sat, 4 Dec 2004 10:20:08 +0100, Alexander Waller
<a.waller at webpoint.at> wrote:
> Hi!
> My RT3 setup is fine. Everything important works. I like it realy because it
> improves our performance.
> 
> My question is, if it is possible to put commands in a mail body or header.
> Something like:
> 
> Queue=Service
> Requestor=somoneqsomewhere.at
> Due=1.1.2005
> 
> I think I read some time ago, that this is possible, but I cannot find any
> hint on that.
> Can someone tell me where to find that information?
> 
> Alex.
> 
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Be sure to check out the RT wiki at http://wiki.bestpractical.com
> 

The queue is obtained from the desination address.  The requestor is
obtained from the sender's address.  Obtaining due date probably
wouldn't be that hard.  You could use an OnCreate scrip and set
DueDate in a user-defined action.  This little snippet from
lib/RT/Ticket_Overlay.pm ought to put you on the right direction.


     #TODO we should see what sort of due date we're getting, rather +
     # than assuming it's in ISO format.
 
     #Set the due date. if we didn't get fed one, use the queue default due in
     my $Due = new RT::Date( $self->CurrentUser );
 
     if ( $args{'Due'} ) {
         $Due->Set( Format => 'ISO', Value => $args{'Due'} );
     }
     elsif ( $QueueObj->DefaultDueIn ) {
         $Due->SetToNow;
         $Due->AddDays( $QueueObj->DefaultDueIn );
     }


-- 
Andy Harrison



More information about the rt-users mailing list