I am not sure what is the correct way to send patches, so I created a pull request in https://github.com/nicolas33/offlineimap/pull/6 Should I attach a patch to an email instead? Cheers, Rafael