Class ArchiveMessage.

Inherits PageComponent

A page component representing a view of a single message.

ArchiveMessage::ArchiveMessage( Link * link )

Create a new ArchiveMessage for link.

static String ArchiveMessage::addressField( Message * m, HeaderField::Type t )

Returns an HTML representation of the address field of type t in the message m.

String ArchiveMessage::bodypart( Message * first, Bodypart * bp )

Returns an HTML representation of the Bodypart bp, which belongs to the Message first.

String ArchiveMessage::date( class Date * date, const String & name ) const

Returns HTML to describe a name field with value date. name is typically Date, but can also be Resent-Date or Original-Date.

String ArchiveMessage::jsToggle( const String & html, bool visible, const String & show, const String & hide )

Returns a string where html is wrapped in javascript magic to show and hide it on command. show and hide are the texts to be used. If visible is true, the text is visible if javascript is not availble, if visible is false, the text is hidden in that case.

At some point in the future, we probably want to have this function return an empty string if visible is false and we somehow know the browser does not execute javascript.

bool ArchiveMessage::linkToThread() const

Returns whatever setLinkToThread() set.

String ArchiveMessage::message( Message * first, Message * m )

Returns an HTML representation of the Message m, which belongs to the Message first.

void ArchiveMessage::setLinkToThread( bool l )

Instructs this component to include a link to the surrounding thread if l is true, and to omit it if l is false. The default is to include the link.

This web page based on source code belonging to Oryx Mail Systems GmbH. All rights reserved.