class Athena::MIME::Header::MailboxList

Overview

Represents a Mailbox MIME Header for something like from, to, cc, or bcc (one or more named address).

Defined in:

header/mailbox_list.cr

Constructors

Instance Method Summary

Instance methods inherited from class Athena::MIME::Header::Abstract(Array(Athena::MIME::Address))

body : T(Athena::MIME::Address) body, body=(body : T(Athena::MIME::Address)) body=, charset : String charset, charset=(charset : String) charset=, clone clone, lang : String | Nil lang, lang=(lang : String | Nil) lang=, max_line_length : Int32 max_line_length, max_line_length=(max_line_length : Int32) max_line_length=, name : String name

Constructor methods inherited from class Athena::MIME::Header::Abstract(Array(Athena::MIME::Address))

new(name : String) new

Instance methods inherited from module Athena::MIME::Header::Interface

body body, body=(body) body=, body_to_s : String body_to_s, max_line_length : Int32 max_line_length, max_line_length=(max_line_length : Int32) max_line_length=, name : String name, to_s(io : IO) : Nil to_s

Constructor Detail

def self.new(name : String, value : Array(AMIME::Address)) #

[View source]

Instance Method Detail

def add_addresses(addresses : Array(AMIME::Address)) : Nil #

Adds the provided addresses to use in the value of this header.


[View source]
def address_strings : Array(String) #

Returns the full mailbox list of this Header as an array of valid RFC 2822 strings.


[View source]
def body : Array(AMIME::Address) #

Returns the body of this header.


[View source]
def body=(body : Array(AMIME::Address)) #

Sets the body of this header.


[View source]