Class Injectee.

Inherits Message

Represents a message and all its associated mailbox-specific data.

A message doesn't, by itself, have any mailbox-specific properties (uid, flags, annotations, and so on). This subclass ties a message to all such (variant, as opposed to the header/bodies) metadata.

The Injector takes a list of Injectee objects to insert into the database.

Injectee::Injectee()

Constructs an empty injectable message. The caller has to do more.

Reimplements Message::Message().

List<Annotation> * Injectee::annotations( Mailbox * mailbox ) const

Returns a pointer ot this message's annotations in mailbox. Never returns a null pointer.

EStringList * Injectee::flags( Mailbox * mailbox ) const

Returns a pointer to this message's flags in mailbox. The return value is never null.

List<Mailbox> * Injectee::mailboxes() const

Allocates and return a sorted list of all Mailbox objects to which this Message belongs. setUid() and friends cause the Message to belong to one or more Mailbox objects.

This may return an empty list, but it never returns a null pointer.

int64 Injectee::modSeq( Mailbox * mailbox ) const

Returns what setModSeq() set for mailbox, or 0.

void Injectee::setAnnotations( Mailbox * mailbox, List<Annotation> * list )

Notifies this message that its annotations in mailbox are exactly list.

void Injectee::setFlags( Mailbox * mailbox, const EStringList * list )

Notifies this message that its flags in mailbox are exactly list.

void Injectee::setModSeq( Mailbox * mailbox, int64 modseq )

Notifies the message that it has modseq in mailbox.

void Injectee::setThreadRoot( uint n )

Records that this Injectee has thread root number n. n must not be 0.

void Injectee::setUid( Mailbox * mailbox, uint uid )

Notifies the message that it has uid in mailbox.

uint Injectee::threadRoot() const

Returns what setThreadRoot() recorded, or 0 if setThreadRoot() has not been called.

uint Injectee::uid( Mailbox * mailbox ) const

Returns what setUid() set for mailbox, or 0.

static Injectee * Injectee::wrapUnparsableMessage( const EString & message, const EString & error, const EString & defaultSubject, const EString & id )

Wraps an unparsable message up in another, which contains a short error message, a little helpful text (or so one hopes), and the original message in a blob.

defaultSubject is the subject text to use if no halfway sensible text can be extracted from message. id is used as content-disposition filename if supplied and nonempty.

This web page based on source code belonging to The Archiveopteryx Developers. All rights reserved.