Description | manuals and libraries |
Kernel::System::PostMaster::Filter
All postmaster database filters
Don't use the constructor directly, use the ObjectManager instead:
my $PMFilterObject = $Kernel::OM->Get('Kernel::System::PostMaster::Filter');
get all filter
my %FilterList = $PMFilterObject->FilterList();
add a filter
$PMFilterObject->FilterAdd(
Name => 'some name',
StopAfterMatch => 0,
Match = [
{
Key => 'Subject',
Value => '^ADV: 123',
},
...
],
Not = [
{
Key => 'Subject',
Value => '1',
},
...
],
Set = [
{
Key => 'X-OTRS-Queue',
Value => 'Some::Queue',
},
...
],
);
delete a filter
$PMFilterObject->FilterDelete(
Name => '123',
);
get filter properties, returns HASH ref Match and Set
my %Data = $PMFilterObject->FilterGet(
Name => '132',
);
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.