Mail gem: how to set an email to "read"?
===

I have to write an email importer in Ruby, and I stumbled over the very great looking Mail gem for Ruby 1.9. I know how to iterate over unread messages, but I don't know how to mark them as read (the documentation is exhaustive, but I don't really know what to look after):

    Mail.defaults do
      retriever_method :imap,
        address:    email_account.email_server.host,
        port:       email_account.email_server.port,
        user_name:  email_account.address,
        password:   email_account.password,
        enable_ssl: email_account.email_server.ssl
    end

    emails = Mail.find(
      what: :first,
      count: 3,
      order: :asc
    )

    emails.each do |email|
      # Do some stuff and then mark as read!
    end

Thanks a lot for pointing me into the right direction.