[SOLVED] Redirect mail from personnal mailbox to OTRS

Moderator: crythias

Post Reply
Rick
Znuny newbie
Posts: 57
Joined: 30 Apr 2015, 09:24
Znuny Version: 4.0.7

[SOLVED] Redirect mail from personnal mailbox to OTRS

Post by Rick »

Hello everybody,

It happens very regularly that I receive mails on my personal inbox. So what I do is that I redirect these mails into the OTRS mailbox.
The problem is that when I do that , for OTRS i am the sender of the email.
Knowing that in the body of the email there is the initial sender email, can we create a ticket by retrieving the email in the body ?

Thanks for help.
Last edited by Rick on 04 May 2015, 11:45, edited 1 time in total.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Redirect mail from personnal mailbox to OTRS

Post by jojo »

use the bounce or send as new functionality of your mail client
"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
Rick
Znuny newbie
Posts: 57
Joined: 30 Apr 2015, 09:24
Znuny Version: 4.0.7

Re: Redirect mail from personnal mailbox to OTRS

Post by Rick »

What do you mean by send as new functionality of your mail client ?
It's possible to solve this with filter ?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Redirect mail from personnal mailbox to OTRS

Post by jojo »

please show the plain text of an article and which value you would like to use for the CustomerUserID


My advice is to use functionality of the mail client and not OTRS to solve this issue
"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
Rick
Znuny newbie
Posts: 57
Joined: 30 Apr 2015, 09:24
Znuny Version: 4.0.7

Re: Redirect mail from personnal mailbox to OTRS

Post by Rick »

For exemple i have an email with the body:
This is a test

And when I transfer to OTRS, i have in the body:

----- Mail transfered -----
From: "Someone" <someone@mail.com>
To: support@mail.com
Sended: Jeudi 30 Avril 2015 13:44:59
Object: Test

This is a test


I want to get the 'From' header which is in the body for setting the value of CustomerUserID and for CustomerUserMail
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Redirect mail from personnal mailbox to OTRS

Post by crythias »

OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Rick
Znuny newbie
Posts: 57
Joined: 30 Apr 2015, 09:24
Znuny Version: 4.0.7

Re: Redirect mail from personnal mailbox to OTRS

Post by Rick »

it seems to be that, but I don't understand how it works.
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Redirect mail from personnal mailbox to OTRS

Post by crythias »

When you press forward, you'd type in the code that you're using to redirect sender...

click forward
type
#customer: realcustomer@realdomain

click send
Postmaster filter finds
#customer:
then sets the sender/customer as the realcustomer@realdomain

... That's the thought anyway.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Rick
Znuny newbie
Posts: 57
Joined: 30 Apr 2015, 09:24
Znuny Version: 4.0.7

Re: Redirect mail from personnal mailbox to OTRS

Post by Rick »

Thanks to you I have already succeeded to get something right with filter.

Header 2 - Body - email : (.*)
Action
Header 1 - X-OTRS-DynamicField-location - value: [***]

and in my (test) body i have :
email : test@test.com
--> It's work good.

But in the body i have : 
From: "Somesuer" <someuser@domain.com>
And i want to get just what is there between <> (someuser@domain.com)
It's possible ? if yes, how can I do this ?
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Redirect mail from personnal mailbox to OTRS

Post by crythias »

I recommend regexpal.com to test things...

From:.*<(.*)>
might work.


But! it's going to find all instances of "From:" so ... if there's a long thread here, it's not optimal.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Redirect mail from personnal mailbox to OTRS

Post by crythias »

As an example of the concern:

"Jane Doe" <JaneDoe@example.com> sends you the following:
Hi, techs, I got this email thread:

From: "Bad Sender" <badsender@spammer>
...

So now you click forward... who is the customer?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Rick
Znuny newbie
Posts: 57
Joined: 30 Apr 2015, 09:24
Znuny Version: 4.0.7

Re: Redirect mail from personnal mailbox to OTRS

Post by Rick »

It's not the first instance he find ?

In any case, thank you.
Post Reply