I'd take this _make_mail out of the loop. Pretty sure it's easy to do that here if you additionally pass in c as an argument.