You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
<style>@media only screen and (max-width:640px) {.stb-container {}.stb-left-cell,.stb-right-cell {max-width: 100% !important;width: 100% !important;box-sizing: border-box;}.stb-image-box td {text-align: center;}.stb-image-box td img {width: 100%;}.stb-block {width: 100%!important;}table.stb-cell {width: 100%!important;}.stb-cell td,.stb-left-cell td,.stb-right-cell td {width: 100%!important;}img.stb-justify {width: 100%!important;}}.stb-left-cell p,.stb-right-cell p {margin: 0!important;}.stb-container table.munged {width: 100% !important; table-layout: auto !important; } .stb-container td.munged {width: 100% !important; white-space: normal !important;} </style>
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 .
The text was updated successfully, but these errors were encountered:
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
<style>@media only screen and (max-width:640px) {.stb-container {}.stb-left-cell,.stb-right-cell {max-width: 100% !important;width: 100% !important;box-sizing: border-box;}.stb-image-box td {text-align: center;}.stb-image-box td img {width: 100%;}.stb-block {width: 100%!important;}table.stb-cell {width: 100%!important;}.stb-cell td,.stb-left-cell td,.stb-right-cell td {width: 100%!important;}img.stb-justify {width: 100%!important;}}.stb-left-cell p,.stb-right-cell p {margin: 0!important;}.stb-container table.munged {width: 100% !important; table-layout: auto !important; } .stb-container td.munged {width: 100% !important; white-space: normal !important;} </style>
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 .
The text was updated successfully, but these errors were encountered: