Hi,
I'm using Hesk with mike-koch's mods-for-hesk and made a fix. He suggested to post it here too.
Ticket replies imported from email kept the previous mail header in the answer text. This change looks for the header with a regex and if it is before the "do-not-remove" line, cuts there. It may not always work, because the header depends on the mail client.
https://github.com/mike-koch/Mods-for-H ... 7f16a4599f
updated stripQuotedText to also strip quoted mail header
Moderator: mkoch227
Re: updated stripQuotedText to also strip quoted mail header
Thanks for sharing.
Reliably detecting removing quoted messages is a nightmare (Google even has a rather complicated process patented) because email clients don't have standard way of doing it. Things get even worse when you start adding support for multiple languages into the mix.
While your fix works for a very specific email client (but may cause problems elsewhere), I currently do not plan on improving Hesk's quoted message functionality.
Reliably detecting removing quoted messages is a nightmare (Google even has a rather complicated process patented) because email clients don't have standard way of doing it. Things get even worse when you start adding support for multiple languages into the mix.
While your fix works for a very specific email client (but may cause problems elsewhere), I currently do not plan on improving Hesk's quoted message functionality.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools