EE-WBC Assignment 5

Program 1 (40pts.)

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.

ly relatively easy to read.) Reuse functionality of an example that illustrates use of POP3. (You do nto have to reuse it but that could be a time saver.) Use TOP instead of RETR so that you do not have to download any possible large messages in order to merely inspect their subject lines. You may modify the POP3 demo program so that the function that checks the mailbox returns the Subject line of the first message in the mailbox and deletes it from the server. Run that function in a forever for loop with sleeping for the specified number of seconds.

Homework Submission

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.

web site front local main page local list page print this page   general bookmarks software bookmarks go back close this page copyright info   visitor counter