|
|
@ -941,6 +941,8 @@ class Core {
|
|
|
|
// Cross account move
|
|
|
|
// Cross account move
|
|
|
|
if (!file.exists())
|
|
|
|
if (!file.exists())
|
|
|
|
throw new IllegalArgumentException("raw message file not found");
|
|
|
|
throw new IllegalArgumentException("raw message file not found");
|
|
|
|
|
|
|
|
if (TextUtils.isEmpty(message.msgid))
|
|
|
|
|
|
|
|
throw new IllegalArgumentException("Message-ID missing");
|
|
|
|
|
|
|
|
|
|
|
|
Log.i(folder.name + " reading " + file);
|
|
|
|
Log.i(folder.name + " reading " + file);
|
|
|
|
try (InputStream is = new BufferedInputStream(new FileInputStream(file))) {
|
|
|
|
try (InputStream is = new BufferedInputStream(new FileInputStream(file))) {
|
|
|
@ -1015,6 +1017,10 @@ class Core {
|
|
|
|
Log.e(ex);
|
|
|
|
Log.e(ex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
Long found = findUid(context, ifolder, message.msgid, false);
|
|
|
|
|
|
|
|
if (found == null)
|
|
|
|
|
|
|
|
throw new IllegalArgumentException("Added message not found");
|
|
|
|
|
|
|
|
|
|
|
|
// Mark source read
|
|
|
|
// Mark source read
|
|
|
|
if (autoread)
|
|
|
|
if (autoread)
|
|
|
|
EntityOperation.queue(context, message, EntityOperation.SEEN, true);
|
|
|
|
EntityOperation.queue(context, message, EntityOperation.SEEN, true);
|
|
|
|