Auto get customer from forwarded mail

Moderator: crythias

Locked
davidh
Znuny newbie
Posts: 2
Joined: 02 Mar 2016, 10:28
Znuny Version: 3.3.9

Auto get customer from forwarded mail

Post by davidh »

Lets say I'm getting a bunch of mail forwarded from a local exchange email address and they are always in the sameformat.

forexample like this:
From:helpful@man.com
subject:FW: printer help

------------------------------
From:Manly man(manly@man.com]
sendt: 30. february 2016 17:00
To: Helpful man(helpful@man.com)
subject: printer help

Hey i need printer help
Is there a way for me to automaticaly take the "from" email of the forwared mail and use that as the customer ID in OTRS? i want this to only apply for emails from helpful@man.com

edit: using helpful@man.com and manly@man.com as example emails, dont know who ownes these..
OTRS version 3.3.9, mysql db on debian(turnkey linux)
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: Auto get customer from forwarded mail

Post by reneeb »

This should be possible with postmaster filters. Search the body for "From: .*? \((*?)\)" and use "[***]" to set the customer id
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
davidh
Znuny newbie
Posts: 2
Joined: 02 Mar 2016, 10:28
Znuny Version: 3.3.9

Re: Auto get customer from forwarded mail

Post by davidh »

reneeb wrote:This should be possible with postmaster filters. Search the body for "From: .*? \((*?)\)" and use "[***]" to set the customer id
Sweet! will be setting up OTRS in the near future(within a month or so), trying to find all problems i might have before i get them and adding them to my implementation plan.

Case closed!
OTRS version 3.3.9, mysql db on debian(turnkey linux)
Locked