class Net::IMAP::VanishedData - net-imap: Ruby Standard Library Documentation

# class Net::IMAP::VanishedData

`Net::IMAP::VanishedData` represents the contents of a `VANISHED` response, which is described by the QRESYNC extension. [RFC7162 §3.2.10].

`VANISHED` responses replace `EXPUNGE` responses when either the QRESYNC or the UIDONLY extension has been enabled.

### Attributes

earlier[R]

`true` when the response was caused by `Net::IMAP#uid_fetch` with `vanished: true` or `Net::IMAP#select`/Net::IMAP#examine with `qresync: true`.

`false` when the response is used to announce message removals within an already selected mailbox.

earlier?[R]

`true` when the response was caused by `Net::IMAP#uid_fetch` with `vanished: true` or `Net::IMAP#select`/Net::IMAP#examine with `qresync: true`.

`false` when the response is used to announce message removals within an already selected mailbox.

uids[R]

`SequenceSet` of UIDs that have been permanently removed from the mailbox.

### Public Class Methods

new(uids:, earlier:) click to toggle source

Returns a new `VanishedData` object.

- `uids` will be converted by `SequenceSet.[]`.

- `earlier` will be converted to `true` or `false`

Calls superclass method

    # File net-imap-0.5.4/lib/net/imap/vanished_data.rb, line 21
    def initialize(uids:, earlier:)
      uids    = SequenceSet[uids]
      earlier = !!earlier
      super
    end

### Public Instance Methods

to_a() click to toggle source

Returns an Array of all of the UIDs in `uids`.

See `SequenceSet#numbers`.

    # File net-imap-0.5.4/lib/net/imap/vanished_data.rb, line 52
    def to_a; uids.numbers end