andyedinborough / aenetmail

C# POP/IMAP Mail Client
370 stars 153 forks source link

Get only unseen messages #165

Open cmorgan76 opened 10 years ago

cmorgan76 commented 10 years ago

I have a Windows service using the AE.Net.Mail IMAP client with G-mail. The service runs every x minutes, retrieves inbox messages, applies some business logic, and marks them as deleted. This all works.

However, Gmail leaves them in the inbox so subsequent calls fetch them again. I can skip them by looking at the Seen or Deleted flags but I'd rather not get them at all.

I've experimented with Gmails expunge options but they don't seem to have any effect.