Just curious, does anyone of you know if it is possible to use Thunderbird as a library, somehow? Or is the UI too intertwined with the "mail engine" (i.e something managing IMAP, mbox, maildir, email indexing, etc)? I would be interested to experiment with my own mail client, if I can rely on an existing project like Thunderbird that would make it way simpler to get started :)