A recent upgrade to python 2.6 left a getmail cron job spewing warnings about a deprecated import of the sets module:

DeprecationWarning: the sets module is deprecated

Since python 2.4 the functionality of this module has been duplicated by built-in functions; a quick conversion is all that is required to quieten the new warnings. The patch is available here for those with a similar problem: