Discussion:
[otrs] Postmaster filter: how to do "not =" or "<>" ...
Martignier, Philippe
2010-03-01 16:07:42 UTC
Permalink
Hi there,

I have to implement filters where the subject is not egal to FW:

How can I do that with the postmaster filter menu in the admin menu?

I tried : <> and ! but it does not work, what is the expression need to say not = ?

Many thanks

Philippe


Philippe Martignier

Communications Division

Customer Service Section

Email : ***@wipo.int<mailto:***@wipo.int>

Phone : 00 41 022 338 72 36

Building : GB II

Office : 0,3


World Intellectual Property Organization Disclaimer:

This electronic message may contain privileged, confidential and
copyright protected information. If you have received this e-mail
by mistake, please immediately notify the sender and delete this
e-mail and all its attachments. Please ensure all e-mail attachments
are scanned for viruses prior to opening or using.
Nils Leideck - ITSM
2010-03-01 21:24:41 UTC
Permalink
Hi,
Post by Martignier, Philippe
How can I do that with the postmaster filter menu in the admin menu?
I tried : <> and ! but it does not work, what is the expression need to say not = ?
not tested but it could work with "^[^FW]" while FW is at the beginning of the subject line.

Nils Leideck
--
Nils Leideck
Senior Consultant

***@leidex.net
***@otrs.com

http://webint.cryptonode.de / a Fractal project
Nils Leideck - ITSM
2010-03-03 00:50:17 UTC
Permalink
Hi Martin,
this will exclude too much.
^[^FW]
- beginning of line
- every character that is not F or W
^[^F][^W]
you are absolutely right !!!!

Nils Leideck
--
Nils Leideck
Senior Consultant

***@leidex.net
***@otrs.com

http://webint.cryptonode.de / a Fractal project
Martin Gruner
2010-03-02 09:14:44 UTC
Permalink
Hi,

this will exclude too much.

^[^FW]

means:

- beginning of line
- every character that is not F or W

what you'd want is probably:

^[^F][^W]

Another option would be to use negative lookaheads/lookbehinds of Perl's
regular expressions.

Best regards,
Martin Gruner
Post by Nils Leideck - ITSM
Hi,
Post by Martignier, Philippe
How can I do that with the postmaster filter menu in the admin menu?
I tried : <> and ! but it does not work, what is the expression need to say not = ?
not tested but it could work with "^[^FW]" while FW is at the beginning of
the subject line.
Nils Leideck
--
Martin Gruner
Customer Development


OTRS AG
Europaring 4
94315 Straubing
Deutschland

T: +49 (0) 9421 56818 0
F: +49 (0) 9421 56818 18
I: http://www.otrs.com/

Geschäftssitz: Bad Homburg
Amtsgericht: Bad Homburg, HRB 10751
Steuernummer: 003 240 97505
Aufsichtsratsvorsitzender: Burchard Steinbild
Vorstand: André Mindermann (Vorsitzender), Martin Edenhofer

Treffen Sie ((otrs)) auf dem IIR Service Desk Forum in Mainz und erfahren Sie
vom 24.-25. November 2009 mehr über OTRS an Stand 12!
Martignier, Philippe
2010-03-02 08:58:09 UTC
Permalink
Many many thanks Niels, it works like a charm :)

World Intellectual Property Organization Disclaimer:

This electronic message may contain privileged, confidential and
copyright protected information. If you have received this e-mail
by mistake, please immediately notify the sender and delete this
e-mail and all its attachments. Please ensure all e-mail attachments
are scanned for viruses prior to opening or using.
Martignier, Philippe
2010-03-03 08:34:30 UTC
Permalink
Thanks both of you :)

What I need is to filter all internal incoming mails in a queue named "Internal mails" but not the ones that have a subject beginning with "FW:"

So I place a filter with:
Loading...