I am trying to negate the match in the .xml file for a postmaster filter, currently I have the following which works to match, but I want negate it. I cannot find anywhere in the documentation that shows how to negate a postmaster filter in xml, any help would be great:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="1.0" init="Application">
<ConfigItem Name="PostMaster::PreFilterModule###1-MyModule" Required="0" Valid="1">
<Description Translatable="1">My module to filter and manipulate incoming messages.</Description>
<Group>Ticket</Group>
<SubGroup>Core::PostMaster</SubGroup>
<Setting>
<Hash>
<Item Key="Module">Kernel::System::PostMaster::Filter::MyModule</Item>
<Item Key="Match">
<Hash>
<Item Key="Subject">(.*)testSubject(.)82(.*)</Item>
</Hash>
</Item>
<Item Key="Set">
<Hash>
<Item Key="X-OTRS-Queue">Raw</Item>
</Hash>
</Item>
</Hash>
</Setting>
</ConfigItem>
</otrs_config>