I am sorry to always ask you about my personal problem... but I am really getting crazy!!!

--------------------------------------------------------------------
STEP 1:
--------------------------------------------------------------------
I defined into my OTRS config.pm file the following three textfree fields:

       # ---------------------------------------------------- #
       # Dipartimento di appartenenza                         #
       # ---------------------------------------------------- #
       $Self->{'TicketFreeKey1'} = {'Dipartimento' => 'Dipartimento'};
       $Self->{'TicketFreeText1'} = {
           '' => ' Scegli una voce',
           'Ambi' => 'Ambiente e connessa prevenzione primaria',
           'Biol' => 'Biologia cellulare e neuroscienze',
           'Eomm' => 'Ematologia, oncologia e medicina molecolare',
           'DiFa' => 'Dipartimento del Farmaco',
'MaIn' => 'Dipartimento di Malattie infettive, parassitarie ed immunomediate',
           'SaAl' => 'Dipartimento di Sanità alimentare e animale',
           'TeSa' => 'Dipartimento di Tecnologie e salute'
       };
       $Self->{'TicketFreeText1::DefaultSelection'} = '';
       # ---------------------------------------------------- #
       # Tipo di intervento                                   #
       # ---------------------------------------------------- #
       $Self->{'TicketFreeKey2'} = {'Tipo di intervento' => 'Intervento'};
       $Self->{'TicketFreeText2'} = {
           '' => ' Scegli una voce',
           'Sostituzione computer' => 'Sostituzione PC',
           'Spostamento computer'  => 'Spostamento PC',
           'Internet inaccessibile'  => 'Internet inaccessibile',
           'Problemi con la posta'  => 'Problemi con la posta',
           'n.a.' => 'Non applicabile'
       };
       $Self->{'TicketFreeText2::DefaultSelection'} = '';
       # ---------------------------------------------------- #
       # Armadio                                              #
       # ---------------------------------------------------- #
       $Self->{'TicketFreeKey3'} = {'Armadio' => 'Armadio'};
       $Self->{'TicketFreeText3'} = '';
       $Self->{'TicketFreeText3::DefaultSelection'} = '';

--------------------------------------------------------------------
STEP 2:
--------------------------------------------------------------------
I build into OTRS->Admin->[ PostMaster Filter ] the following filter

Filtername: myFilter
Match:
Header 1:X-OTRS-TicketKey3      Value:Armadio

Set:
Header 1:X-OTRS-TicketValue3    Value:aaaaaa

--------------------------------------------------------------------
STEP 3:
--------------------------------------------------------------------
I send to my OTRS, through php, the following email:

<?php
   $to  = '[EMAIL PROTECTED]';
   $subject = 'Let me try';
   $body = 'This is the email content';
$header = "X-OTRS-TicketKey3:Armadio";
   if (mail  ($to, $subject, $body, $header)) {
       echo 'E-mail inviata con successo.<br />';
       echo 'Destinatario: '.$to.'<br />';
       echo 'Subject: '.$subject.'<br />';
       echo 'X-Header: '.$header.'<br />';
       echo 'Contenuto: '.$body;
   } else {
       echo 'Non sono riuscito ad inviare il messaggio';
   }
?>

--------------------------------------------------------------------
STEP 4:
--------------------------------------------------------------------
OTRS receives the email...
BUT THE TicketFreeKey3 DOESN'T GET ANY VALUE!!!!!!!!!!

Do you have any suggestion, please?
Thank you in advance.
Daniele

Shawn Beasley ha scritto:
Hi Daniele,
Dear all
as far as I read and tried
there isn't any way to populate TicketFreeKeys from X-OTRS-<something> headers.
I close my investigation.

You have been missing one key ingredient that is not well known.

You have to set the Key number and the Key value.

X-OTRS-TicketKey1: <name of key>
X-OTRS-TicketValue1: <value to set>
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support or consulting for your OTRS system?
=> http://www.otrs.com/

Reply via email to