Some Improvements

This plugin allows you to report an issue in MantisBT by sending an email to a particular mail account

Moderators: Developer, Contributor

Post Reply
maschneider
Posts: 3
Joined: 14 Apr 2011, 08:31

Some Improvements

Post by maschneider »

hi,

i like the plugin, but there some issuis so i write some changes. You can find my source in github:

https://github.com/OSguard/Mantisbt-EmailReporting

i have made the following changes:

- add a hack with encoding problems with evolution

evolution encodes subject in ISO but the rest of the email in utf-8, so if you use special chars (like german äöü) the subject was broken

- try to remove signatur

alway have the complete email signature was bad, so i try to remove the signature, i use to detect "-- \n" at the end of a mail. It is not the best but a work solution.

- try to remove dublicated content

if you answer email and have a full-quote the complete quote will add as a bug notice. Some time you have part of the quote already be part on the history of the bug. So i load all bugnotes and replace the content with a link to the note in the new bug note. This is experimental but at the moment it works for us

Have a look and share your thoughts

greetings

Markus
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Some Improvements

Post by SL-Gundam »

I would have rather seen some configuration options with which someone can manipulate these hacks.

Something like this: "Email subject always encoded with ISO-8859-1 (hack for evolution) -> Yes - No" etc.

But it would be even better if these hacks could do their job automatically so that outlook, evolution and other mail clients can be used simultaneously
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Some Improvements

Post by SL-Gundam »

While i was testing Evolution to see about adding a hack option with which others could fix this character set issue i found out that it is not just Evolution but more or less every other mail client on the planet.... (oops)

So i'm reworking the email parsing and charset conversion stuff so that this works properly for all email clients

Which resulted in the following changes:
https://github.com/mantisbt-plugins/Ema ... fb371a563f
https://github.com/mantisbt-plugins/Ema ... 2d801745df
Post Reply