mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
Fixed situation where mbox files exist outside thunderbird directory
This commit is contained in:
parent
f3c7d549aa
commit
d472d15a6b
@ -127,17 +127,22 @@ public class ThunderbirdMboxFileIngestService implements IngestServiceAbstractFi
|
||||
}
|
||||
int index = 0;
|
||||
String replace = "";
|
||||
boolean a = mboxPath.indexOf("/ImapMail/") > 0;
|
||||
boolean b = mboxPath.indexOf("/Mail/") > 0;
|
||||
if(b == true)
|
||||
{
|
||||
index = mboxPath.indexOf("/Mail/");
|
||||
replace = "/Mail";
|
||||
}
|
||||
else
|
||||
else if(a == true)
|
||||
{
|
||||
index = mboxPath.indexOf("/ImapMail/");
|
||||
replace = "/ImapMail";
|
||||
}
|
||||
else{
|
||||
replace = "";
|
||||
|
||||
}
|
||||
String folderPath = mboxPath.substring(index);
|
||||
folderPath = folderPath.replaceAll(replace, "");
|
||||
folderPath = folderPath+mboxName;
|
||||
|
Loading…
x
Reference in New Issue
Block a user