|
|
@ -3006,28 +3006,30 @@ class Core {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ((message.size != null && message.size < maxSize) ||
|
|
|
|
if ((message.size != null && message.size < maxSize) ||
|
|
|
|
(MessageClassifier.isEnabled(context)) && folder.auto_classify_source) {
|
|
|
|
(MessageClassifier.isEnabled(context)) && folder.auto_classify_source)
|
|
|
|
String body = parts.getHtml(context);
|
|
|
|
try {
|
|
|
|
File file = message.getFile(context);
|
|
|
|
String body = parts.getHtml(context);
|
|
|
|
Helper.writeText(file, body);
|
|
|
|
File file = message.getFile(context);
|
|
|
|
db.message().setMessageContent(message.id,
|
|
|
|
Helper.writeText(file, body);
|
|
|
|
true,
|
|
|
|
db.message().setMessageContent(message.id,
|
|
|
|
HtmlHelper.getLanguage(context, body),
|
|
|
|
true,
|
|
|
|
parts.isPlainOnly(),
|
|
|
|
HtmlHelper.getLanguage(context, body),
|
|
|
|
HtmlHelper.getPreview(body),
|
|
|
|
parts.isPlainOnly(),
|
|
|
|
parts.getWarnings(message.warning));
|
|
|
|
HtmlHelper.getPreview(body),
|
|
|
|
MessageClassifier.classify(message, folder, null, context);
|
|
|
|
parts.getWarnings(message.warning));
|
|
|
|
if (!message.ui_hide)
|
|
|
|
MessageClassifier.classify(message, folder, null, context);
|
|
|
|
db.message().setMessageUiHide(message.id, false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (stats != null && body != null)
|
|
|
|
if (stats != null && body != null)
|
|
|
|
stats.content += body.length();
|
|
|
|
stats.content += body.length();
|
|
|
|
Log.i(folder.name + " inline downloaded message id=" + message.id +
|
|
|
|
Log.i(folder.name + " inline downloaded message id=" + message.id +
|
|
|
|
" size=" + message.size + "/" + (body == null ? null : body.length()));
|
|
|
|
" size=" + message.size + "/" + (body == null ? null : body.length()));
|
|
|
|
|
|
|
|
|
|
|
|
if (TextUtils.isEmpty(body) && parts.hasBody())
|
|
|
|
if (TextUtils.isEmpty(body) && parts.hasBody())
|
|
|
|
reportEmptyMessage(context, state, account, istore);
|
|
|
|
reportEmptyMessage(context, state, account, istore);
|
|
|
|
}
|
|
|
|
} finally {
|
|
|
|
|
|
|
|
if (!message.ui_hide)
|
|
|
|
|
|
|
|
db.message().setMessageUiHide(message.id, false);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
reportNewMessage(context, account, folder, message);
|
|
|
|
reportNewMessage(context, account, folder, message);
|
|
|
|