Incident: inline.txt attached in mails
-
Date Seen
24.04.2017Versions
Ubuntu 16.04.2 LTS
Kopano 8.4.0-344
Apache 2.4.18
MySQL 5.7.17Bug Description
Mails not displaying correctly, an attachment called inline.txt is attached.Severity
MinorSteps to Reproduce
- Save the following mail to emai.eml:
Return-Path: <SENDER> Received: from SERVER ([::ffff:127.0.0.1]:42126) by server (kopano-dagent) with LMTP; Mon, 24 Apr 2017 08:56:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by SERVER (Postfix) with ESMTP id 25A51180A4F for <USERNAME@DOMAIN>; Mon, 24 Apr 2017 08:56:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at DOMAIN X-Spam-Flag: NO X-Spam-Score: -1.302 X-Spam-Level: X-Spam-Status: No, score=-1.302 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, HTML_MESSAGE=0.001, HTML_MIME_NO_HTML_TAG=0.377, MIME_HTML_ONLY=0.723, MISSING_MID=0.497] autolearn=no autolearn_force=no Received: from SERVER ([127.0.0.1]) by localhost (server.marschik.intern [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id byYCnDTfhF6z for <USERNAME@DOMAIN>; Mon, 24 Apr 2017 08:56:27 +0200 (CEST) Received: from RECEIVER (RECEIVER [IPADDRESS]) by SERVER (Postfix) with SMTP id 59B881803D7 for <USERNAME@DOMAIN>; Mon, 24 Apr 2017 08:56:26 +0200 (CEST) Received: by RECEIVER (sSMTP sendmail emulation); Mon, 24 Apr 2017 08:56:26 +0200 Date: Mon, 24 Apr 2017 08:56:26 +0200 To: "USERNAME" <USERNAME@DOMAIN> Reply-To: "RECEIVER" <SENDER> From: "RECEIVER" <SENDER> Subject: =?UTF-8?B?VGVzdCBtYWlsIGZyb20gW25hc3YyXQ==?= MIME-Version:1.0 Content-type:text/html;charset=utf-8 Content-Transfer-Encoding: 8bits Message-Id: <20170424065629.25A51180A4F@SERVER> <div style="font-family:Verdana; width: 786px; height: 38px; background-color: #3977AA; padding: 0 22px;"> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td align="left" width="98"><img style="margin:10px; display: inline;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAAASCAMAAACXWfv9AAACE1BMVEX///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+W52MWAAAAsHRSTlMAc/gCAe/N0zuVqk0tk3vzZvGUgsvj8uQg+vu3HWfwcvc/YyxxVpJa15esYVn97SiJCQPJ0IDgpgjsa3Rkwf5QODxdwxjInVWRGuEPNCl84vZOqbRPF9xsv sxSMxNXQUCgK5+zXNEHJoFH6UrbavVeDR54KqLUOvxiwtgRpIR+HNW6X4+vsbtgduVYOUUnhqiYenUOud62fcqDVAxMixBuPe7Wmm0Wh9L538U3ZUmMG1zCG2IAAAJQSURBVHhepZRldxNBFIbfJBvaAqENlISGuJEmqVGnVKhRd8Hd3d3d3d1d5ieyOzPbZiZ7IOfwfLnz3rvnPLMf7gAoCbdPTWEoeq0bKvOXmTR8W8HIvqemumZFC6ENYVMKvsRyMMoCntSJz7O6DMA+O5E5cwhApZ6OgFJKwzEFOH7CTyRcw26orKogMktDWEkMcLZC2agHewgas2iYosAyRAxoqQFueg0GS1BPjPDAcnAitNUIis0uYkQ2cMqovwv9tBasidoo0SqaO2DJmhS+FBSLWNPlN1P8BSyPAIX00GDmg8PsOzhpdawAZz3NOYKiYXuqIps1T/ZOp/T6WJ4G5NDDtqa1Wj+0/yK7PWbTmjsHnLk0zxQUpL81XZEHTqOkcG4CY11mii3VtMTTFQvAWSwprnaDcSAzxeCeHbR60hQ7wXkm/4UFjPbMFLvR49Cqd+8VSTEOCwURSfE2mJynkkwepdH1L0UzECnSDsM2SdFVnk8pHxMVMuZUhXJ6FDgrKs4BMBGOrpD4u6JNV4xCxX3+Ql7fJUeq4jJUbP+hiPXwvRiIvAkEAtdvdBQVx2/dzp3ciwR9EeMGiupgHiV4R1IMlN6dwemrG7kPxATng/GHxPXo8ZOnumIhNJ63pCuC4LyQFLWvIBIlAmOv8wmxFrpFBTrpTTLbi2I3RDqzREet6Z1a3luUGN8HRomTjSsm3qgP4ERYHtTfKLuswMdPn63mL2adoq9hbREq8c1utVodCXC+d2nZXq+gyevVJj/AaVQH6uQn8MuhHrxVvyHwB6pQpNZ+wYivAAAAAElFTkSuQmCC"></td> <td align="left" valign="middle" width="300"><span style="font-size: 12px; color: #ffffff;"> Simple yet powerful NAS</span></td> <td align="right" valign="middle"><a style="font-size: 12px; color: #ffffff;" href="http://www.qnap.com/" target="_blank">Go to QNAP</a></td> </tr> </table> </div> <div style="font-family:Verdana; width: 786px; text-align: center; padding: 40px 0 0"> <div style="width:680px; border:1px solid #dfdfdf; margin: 0 auto;"> <div style="padding: 35px 60px;"> <div style="font-size:18px; font-weight:bold; color:#2E2F30;"> Test mail from [RECEIVER] </div> <div style="margin: 18px 0 28px; width: 100%; height: 3px; background-color: #cecece;"></div> <div style="text-align:left; color: #010101; font-size: 12px; line-height: 24px;"> <p>Server Name: RECEIVER<br>IP Address: IPADDRESS<br>Date/Time: 2017/04/24 08:56:26<br><br>This is a test mail sent by NAS (RECEIVER).<p> </div> </div> </div> <div style="width: 680px; text-align: right; padding: 10px 0 0; border: 0; margin: 0 auto;"> <a href="http://www.qnap.com" target="_blank" style="font-family:Verdana; text-decoration: none; font-size: 10px; color:#7B7A7A">©2017 QNAP Systems, Inc.</a> </div> </div>
- Import the mail via kopano-dagent:
kopano-dagent -f email.eml usermailbox
Actual Behavior
HTML Mails are not displayed correctly instead they get delivered with an attachment called inline.txt. I am able to view this mail correctly on other mail systems.Expected Behavior
HTML Mails can be viewed correctly.Troubleshooting/Testing Steps Attempted
I searched the web for solutions or similar errors, without success.Workaround
No working workaround found yet, i am just able to view this mail in other mail Systems. -
Ticketed at https://jira.kopano.io/browse/KC-624
-
-
That would make sense, yeah :-)
-
-
Hi,
in https://jira.kopano.io/browse/KC-624 @fbartels mentioned that this issue is fixed in version 8.4.0-792. I am not able to verify this fix because if i try to open the testmail via webapp i am getting “Could not open message”. On an iPhone i see an attachment called “inline.bin”.
Regards
Richard -
KC-624 is about inline images being shown as an attachment called inline.txt. This is now displayed as inline.jpg (or a different file extension based on the mime type). If you don’t see the mail body then it appears you are having a different error.
-
If you follow the steps described above, do you get an email with inline.bin? For me it doesn’t matter if the attachment is called “inline.txt” or “inline.bin”, i am still receiving an unreadable email.
So, what i have to do now to get the problem confirmed?
Regards
Richard -
I did not (yet) try your steps from above, I was merely pointing out that the ticket you are referencing seems to describe a different problem.
So, what i have to do now to get the problem confirmed?
having patience until some has free time to look at this or get a subscription and open a support call to raise priority.
-
Just to clarify:
The ticket https://jira.kopano.io/browse/KC-624 linked from @jengelh is just misleading and not fixing the issue described above.
And sorry for the following words but i have to point that out:
I am investing much time to do the “testing part” for you, seems like you do not have any testers for the daily builds, and all i earn is “get a subscription”. What i do is just work for you!
All this never happened during the times the product was called zarafa…
Regards
Richard -
@darootler “Could not open message” is due to KC-709. Code for it exists, I temporarily uploaded that to https://github.com/jengelh/kopano-core/tree/kc-709 .
-
Seems like there a three issues mixed in this thread:
1.) inline.txt --> https://jira.kopano.io/browse/KC-624
2.) “Could not open message” --> https://jira.kopano.io/browse/KC-709
3.) inline.bin --> Seems like this is not coveredIf you want to reproduce the “inline.bin” problem just follow the steps mentioned in the thread start.
Regards
Richard -
https://jira.kopano.io/browse/KC-713 for this one then.
-
-
Your email (first post of this thread) uses “Content-Transfer-Encoding: 8bits”, which is not a standard recognized encoding. As such, the entire e-mail is placed into inline.bin, not just the QNAP logo.
I think you need to tell QNAP that it’s supposed to be “8BIT”, not “8bits”. -
This post is deleted! -
-
@darootler said in Incident: inline.txt attached in mails:
The ticket https://jira.kopano.io/browse/KC-624 linked from @jengelh is just misleading and not fixing the issue described above.
that’s what I was saying all along. it does describe something different, than in your first post.
I am investing much time to do the “testing part” for you, seems like you do not have any testers for the daily builds, and all i earn is “get a subscription”. What i do is just work for you!
The master branch is indeed only fully tested and qa’ed once it has been branched off for a release until that point it will only receive punctual tests (apart from a battery of automated tests).
But in open source its the mutual agreement that for the software/code that you receive you contribute back, either by giving feedback in case you encountered an error or pushing back code for such errors and new features.
All this never happened during the times the product was called zarafa…
Mostly since you now work on the master branch instead fenced off releases and we have been busy over the last few releases in refactoring the majority of the code.