Set Requestor with ExtractCustomField

Hi list,

I try to set the requestor of a ticket by using the extension
ExtractCustomField.

My template looks like

|body|Requestor-(.+)$|TicketObj->SetWatcher(Type => ‘Requestor’, Email
=>($value)) ;

The from header ist

One line in the incomming mail is
Requestor-myemail@mydomain.com

I like to change the requestor from hisemail@mydomain.com to
myemail@mydomain.com

My template doesn’t work

Any help is appreciated!

Best regards
Bjoern

Hi Bj�rn,

I don’t use the extension so I don’t know the format but shouldn’t the
template looks like this:
|body|Requestor-(.+)$|$TicketObj->SetWatcher(Type => ‘Requestor’, Email

=>($value)) ;

or maybe this:
|body|Requestor-(.+)$|$self->TicketObj->SetWatcher(Type => ‘Requestor’,
Email

=>($value)) ;

Also from your description, with this template you will only add the new
requestor myemail@mydomain.com beside hisemail@mydomain.com.
If you want to change the requestor you have to remove the old one.

-ChrisAm 01.09.2010 15:29, schrieb Bj�rn Schulz:

Hi list,

I try to set the requestor of a ticket by using the extension
ExtractCustomField.

My template looks like

|body|Requestor-(.+)$|TicketObj->SetWatcher(Type => ‘Requestor’, Email
=>($value)) ;

The from header ist
From: hisemail@mydomain.com

One line in the incomming mail is
Requestor-myemail@mydomain.com

I like to change the requestor from hisemail@mydomain.com to
myemail@mydomain.com

My template doesn’t work

Any help is appreciated!

Best regards
Bjoern

Hi bjoern, chris,
Think this is not the best idea to do it with the extract addon. Think it is possible with the command options, but the easiest way is a tiny scrip i think.

Torsten

----- Originalnachricht -----

Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke, Christian Marnetté, Mark Reinhardt, Jens Wollesen, Klaus Jaeger (stellv.), Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael KuehneVon: rt-users-bounces@lists.bestpractical.com rt-users-bounces@lists.bestpractical.com
An: Bjoern Schulz bjoern.schulz@desy.de
Cc: rt-users@lists.bestpractical.com rt-users@lists.bestpractical.com
Gesendet: Wed Sep 01 16:30:18 2010
Betreff: Re: [rt-users] set Requestor with ExtractCustomField

Hi Bjoern,

I don’t use the extension so I don’t know the format but shouldn’t the
template looks like this:
|body|Requestor-(.+)$|$TicketObj->SetWatcher(Type => ‘Requestor’, Email

=>($value)) ;

or maybe this:
|body|Requestor-(.+)$|$self->TicketObj->SetWatcher(Type => ‘Requestor’,
Email

=>($value)) ;

Also from your description, with this template you will only add the new
requestor myemail@mydomain.com beside hisemail@mydomain.com.
If you want to change the requestor you have to remove the old one.

-Chris