Yes, I know the number on the display is not realistic, it was taken during a test. Many thanks to those on this forum that helped me answer questions during the development.
It would be much more interesting if the device was indipendent of a PC: can the ethernet shield be used to connect to mail server using telnet to send STAT command?
Jumpjack - yes. I've been looking in the last couple of days.
As an example of how straightforward it is to access the number of mails in your inbox, here's how to do it via telnet:
If you're on a windows machine, open the comman prompt.
Ping your mailserver ping mail.yourserver.com
Note your mailserver's IP. This isn't needed for telnet but it's easier to use the IP on the arduino.
Open telnet (type 'telnet' and press enter). open 192.168.1.2 110 (substitute the IP for your mailserver's IP but the port should still be 110) user youremail@yourserver.com (change to your username) pass SecretPassword (change to your password)
stat
You should get a message back that looks a bit like +OK 1 1300 where the first integer is the number of mails and the second is their total size.
Should be really easy to get the arduino to repeat that and grab the number of mails.