in reply to Re: Get saved search data out of Thunderbird and into plain-text file
in thread Get saved search data out of Thunderbird and into plain-text file

Thanks, Fletch and Corion for your suggestions. (I haven't gotten to the other posts yet, as I just noticed them.)

If this were a commercial project, I would definitely explore Mail::Box. However, as this is just a one-off for a friend, I was hoping to avoid having to learn that module or, for that matter, SQLite.

By poking around in ~/.thunderbird, I've learned that Thunderbird stores most of its own data in SQLite3, but the Mork format which Corion mentioned. Again, more than I really want to learn. Fortunately, the contents of any given subfolder are stored in a plain-text file whose path looks something like:

~/.thunderbird/NNNNNsNn.default/ImapMail/mail.pobox.com/INBOX.sbd/subfolder_name

... which is what I'm now playing around with.

Jim Keenan

Replies are listed 'Best First'.
Re^3: Get saved search data out of Thunderbird and into plain-text file
by Fletch (Bishop) on Dec 24, 2021 at 21:26 UTC

    My guess (don't use Thunderbird) would be that's the mbox file which Mail::Box would read, but if you can kludge out what you're interested in that's probably enough for what you're trying to do.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.