Part of twisted.mail.imap4 View Source View In Hierarchy
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
)
Parameters | start | Start of range, or only message number (type: Optional int ) |
end | End of range. (type: Optional int ) |
Parameters | start | Start of range, or only message number (type: int ) |
end | End of range. (type: Optional int ) |