class Net::IMAP::AppendUIDData
NOTE: AppendUIDData will replace UIDPlusData for
APPENDUID
in the0.6.0
release. To useAppendUIDData
before0.6.0
, setConfig#parser_use_deprecated_uidplus_data
tofalse
.
AppendUIDData
represents the ResponseCode#data
that accompanies the APPENDUID
response code.
A server that supports UIDPLUS
(or IMAP4rev2
) should send AppendUIDData
inside every TaggedResponse
returned by the append command—unless the target mailbox reports UIDNOTSTICKY
.
Required capability¶ ↑
Requires either UIDPLUS
[RFC4315] or IMAP4rev2
capability.
Attributes
A SequenceSet
with the newly assigned UIDs of the appended messages.
:call-seq: uidvalidity -> nonzero uint32
The UIDVALIDITY of the destination mailbox.
Public Class Methods
Source
# File lib/net/imap/uidplus_data.rb, line 84 def initialize(uidvalidity:, assigned_uids:) uidvalidity = Integer(uidvalidity) assigned_uids = SequenceSet[assigned_uids] NumValidator.ensure_nz_number(uidvalidity) if assigned_uids.include_star? raise DataFormatError, "uid-set cannot contain '*'" end super end
Calls superclass method
Public Instance Methods
Source
# File lib/net/imap/uidplus_data.rb, line 106 def size assigned_uids.count_with_duplicates end
Returns the number of messages that have been appended.