Class Redwood::BaseIndex
In: lib/sup/index.rb
Parent: Object

Methods

Included Modules

InteractiveLock Singleton

Classes and Modules

Class Redwood::BaseIndex::LockError
Class Redwood::BaseIndex::ParseError

Public Class methods

Public Instance methods

Load message with the given message-id from the index

Delete message with the given message-id from the index

Yield each message-id matching query

Yields a message-id and message-building lambda for each message that matches the given query, in descending date order. You should probably not call this on a block that doesn‘t break rather quickly because the results can be very large.

Yield each message matching query

yield all messages in the thread containing ‘m’ by repeatedly querying the index. yields pairs of message ids and message-building lambdas, so that building an unwanted message can be skipped in the block if desired.

only two options, :limit and :skip_killed. if :skip_killed is true, stops loading any thread if a message with a :killed flag is found.

Given an array of email addresses, return an array of Person objects that have sent mail to or received mail from any of the given addresses.

Return the number of matches for query in the index

Implementation-specific optimization step

parse a query string from the user. returns a query object that can be passed to any index method with a ‘query’ argument.

raises a ParseError if something went wrong.

Return the id source of the source the message with the given message-id was synced from

[Validate]