Here’s a little ditty I wrote to et patches in the format we use for the FreeIPA mailing list: http://adam.younglogic.com/2010/09/preparing-patches-for-submission-to-the-freeipa-mailing-list/