a modified version of the gmail gem