eneam / mboxviewer

A small but powerfull app for viewing MBOX files
Other
408 stars 24 forks source link

Feature request: View and search globally (or within subfolders) #56

Open Kirkman opened 6 months ago

Kirkman commented 6 months ago

As far as I can tell, though, mboxviewer pretty much only lets you explore one .mbox file at a time.

But I have lots of mbox files, in a large nested hierarchy, and I wish there was an option to let me see all the messages together in one view.

For example, let's say I have a folder structure like this in the left-pane:

It would be awesome if I could click "Archives" and see every message from every nested mbox together in one list view.

Similarly, it'd be super-helpful if mboxviewer could search across everything I've imported, instead of being limited to searching one mbox at a time. At the very least, the ability to search all sub-folders of a given folder I've selected would help. So, if I clicked "Inbox" and then did "Advanced Search", it would search the three mboxes within the Inbox folder.

I would like to be able to click "Archives" and have the Advanced Find apply to all the mboxes below it in the hierarchy.

zigm commented 6 months ago

Hi,

Current MBox Viewer has rather simple database and it can't search across multiple archive files and show the results. What is possible is to merge all mbox files into a single mbox file. Once you have single mbox file, you can view all files and search across all files.

I recommend you try "File->Select root for merging" and accept default "Assign a label per each MBOX file". This will create single mbox file with hierarchy of labels representing folders and mbox files.

You can right click on mail header to see list of labels for that message.

Labels

if you see multiple X-Gmail-Labels: lines, ignore second and subsequent lines.

Not ideal solution since you need to create new mbox file. And you need to merge again and delete old merged file if you add new files. Let me know if that worked for you.

I was thinking to enhance MBox Viewer's database but that requires larger effort and I never started. Hopefully one day I will do what you ask.