Header abfragen in Postmaster Filter

Hilfe zu Znuny Problemen aller Art
Locked
willipolin
Znuny expert
Posts: 154
Joined: 21 Jun 2013, 11:38
Znuny Version: 3.2.5

Header abfragen in Postmaster Filter

Post by willipolin »

Hallo liebe Community,

ich habe eigentlich ein ganz banales Problem, an das ich aber schon seit 2 Stunden sitze.
Ich möchte, wenn ein Kunde im Betreff z.b. "Prio1" reinschreibt (also z.b. Betreff: Prio1 der Drucker blablavla...), dass dann die Priorität auf 1 gestellt wird.
Ich schaffe das solange ich als Match im Header nur einen einzigen Buchstaben matche - bei mehreren also "Prio-1" oder so - funkt das nicht mehr.
Hab schon alles ausprobiert..... :?

Kann mir einer helfen? Danke!!!!
You do not have the required permissions to view the files attached to this post.
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: Header abfragen in Postmaster Filter

Post by reneeb »

Zeig mal eine Mail und was Du alles versucht hast...
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
willipolin
Znuny expert
Posts: 154
Joined: 21 Jun 2013, 11:38
Znuny Version: 3.2.5

Re: Header abfragen in Postmaster Filter

Post by willipolin »

Folgende Konstellation funktioniert:

Sobald ich aber im Postmasterfilter bei Wert nicht nur ein "P "sondern z.B. "Prio" reinschreibe funkts nicht mehr ?!!!
You do not have the required permissions to view the files attached to this post.
Elbo
Znuny newbie
Posts: 13
Joined: 19 Jun 2013, 13:04
Znuny Version: 3.2.8

Re: Header abfragen in Postmaster Filter

Post by Elbo »

Die Postmasterfilter funktionieren mit Regular Expressions zu deutsch Reguläre Ausdrücke. Googel mal ein wenig dann findets du schnell die Syntax die in den Filtern benutzt wird.

Eigentlich ein logisches System aber relativ Komplex. Ich finde es auch relativ aufwendig wirklich alle Eventualitäten abzudecken. Z.B. Prio1 ist nicht gleich prio1.

Darf ich hier eigentlich Links zu externen Seiten posten?

Gruss Elbo
OTRS 3.3.1
Windows Server 2008R2
IIS7.5
MS SQL Datenbank
FAQ Modul
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: Header abfragen in Postmaster Filter

Post by reneeb »

@willipolin: Kannst Du vielleicht mal in der SysConfig "PlainView" aktivieren und dann in das Ticket gehen? Bei dem Artikel sollte jetzt ein Link "unformatierte Ansicht" erscheinen. Öffne die mal und kopiere die Zeile mit "Subject: ...." hierher.

@elbo: Klar kannst Du Links posten, sollten nur keine illegalen Sachen sein.
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
willipolin
Znuny expert
Posts: 154
Joined: 21 Jun 2013, 11:38
Znuny Version: 3.2.5

Re: Header abfragen in Postmaster Filter

Post by willipolin »

@reneeb: Ähh - wo kann ich das aktivieren?
You do not have the required permissions to view the files attached to this post.
Hazet
Znuny wizard
Posts: 383
Joined: 19 Feb 2009, 12:05
Znuny Version: 5.0.9
Real Name: Harald Zahn
Company: Klinikum Augsburg
Location: Augsburg

Re: Header abfragen in Postmaster Filter

Post by Hazet »

Sorry, aber hast Du einfach mal in dem Suchfenster in der Sysconfig "PlainView" suchen lassen? Das bringt bei mir genaue einen Treffer...
Produktiv: OTRS 5.0.9 , (ITSM 5.0.10) unter Ubuntu 14.04, mysql 5.5
Test: OTRS 5.0.8 , (ITSM 5.0.8), KIX unter Ubuntu 14.04, mysql 5.5
willipolin
Znuny expert
Posts: 154
Joined: 21 Jun 2013, 11:38
Znuny Version: 3.2.5

Re: Header abfragen in Postmaster Filter

Post by willipolin »

klar - sorry!

E-Mail unformatiert anzeigen: 2013071010000023 - 1 drucker defekt

Fenster schließen
Unformatiert Ticket#: 2013071010000023 / TicketID: 21416 / ArticleID: 52380 - Diese E-Mail herunterladen
......
Subject: 1 drucker defekt
Thread-Topic: 1 drucker defekt
Thread-Index: Ac59QT8roF2zrl6XQVaMdM5dXkhTyw==
Message-ID: <9EA2B1CCAEFBE9408D5E7720EB3F46F7021FADD55492@srvdev01.lessing-irm.local>
Accept-Language: de-DE
Content-Language: de-DE
X-MS-Has-Attach:
X-MS-Tnef-Correlator:
Acceptlanguage: de-DE
Content-Type: multipart/alternative; boundary="_000_9EA2B1CCAEFBE9408D5E7720EB3F46F7021FADD55492srvdev01les_"
MIME-Version: 1.0

X-Originalarrivaltime: 10 Jul 2013 07:43:00.0230 (UTC) FILETIME=[19F73260:01CE7D41]

--_000_9EA2B1CCAEFBE9408D5E7720EB3F46F7021FADD55492srvdev01les_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

derffrfrfrfrfrf


Beste Gr=FC=DFe
Wilfried


--_000_9EA2B1CCAEFBE9408D5E7720EB3F46F7021FADD55492srvdev01les_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40"><head><meta http-equiv=3DContent-Type content=
=3D"text/html; charset=3Diso-8859-1"><meta name=3DGenerator content=3D"Micr=
osoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DDE link=3Dblue vlink=
=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>derffrfrfrfrfrf<o:=
p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>=
<span style=3D'mso-fareast-language:DE'><o:p>&nbsp;</o:p></span></p><p clas=
s=3DMsoNormal><span style=3D'mso-fareast-language:DE'>Beste Gr=FC=DFe<o:p><=
/o:p></span></p><p class=3DMsoNormal><span style=3D'mso-fareast-language:DE=
'>Wilfried Polin<o:p></o:p></span></p><p class=3DMsoNormal><o:p>&nbsp;</o:p=
></p></div></body></html>=

--_000_9EA2B1CCAEFBE9408D5E7720EB3F46F7021FADD55492srvdev01les_--
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: Header abfragen in Postmaster Filter

Post by reneeb »

* Im Ausgangspost schreibst Du "wenn im *Betreff* Prio1 ...", im Filter benutzt Du aber Subject
* Die unformatierte Ansicht passt nicht zu dem Ticket von dem Du weiter oben den Screenshot gezeigt hast
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
Locked