enough_mail icon indicating copy to clipboard operation
enough_mail copied to clipboard

limited number of text in message?

Open kotran88 opened this issue 2 years ago • 1 comments
trafficstars

I have long line of message and seems that it has some limit of reading message.

is it true? how can I read all message content? I just use sample function but it has limit in reading all text

like below I can't see all html code of my email's content

void printMessage(MimeMessage message) { print('from: ${message.from} with subject "${message.decodeSubject()}" , '); if (!message.isTextPlainMessage()) { print(' content-type: ${message.mediaType}'); print(message.decodeTextPlainPart()); print(message.body); print(message.decodeContentMessage()); print("11111"); print(message.decodeContentText()); print("2222"); print(message.decodeTextHtmlPart()); print("333"); print(message.toString()); } else { final plainText = message.decodeTextPlainPart(); if (plainText != null) { final lines = plainText.split('\r\n'); for (final line in lines) { if (line.startsWith('>')) { // break when quoted text starts break; } print(line); } } } }

seems like on decodeTextPlainPart function, I can read long line of message but with some emaiil, decodeTextPlainPart is null so I should try decodeContentText() and with this function, I have content is limited to show .

kotran88 avatar Apr 26 '23 02:04 kotran88

How do run your code? The print method truncates output after a couple of lines - at least in the debug output window.

robert-virkus avatar Jun 05 '23 06:06 robert-virkus