This is from the contrib directory of the fetchmail source and is much better than what Google gives you.