Hi folks,

 

Been scratching my head for a while now so thought i’d ask you guys.

 

I have a little script that basically looks up a numeric CustomerNo from a database and returns it to stdout, and if it’s can’t find one it will spit out the domain part of the senders email address.

So far so good, I’ve been googling like mad to find a reference to using return values other than true/false when setting a header;

 

# Job Name: 6-FindCustomerNo

    $Self->{'PostMaster::PreFilterModule'}->{'6-FindCustomerNo'} = {

        Module => 'Kernel::System::PostMaster::Filter::CMD',

        CMD => '/opt/otrs/contrib/find_customer',

        Set => {

            'X-OTRS-CustomerNo' => '???',

        },

    };

 

What would the proper syntax be?

 

Best regards

Danny Froberg