On 2/3/2017 12:37 AM, Michael Gratton
wrote:
On Wed, Feb 1, 2017 at 11:45 AM, Jeffrey Stedfast <fejj gnome org> wrote: No prob
Already implemented :) This bothered me, too.
Cool. I'd appreciate any feedback on the current API's and where they could be better. One of the things I've done (besides the sender/from change) is to make iterating over headers simpler. I hated the Iter approach. An indexed approach is so much easier :) I also got rid of the header-list stream cache and am instead caching the raw parsed header values on a per-header basis, so adding or removing a header no longer causes all headers to be re-folded. It also means that changing, say, the To header won't cause all other headers to be re-folded either. Moving to GpgMe for the PGP support instead of maintaining my own wrapper is also on the TODO list (actually, it might not be in the TODO file yet... I should check that and add it if it's not). This and the whole header-caching problem were the 2 biggest reasons for starting a new development branch for me. I think I'd like to kill off the whole g_mime_get/set_user_charsets() API and maybe use something more like MimeKit's ParserOptions API: http://www.mimekit.net/docs/html/T_MimeKit_ParserOptions.htm For specifying the charset to use when encoding, maybe I can modify those API's to take a charset parameter. Someday I need to write an auto-C# to Glib converter so I can port MimeKit to Glib and replace GMime with that :) (My C# MimeKit API is beautiful)
The good thing about git is that it's trivial to migrate to another hosting site if it should ever be needed :) There's always places like GitLab, BitLocker, etc. The only reason I'm thinking of moving to GitHub is that's where my other side projects are hosted at the moment and it makes things simpler for me (plus pull requests are really nice). I also assume most people have GitHub accounts and/or could easily create one (it's free), whereas getting a GNOME account is not as trivial. Jeff |