-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with iOS Mail app #9
Comments
Thanks for the report, can you upload a complete example (make sure to remove any private information) of such a mail here? Alternatively send me such a message to robert -at- enough --dot-- de. |
I mailed you a sample email |
Thanks again for the test mail and your report! You need to update your packages:
The problem was that the inline part did not have a |
Hi, looks fixed the email is loading correctly now. i am emailing the mail that causes this to you |
Strange, I cannot reproduce the problem with the mail text you sent me. final splitBoundary = '--' + contentTypeHeader!.boundary! + '\r\n';
final childParts = bodyText.split(splitBoundary);
if (!bodyText.startsWith(splitBoundary)) {
// mime-readers can ignore the preamble:
childParts.removeAt(0);
}
var lastPart = childParts.last; // <-- in your case childParts seems to be empty Do you have any other way how to reproduce this? |
The issue seems to be because of this code bodyText is set to '' as headerParseResult.bodyStartIndex is 10319 and text.length is 10317 since bodyText is '' Also just FYI i am importing enough mail like this in yaml i am not importing any other dependencies from enough mail directly |
Thanks, this seems to imply there is no body detected at all. Could it be that the text lines are not separated by |
I think this could be some issue at my end as my mails are being saved in a database and when i send a new mail its working. |
You could try to replace newlines with the MIME line breaks like this: final mimeText = text.replaceAll('\n', '\r\n');
final mime = MimeMessage.parseFromText(mimeText); And yes, I am aware about the ordering of inline parts and have created this bug to track it: |
Hi,
if i send mail using iphone mail app (attached with gmail) and i just send an inline image along with text "sent from iphone"
i am getting error
Error: no binary decoder found for [7bit].
the image is not displayed the text part is displayed
the mime message looks something like this
`Return-Path:
X-Original-To:
Delivered-To:
Received:
Received:
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
..
..
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:content-transfer-encoding:from:mime-version:date
:subject:message-id:to;
..
..
X-Gm-Message-State: ...
X-Google-Smtp-Source: ...
X-Received:
Received:
Content-Type: multipart/mixed;
boundary="Apple-Mail-----------"
Content-Transfer-Encoding: 7bit
From: ...............
Mime-Version: 1.0 (1.0)
Date: Mon, 12 Apr 2021 18:38:07 +0530
Subject: Mail
Message-Id: ........
To: ..............
X-Mailer: iPhone Mail (18B121)
--Apple-Mail--------------------
Content-Type: image/jpeg;
name=image0.jpeg;
x-apple-part-url=------------------
Content-Disposition: inline;
filename=image0.jpeg
Content-Transfer-Encoding: base64
/9j/2wCEAAEBAQEBAQIBAQIDAgICAwQDAwMDBAUEBAQEBAUGBQUFBQUFBgYGBgYGBgYHBwcHBwcI
CAgICAkJCQkJC...NIs1t/
tRv9qjooKP/Z
--Apple-Mail---------------------
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: 7bit
Sent from my iPhone
--Apple-Mail----------
`
The text was updated successfully, but these errors were encountered: