mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Correct checking for hashdb service result
This commit is contained in:
parent
8562c32716
commit
5361f18a0d
@ -61,6 +61,7 @@ public class ThunderbirdMboxFileIngestService implements IngestServiceAbstractFi
|
|||||||
private IngestManagerProxy managerProxy;
|
private IngestManagerProxy managerProxy;
|
||||||
private static int messageId = 0;
|
private static int messageId = 0;
|
||||||
private static final String classname = "Thunderbird Parser";
|
private static final String classname = "Thunderbird Parser";
|
||||||
|
private final String hashDBServiceName = "Hash Lookup";
|
||||||
|
|
||||||
public static synchronized ThunderbirdMboxFileIngestService getDefault() {
|
public static synchronized ThunderbirdMboxFileIngestService getDefault() {
|
||||||
if (instance == null) {
|
if (instance == null) {
|
||||||
@ -74,11 +75,12 @@ public class ThunderbirdMboxFileIngestService implements IngestServiceAbstractFi
|
|||||||
ThunderbirdEmailParser mbox = new ThunderbirdEmailParser();
|
ThunderbirdEmailParser mbox = new ThunderbirdEmailParser();
|
||||||
boolean isMbox = false;
|
boolean isMbox = false;
|
||||||
|
|
||||||
IngestServiceAbstractFile.ProcessResult thunderbirdResult = managerProxy.getAbstractFileServiceResult(classname);
|
IngestServiceAbstractFile.ProcessResult hashDBResult =
|
||||||
|
managerProxy.getAbstractFileServiceResult(hashDBServiceName);
|
||||||
|
|
||||||
if (thunderbirdResult == IngestServiceAbstractFile.ProcessResult.COND_STOP) {
|
if (hashDBResult == IngestServiceAbstractFile.ProcessResult.COND_STOP) {
|
||||||
return ProcessResult.OK; //file is known, stop processing it
|
return ProcessResult.OK; //file is known, stop processing it
|
||||||
} else if (thunderbirdResult == IngestServiceAbstractFile.ProcessResult.ERROR) {
|
} else if (hashDBResult == IngestServiceAbstractFile.ProcessResult.ERROR) {
|
||||||
return ProcessResult.ERROR; //file has read error, stop processing it
|
return ProcessResult.ERROR; //file has read error, stop processing it
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user