How to get only first mail of sender

Moderator: crythias

Locked
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

How to get only first mail of sender

Post by PriteshP23 »

Hello,
I would like to get only first mail of the Sender. In article table, there is a full history of all mail exchanges. Instead of getting it full, i want to get only the content of first mail. I hope i am clear.

Any idea?

THANKS in advanced.
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

Re: How to get only first mail of sender

Post by PriteshP23 »

OTRS save all mails in same table.. ? My problem is there is by default auto reply. Tickets before two months are wiith communication. So, there is a lot of text. I need to get only First part.

Help !
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to get only first mail of sender

Post by jojo »

it might be possible via SQL but very tricky
"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
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

Re: How to get only first mail of sender

Post by PriteshP23 »

it might be possible via SQL but very tricky
Yes, it is next to impossible. Because it is too long text. In addition, there is common words in each article and salutation. So, I can't use neither split nor substring.

We can find All history of exchange emails in article table only ?

Thanks !
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
Locked