def myf(message): print 'message subject:', message.get_header('subject')