Updated sample code. POP3-messages are numbered starting with 1 (not 0)!