The Python poplib example allows even beginning programmers a way to write a computer program to look at their email inbox. We have all struggled with the search capabilities of various email programs. But Python is a real game changer. Another library that is useful in this task is the re or Regular Expression library, which will help you write some really powerful and fast searching capabilities. Short poplib example.