Rfc850Message

Undocumented in source.

Constructors

this
this(ascii message)

Parses a message string and creates a Rfc850Message.

Members

Functions

compile
void compile()

Construct the headers and message fields.

compileHeaders
void compileHeaders()

Write this Message instance's fields to their appropriate headers.

replyTemplate
Rfc850Message replyTemplate()

Create a template Rfc850Message for a reply to this message.

setText
void setText(string text)

Set the message text. Rewraps as necessary.

Properties

firstAncestorID
string firstAncestorID [@property getter]

Return the oldest known ancestor of this post, possibly this post's ID if it is the first one in the thread. May not be the thread ID - some UAs/services cut off or strip the "References" header.

parentID
string parentID [@property getter]

Get the Message-ID that this message is in reply to.

wrapFormat
WrapFormat wrapFormat [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

newPostTemplate
Rfc850Message newPostTemplate(string groups)

Create a template Rfc850Message for a new posting to the specified groups.

Variables

author
string author;

The author's name, in UTF-8, stripped of quotes (no email address).

authorEmail
string authorEmail;

The author's email address, stripped of angular brackets.

content
string content;

The text contents of this message (UTF-8). "null" in case of an error.

data
ubyte[] data;

The contents of this message (depends on mimeType).

delsp
bool delsp;

Reflow options (RFC 2646).

description
string description;

Properties of a multipart message's part.

error
string error;

Explanation for null content.

fileName
string fileName;

Properties of a multipart message's part.

flowed
bool flowed;

Reflow options (RFC 2646).

headers
Headers headers;

This message's headers.

id
string id;

The message ID, as specified at creation or in the Message-ID field. Includes the usual angular brackets.

message
ascii message;

The raw message (as passed in a constructor).

mimeType
string mimeType;

Properties of a multipart message's part.

name
string name;

Properties of a multipart message's part.

parts
Rfc850Message[] parts;

For a multipart message, contains the child parts. May nest more than one level.

rawContent
ascii rawContent;

The raw body of this message (or message part), i.e. the part of this.message after the headers.

rawSubject
string rawSubject;

The original message subject, as it appears in the message.

references
string[] references;

A list of Message-IDs that this post is in reply to. The most recent message (and direct parent) comes last.

reply
bool reply;

Whether this post is a reply.

subject
string subject;

The thread subject, with the leading "Re: " and list ID stripped.

time
SysTime time;

Message date/time.

xref
Xref[] xref;

Cross-references - for newsgroups posts, list of groups where it was posted, and article number in said group.

Meta