This script checks a POP3 email server for new messages. It logs in with the specified username and password, uses the STAT command to get the number of emails, logs out, and optionally displays a popup notification with the number of new messages or prints a message to stdout. The script uses variables that can be set directly or via a configuration file to customize the POP3 server, username, password, and notification image.