Add more filters

Moderator: crythias

Locked
ZoltanBiro
Znuny newbie
Posts: 23
Joined: 18 Jan 2013, 10:57
Znuny Version: 5.x/6.x
Real Name: Zoltan
Company: Amaris

Add more filters

Post by ZoltanBiro »

Hi All,

is it possible to add more than 4 filter in Postmaster Filter?

Thanks!
Zoltan
OTRS 3.2.7, Ubuntu 12.04.2, MySQL 5.5.29
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Add more filters

Post by reneeb »

Yes
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Add more filters

Post by jojo »

in one filter you can have up to 4 match rules and up to for setted values via webinterface. But you can also use Postmaster Filters in Config.pm so you can have more values there
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ZoltanBiro
Znuny newbie
Posts: 23
Joined: 18 Jan 2013, 10:57
Znuny Version: 5.x/6.x
Real Name: Zoltan
Company: Amaris

Re: Add more filters

Post by ZoltanBiro »

jojo wrote:in one filter you can have up to 4 match rules and up to for setted values via webinterface. But you can also use Postmaster Filters in Config.pm so you can have more values there
Many Thanks!
Could you give an example how to call the existing filter in Config.pm?

Zoltan
OTRS 3.2.7, Ubuntu 12.04.2, MySQL 5.5.29
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Add more filters

Post by reneeb »

You can't "call" existing filters in Config.pm, but you can add new ones:

Code: Select all

    $Self->{'PostMaster::PreFilterModule'}->{'00009-Match'} = {
        Module => 'Kernel::System::PostMaster::Filter::Match',
        Match => {
            From => 'noreply@',
        },
        Set => {
            'X-OTRS-Ignore' => 'yes',
        },
    };
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
ZoltanBiro
Znuny newbie
Posts: 23
Joined: 18 Jan 2013, 10:57
Znuny Version: 5.x/6.x
Real Name: Zoltan
Company: Amaris

Re: Add more filters

Post by ZoltanBiro »

Many Thamks for All!!!
OTRS 3.2.7, Ubuntu 12.04.2, MySQL 5.5.29
Locked