vibe.inet.message

Internet message handling according to RFC822/RFC5322

Members

Aliases

InetHeaderMap
alias InetHeaderMap = DictionaryList!(string, false, 12)

Behaves similar to stringstring but case does not matter for the key, the insertion order is not changed and multiple values per key are supported.

parseRFC822DateTimeString
alias parseRFC822DateTimeString = parseRFC822DateTime

Parses a date+time string according to RFC-822/5322.

Functions

decodeEmailAddressHeader
void decodeEmailAddressHeader(string header, string name, string address)

Decodes a From/To header value as it appears in emails.

decodeEncodedWords
string decodeEncodedWords(string encoded)
void decodeEncodedWords(R dst, string encoded)

Decodes a string in encoded-word form.

decodeMessage
string decodeMessage(ubyte[] message_body, string content_transfer_encoding)

Decodes a message body according to the specified content transfer encoding ("Content-Transfer-Encoding" header).

getRFC822TimeZoneOffset
int getRFC822TimeZoneOffset(SysTime time)

Returns the offset of the given time from UTC in minutes.

parseRFC5322Header
void parseRFC5322Header(InputStream input, InetHeaderMap dst, size_t max_line_length, IAllocator alloc, bool rfc822_compatible)

Parses an internet header according to RFC5322 (with RFC822 compatibility).

toRFC822DateString
string toRFC822DateString(SysTime time)

Returns the RFC-822/5322 date string representation of the given time.

toRFC822DateTimeString
string toRFC822DateTimeString(SysTime time)

Returns the RFC-822 date+time string representation of the given time.

toRFC822TimeString
string toRFC822TimeString(SysTime time)

Returns the RFC-822 time string representation of the given time.

writeRFC822DateString
void writeRFC822DateString(R dst, SysTime time)
void writeRFC822DateString(R dst, Date date)

Writes an RFC-822/5322 date string to the given output range.

writeRFC822DateTimeString
void writeRFC822DateTimeString(R dst, SysTime time)
void writeRFC822DateTimeString(R dst, DateTime time, int tz_offset)

Writes an RFC-822 date+time string to the given output range.

writeRFC822TimeString
void writeRFC822TimeString(R dst, SysTime time)
void writeRFC822TimeString(R dst, TimeOfDay time, int tz_offset)

Writes an RFC-822 time string to the given output range.

Structs

QuotedPrintable
struct QuotedPrintable

Performs quoted-printable decoding.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Sönke Ludwig