Do not mark emails as read/seen using imap
In my rails application I have a rake task that reads emails using imap. The emails are read and are marked as read/seen. I do not want to mark the emails as read/seen. How can I do this?
When you fetch the email, you get the flags. You want to remove the \Seen flag.