The problem you have is the definition of new. New according to what criteria? A simple solution would be to get the unique id (using the appropriate method) for each message and remember the 'last old one' in a file, then next time you access the account just skip messages until you reach the 'last old one'....
Alternatively delete all the 'old' ones (storing them in a file for future reference if required) that way all the emails in the account will be 'new'.
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: Checking for New Email
by tachyon
in thread Checking for New Email
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |