Write a program that monitors a POP3 compatible mailbox. The program should check email every 30 seconds, and log out from the server between checks in order to allow for the new mail to come in. Each time a message is detected by your program it should acqire the subject of that message and delete the original message from the mailbox. Since this program is only a proof of concept of email control of a networked embedded system no action is required. Simply print the complete subject line on the console screen.
The program should use the POP3 server name, the default port number, the
user ID, password and the time interval for checking in seconds defined in
"parameter" variables close to the top of the source file. Please use
gdansk.bradley.edu 110 eewbc ?????? as paramters. The actual
password ?????? will be provided during the lecture and is not posted on the Web
site. Please contact the instructor if you missed that information or want to
complete the assignment late and need reactivation of this email account.
Attach all source code in files with proper names and extensions (*.html, *.java, *.pl, *.php, .htaccess e.t.c.). Do not ZIP files together or include compiled files (e.g. *.class). In case of dynamic Web pages (JavaScript or CGI) or Java applets also send the complete URL (including http://) that points to a page on your Web site that demonstrates your homework. Send your homework via e- mail to the instructor at olekmali at bradley dot edu. Please set the message subject to: web-hw5.
Thank you.