Hello,
I use the this code to filter messages in PST/OST files by keyword:
pst = PersonalStorage.from_file(pstFileName,False)
folderInfo = pst.root_folder
querybuilder = PersonalStorageQueryBuilder()
querybuilder.text.contains(Keyword, True)
messages = folderInfo.get_contents(querybuilder.get_query())
I have two problems that I would appreciate help:
1 - How can I do the same filtering, by keyword, in an mbox file (Google Takeout). To get the messages I’m doing:
reader = MboxrdStorageReader(FileName, False)
eml = reader.read_next_message()
2 - How can I use multiple keywords to filter messages.
Thanks