twisted.mail.imap4.MessageSet(object)
class documentationtwisted.mail.imap4
View Source
(View In Hierarchy)
Essentially an infinite bitfield, with some extra features.
Instance Variable | getnext | A function that returns the next message number, used when iterating
through the MessageSet. By default, a function returning the next integer
is supplied, but as this can be rather inefficient for sparse UID
iterations, it is recommended to supply one when messages are requested by
UID. The argument is provided as a hint to the implementation and may be
ignored if it makes sense to do so (eg, if an iterator is being used that
maintains its own state, it is guaranteed that it will not be called
out-of-order). (type: Function taking int
returning int ) |
Method | __init__ | Create a new MessageSet() |
Method | last | Undocumented |
Method | add | Add another range |
Method | __add__ | Undocumented |
Method | extend | Undocumented |
Method | clean | Clean ranges list, combining adjacent ranges |
Method | __contains__ | May raise TypeError if we encounter an open-ended range |
Method | __iter__ | Undocumented |
Method | __len__ | Undocumented |
Method | __str__ | Undocumented |
Method | __repr__ | Undocumented |
Method | __eq__ | Undocumented |
Method | _iterator | Undocumented |
int
returning int
)