• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class HeaderWriter

Writes MIME headers with proper folding at 78 characters (RFC 5322 §2.2.3).

Inheritance
object
HeaderWriter
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Mail.Rfc.Mime.Writing
Assembly: DRIT.Mail.dll
Syntax
public static class HeaderWriter

Methods

View Source

FoldLine(StringBuilder, string)

Folds a long header line at whitespace boundaries, inserting CRLF + space continuation markers. If no suitable whitespace is found, the line is left unfolded (tolerant behavior for very long tokens).

Declaration
public static void FoldLine(StringBuilder sb, string line)
Parameters
Type Name Description
StringBuilder sb

Specifies the sb value.

string line

Specifies the line value.

View Source

Write(StringBuilder, string, string)

Writes a header line (name: value) to the specified StringBuilder, folding lines that exceed 78 characters.

Declaration
public static void Write(StringBuilder sb, string name, string value)
Parameters
Type Name Description
StringBuilder sb

Specifies the sb value.

string name

Specifies the name value.

string value

The value to process.

  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX