Method: Net::IMAP#move
- Defined in:
- lib/net/imap.rb
#move(set, mailbox) ⇒ Object
Sends a MOVE command [RFC6851 §3.1] [IMAP4rev2 §6.4.8] to move the specified message(s) to the end of the specified destination mailbox. The set parameter is a number, an array of numbers, or a Range object. The number is a message sequence number.
Related: #uid_move
Capabilities
The server’s capabilities must include either IMAP4rev2 or MOVE [RFC6851].
If UIDPLUS [RFC4315] is supported, the server’s response should include a COPYUID response code with CopyUIDData. This will report the UIDVALIDITY of the destination mailbox, the UID set of the source messages, and the assigned UID set of the moved messages.
When UIDONLY is enabled, the MOVE command is prohibited. Use #uid_move instead.
2828 2829 2830 |
# File 'lib/net/imap.rb', line 2828 def move(set, mailbox) copy_internal("MOVE", set, mailbox) end |