vibe.d beta banner
get vibe.d
0.7.31

Asynchronous I/O that doesn’t get in your way, written in D

Module vibe.inet.message

Internet message handling according to RFC822/RFC5322

Functions

NameDescription
decodeEmailAddressHeader(header, name, address)Decodes a From/To header value as it appears in emails.
decodeEncodedWords(encoded)Decodes a string in encoded-word form.
decodeMessage(message_body, content_transfer_encoding)Decodes a message body according to the specified content transfer encoding ("Content-Transfer-Encoding" header).
getRFC822TimeZoneOffset(time)Returns the offset of the given time from UTC in minutes.
parseRFC5322Header(input, dst, max_line_length, alloc, rfc822_compatible)Parses an internet header according to RFC5322 (with RFC822 compatibility).
toRFC822DateString(time)Returns the RFC-822/5322 date string representation of the given time.
toRFC822DateTimeString(time)Returns the RFC-822 date+time string representation of the given time.
toRFC822TimeString(time)Returns the RFC-822 time string representation of the given time.
writeRFC822DateString(dst, time)Writes an RFC-822/5322 date string to the given output range.
writeRFC822DateTimeString(dst, time)Writes an RFC-822 date+time string to the given output range.
writeRFC822TimeString(dst, time)Writes an RFC-822 time string to the given output range.

Structs

NameDescription
QuotedPrintablePerforms quoted-printable decoding.

Aliases

NameTypeDescription
InetHeaderMapDictionaryList!(string,false,12L,false)Behaves similar to string[string] but case does not matter for the key, the insertion order is not changed and multiple values per key are supported.
parseRFC822DateTimeStringParses a date+time string according to RFC-822/5322.
Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

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