class Net::IMAP
def uid_expunge(uid_set)
The server's capabilities must include +UIDPLUS+
===== Capabilities
Related: #expunge
sequence number integers.
#responses and this method returns them as an array of
a sequence number. These will be deleted from
server still returns regular EXPUNGE responses, which contain
Although the command takes a set of UIDs for its argument, the
>>>
*Note:*
the time the client resynchronizes.
clients between the time that the client was last connected and
remove any messages that have been marked as \\Deleted by other
the server, the client can ensure that it does not inadvertantly
By using #uid_expunge instead of #expunge when resynchronizing with
flag set and a UID that is included in +uid_set+.
to permanently remove all messages that have both the \\Deleted
{[IMAP4rev2 §6.4.9]}[https://www.rfc-editor.org/rfc/rfc9051#section-6.4.9]
Sends a {UID EXPUNGE command [RFC4315 §2.1]}[https://www.rfc-editor.org/rfc/rfc4315#section-2.1]
def uid_expunge(uid_set) synchronize do send_command("UID EXPUNGE", MessageSet.new(uid_set)) clear_responses("EXPUNGE") end end