I would like to ignore all incoming messages sent to otrs@mydomain.com, EXCEPT for messages that contain 'ticket' in the subject. How can I do this? I tried following but the rules don't seem to work this way.
Thanks for any help. - Jonas
 
 
#ingore all
 $Self->{'PostMaster::PreFilterModule'}->{'1-Match'} = {
        Module => 'Kernel::System::PostMaster::Filter::Match',
        Match => {
   To => '@'
        },
  Set => {
            'X-OTRS-Ignore' => 'yes',
        },
    };
#don't ignore exception
 $Self->{'PostMaster::PreFilterModule'}->{'2-Match'} = {
        Module => 'Kernel::System::PostMaster::Filter::Match',
        Match => {
   Subject => 'ticket'
        },
        Set => {
            'X-OTRS-Ignore' => 'no',
        },
    };