I most recently asked for a privilege-separated JMAP client daemon (dns, fetcher, writer) using pledge() and unveil() that would write to my Maildir, my khal dir and contacts whenever it had connectivity and otherwise behave like a sane network client.
I got 800 lines of garbage C. Structs were repeated all over the place, the config file was #defined four times, each with a different name and path.