Class: Net::IMAP::UIDPlusData
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Struct
|
|
Instance Chain:
self,
Struct
|
|
Inherits: |
Struct
|
Defined in: | lib/net/imap/response_data.rb |
Overview
UIDPlusData
represents the ResponseCode#data that accompanies the APPENDUID
and COPYUID
response codes.
See [[UIDPLUS].
Capability requirement
The UIDPLUS
capability must be supported. A server that supports UIDPLUS
should send a UIDPlusData
object inside every TaggedResponse
returned by the append, copy, move, uid copy, and uid move commands—unless the destination mailbox reports UIDNOTSTICKY
.
Instance Attribute Summary
-
#assigned_uids
rw
UIDPlusData
represents the ResponseCode#data that accompanies theAPPENDUID
andCOPYUID
response codes. -
#source_uids
rw
UIDPlusData
represents the ResponseCode#data that accompanies theAPPENDUID
andCOPYUID
response codes. -
#uidvalidity
rw
UIDPlusData
represents the ResponseCode#data that accompanies theAPPENDUID
andCOPYUID
response codes.
Instance Method Summary
-
#uid_mapping ⇒ nil, a hash
Returns a hash mapping each source UID to the newly assigned destination UID.
Instance Attribute Details
#assigned_uids (rw)
UIDPlusData
represents the ResponseCode#data that accompanies the APPENDUID
and COPYUID
response codes.
See [[UIDPLUS].
Capability requirement
The UIDPLUS
capability must be supported. A server that supports UIDPLUS
should send a UIDPlusData
object inside every TaggedResponse
returned by the append, copy, move, uid copy, and uid move commands—unless the destination mailbox reports UIDNOTSTICKY
.
# File 'lib/net/imap/response_data.rb', line 237
class UIDPlusData < Struct.new(:uidvalidity, :source_uids, :assigned_uids)
#source_uids (rw)
UIDPlusData
represents the ResponseCode#data that accompanies the APPENDUID
and COPYUID
response codes.
See [[UIDPLUS].
Capability requirement
The UIDPLUS
capability must be supported. A server that supports UIDPLUS
should send a UIDPlusData
object inside every TaggedResponse
returned by the append, copy, move, uid copy, and uid move commands—unless the destination mailbox reports UIDNOTSTICKY
.
# File 'lib/net/imap/response_data.rb', line 237
class UIDPlusData < Struct.new(:uidvalidity, :source_uids, :assigned_uids)
#uidvalidity (rw)
UIDPlusData
represents the ResponseCode#data that accompanies the APPENDUID
and COPYUID
response codes.
See [[UIDPLUS].
Capability requirement
The UIDPLUS
capability must be supported. A server that supports UIDPLUS
should send a UIDPlusData
object inside every TaggedResponse
returned by the append, copy, move, uid copy, and uid move commands—unless the destination mailbox reports UIDNOTSTICKY
.
# File 'lib/net/imap/response_data.rb', line 237
class UIDPlusData < Struct.new(:uidvalidity, :source_uids, :assigned_uids)
Instance Method Details
#uid_mapping ⇒ nil
, a
hash
Returns a hash mapping each source UID to the newly assigned destination UID.
- Note
-
Returns
nil
for Net::IMAP#append.
# File 'lib/net/imap/response_data.rb', line 267
def uid_mapping source_uids&.zip(assigned_uids)&.to_h end