View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0014129 | Plugin - EmailReporting | General | public | 2012-04-05 09:38 | 2013-04-28 14:42 |
Reporter | baamster | Assigned To | SL-Gundam | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.8.4 | ||||
Target Version | 0.9.0 | ||||
Summary | 0014129: No line brakes with HTML parser | ||||
Description | I get no line brakes in the description of the mantis items when I send mails. The mail contains HTML, but even after trying a table, ,and , mantis just dumps all the text as one big text blop in the descripton. Turning off the HTML parser just gives the message that bady was not found. Is there no other option to get those line brakes in Mantis? This is kind of unreadable..... :( | ||||
Tags | No tags attached. | ||||
Attached Files | rawmsg_1333699042_d7df4ea707707b414b594a25985ea029_masked.txt (3,830 bytes)
Delivered-To: support.nl@test.com.test-google-a.com Received: by 11.111.111.11 with SMTP id g12csp107491bkq; Fri, 6 Apr 2012 00:56:38 -0700 (PDT) Received: by 22.222.22.222 with SMTP id dt8mr9650719wib.18.1333698997883; Fri, 06 Apr 2012 00:56:37 -0700 (PDT) Return-Path: <info@test.com> Received: from relay.test.com (relay.test.com. [00.00.00.00]) by mx.google.com with ESMTP id m8ai6138564wed.77.2012.04.06.00.56.37; Fri, 06 Apr 2012 00:56:37 -0700 (PDT) Received-SPF: pass (google.com: domain of info@test.com designates 00.00.00.00 as permitted sender) client-ip=00.00.00.00; Authentication-Results: mx.google.com; spf=pass (google.com: domain of info@test.com designates 00.00.00.00 as permitted sender) smtp.mail=info@test.com Received: from relay.test.com (mailhost [44.44.4.4]) by relay.test.com (Postfix) with ESMTP id 152621D948A for <support.nl@test.com.test-google-a.com>; Fri, 6 Apr 2012 09:56:43 +0200 (CEST) Received: from SW003 (127.0.0.1) by sw003.wdm.local (127.0.0.1) with Microsoft SMTP Server id 1.1.111.0; Fri, 6 Apr 2012 09:56:35 +0200 MIME-Version: 1.0 From: "Info" <info@test.com> To: "Support" <support@test.com> CC: "Japie" <japie@test.com> Date: Fri, 6 Apr 2012 09:56:35 +0200 Subject: =?utf-8?B?Q0FTLTAxMzY3LUtKWEM0NiAtIDIwMTFfMDRfMDRfRklBVF9Db3VwbGluZy1xY3JpcHQgVEFTUzAwMDM0NjY=?= Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: base64 Message-ID: <8a2509c4-1611-11c7-1d1b-88a9840ea5b6@SW003.test.local> X-Antivirus: avast! (VPS 120405-1, 05-04-2012), Outbound message X-Antivirus-Status: Clean PFA+IDwvUD48UFJFPjxTVFJPTkc+Q3VzdG9tZXI6PFNQQU4gc3R5bGU9IkRJU1BMQVk6IGlubGluZSIgdGFiSW5kZXg9LTEgY29udGVudEVkaXRhYmxlPWZhbHNlIHZhbHVlPSc8c2x1Z2VsZW1lbnQgdHlwZT0ic2x1ZyI+PHNsdWcgdHlwZT0iZHluYW1pYyIgdmFsdWU9ImluY2lkZW50LmN1c3RvbWVyaWQiLz48L3NsdWdlbGVtZW50Pic+IDwvU1BBTj5OQU1FPC9TVFJPTkc+PC9QUkU+PFBSRT5TdWJqZWN0OjxTUEFOIHN0eWxlPSJESVNQTEFZOiBpbmxpbmUiIHRhYkluZGV4PS0xIGNvbnRlbnRFZGl0YWJsZT1mYWxzZSB2YWx1ZT0nPHNsdWdlbGVtZW50IHR5cGU9InNsdWciPjxzbHVnIHR5cGU9ImR5bmFtaWMiIHZhbHVlPSJpbmNpZGVudC5zdWJqZWN0aWQiLz48L3NsdWdlbGVtZW50Pic+ICA8L1NQQU4+Q2F0ZWdvcnk8L1BSRT48UFJFPlZlcnNpb246PFNQQU4gc3R5bGU9IkRJU1BMQVk6IGlubGluZSIgdGFiSW5kZXg9LTEgY29udGVudEVkaXRhYmxlPWZhbHNlIHZhbHVlPSc8c2x1Z2VsZW1lbnQgdHlwZT0ic2x1ZyI+PHNsdWcgdHlwZT0iZHluYW1pYyIgdmFsdWU9ImluY2lkZW50LnRzX3ZlcnNpb25udW1iZXIiLz48L3NsdWdlbGVtZW50Pic+ICA8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YWRkaXRpb25hbCBpbmZvcm1hdGlvbiBpbiAibm90ZXMgYW5kIGFydGljbGUiIGlmIGl0J3Mgbm90IHN1ZmZpY2llbnQgSSBjYW4gcHJvdmlkZSB5b3UgdGhlIHNjcmlwdCBJIHNlbnQuPC9QUkU+PFBSRT49PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT08L1BSRT48UD4qKiogVGhpcyBtZXNzYWdlIHdhcyBhdXRvbWF0aWNhbGx5IGdlbmVyYXRlZCBieSBNaWNyb3NvZnQgRHluYW1pY3MgQ1JNICoqKjwvUD4= | ||||
For the moment there is no other solution available. MantisBT only allows a small amount of html markup. To make the code readable at all we need to convert or strip most of the html markup from the email. Sometimes this works ok, sometimes this does not work at all. Normally emails contain a plain text and a html version of the email. EmailReporting tries to find this plain text version but some mail servers do not provide this. Exchange for example needs to have this enabled in the settings for the pop and/or imap protocol on the server to deliver this in the emails when they are retrieved from the servers. Could you please provide a debug dump of the email in this issue so that i can look into improving this |
|
I could do that, however I need to mask some of the data (content & mails) since this is an automated mail of our CRM system. No other way to test it unfortunatelly....Give me a sec File attached. Not sure it is very usable since it already pasted all the content after each other? |
|
I need the file that starts with "rawmsg" The parsed email is the end result and useless at this point Also mask whatever you feel is necessary, just make sure you do not mask to much as we do need some html content for testing |
|
there you go.... Can you plz remove the parsed att? Noticed I did not mask it correctly :( |
|
alright got it. Will work on it and see what i can do |
|
There is something strange going on as well which might have to do with the same problem. If I auto forward mails from a gmail adress to the adress that the plugin uses to pick up the issues, I get the text pasted after each other (as stated in this issue). However, when I forward the same mail manually to the pick up mail adress, it parses the mail correctly. Does it have something to do with the mail settings? |
|
Manually using what interface? the gmail web interface? |
|
It's too many different factors to be for sure but every mail server in the route the email takes could add or remove a plain text version of the email. Even the sending client could be to blame. |
|
I checked some more and there is a new version of simple_html_dom (the new version is 1.5 and EmailReporting is using 1.11) which currently converts html to plain text for the EmailReporting. It seems to work a little bit better, though not perfect It will be included in the final release of 0.9.0 but for now you could try it yourself Just download it here: http://sourceforge.net/projects/simplehtmldom/files/simplehtmldom/1.5/ I do need to mention that there are no tables in the email you provided to me. It's a combination of < pre > tags and < span > tags containing CSS stylesheets elements, there are no actual tables. All of it is in one big line as well making it rather unreadable. I really wonder what email client would have created this mess |
|
I just replaced the dom file and it surprisingly seems to have some effect. I guess it's now a matter of finding out which markup language works and which doesnt. The messy mail is probably because we tested some html ourselves and somehow the mailserver does not place the code neatly in the raw message.... As for your initial question; yes the gmail interface. So big thanks for now since we can move forward! |
|
has anyone a workaround for this problem? |
|
Please provide the debug dump (the filename starts with "rawmsg_") of the email so that i can look into it |
|
We have changed the settings at our echange server 2010 how you described it in 0014129:0031602 and the problem is solved. |
|