Method: IMAPClient#mark
- Defined in:
- lib/imap_client.rb
#mark(messages, flags) ⇒ Object
Marks messages in the currently selected mailbox with flags (see Net::IMAP#store).
321 322 323 324 325 326 327 |
# File 'lib/imap_client.rb', line 321 def mark(, flags) until .empty? do chunk = .slice! 0, 500 @imap.store chunk, '+FLAGS.SILENT', flags end log "Marked messages with flags" end |