mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Keep message bodies
This commit is contained in:
@@ -88,6 +88,7 @@ import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ThreadFactory;
|
||||
|
||||
import javax.mail.Address;
|
||||
@@ -1002,6 +1003,14 @@ public class Helper {
|
||||
return result;
|
||||
}
|
||||
|
||||
static long[] toLongArray(Set<Long> set) {
|
||||
long[] result = new long[set.size()];
|
||||
int i = 0;
|
||||
for (Long value : set)
|
||||
result[i++] = value;
|
||||
return result;
|
||||
}
|
||||
|
||||
static List<Long> fromLongArray(long[] array) {
|
||||
List<Long> result = new ArrayList<>();
|
||||
for (int i = 0; i < array.length; i++)
|
||||
|
||||
Reference in New Issue
Block a user