Text.Parsec.Rfc2822

# Useful parser combinators

maybeOption

unfold

header

obs_header

## Primitive Tokens (section 3.2.1)

no_ws_ctl

text

specials

## Quoted characters (section 3.2.2)

quoted_pair

## Folding white space and comments (section 3.2.3)

fws

ctext

comment

cfws

## Atom (section 3.2.4)

atext

atom

dot_atom

dot_atom_text

## Quoted strings (section 3.2.5)

qtext

qcontent

quoted_string

# Miscellaneous tokens (section 3.2.6)

word

phrase

utext

unstructured

# Date and Time Specification (section 3.3)

date_time

day_of_week

day_name

date

year

month

month_name

day_of_month

day

time

time_of_day

hour

minute

second

zone

# Address Specification (section 3.4)

data NameAddr

address

mailbox

name_addr

angle_addr

group

display_name

mailbox_list

address_list

## Addr-spec specification (section 3.4.1)

addr_spec

local_part

domain

domain_literal

dcontent

dtext

# Overall message syntax (section 3.5)

data GenericMessage a

message

body

# Field definitions (section 3.6)

data Field

fields

## The origination date field (section 3.6.1)

orig_date

## Originator fields (section 3.6.2)

from

sender

reply_to

## Destination address fields (section 3.6.3)

to

cc

bcc

## Identification fields (section 3.6.4)

message_id

in_reply_to

references

msg_id

id_left

id_right

no_fold_quote

no_fold_literal

## Informational fields (section 3.6.5)

subject

comments

keywords

## Resent fields (section 3.6.6)

resent_date

resent_from

resent_sender

resent_to

resent_cc

resent_bcc

resent_msg_id

## Trace fields (section 3.6.7)

return_path

path

received

name_val_list

name_val_pair

item_name

item_value

## Optional fields (section 3.6.8)

optional_field

field_name

ftext

# Miscellaneous obsolete tokens (section 4.1)

obs_qp

obs_text

obs_char

obs_utext

obs_phrase

obs_phrase_list

# Obsolete folding white space (section 4.2)

obs_fws

# Obsolete Date and Time (section 4.3)

obs_day_of_week

obs_year

obs_month

obs_day

obs_hour

obs_minute

obs_second

obs_zone

# Obsolete Addressing (section 4.4)

obs_angle_addr

obs_route

obs_domain_list

obs_local_part

obs_domain

obs_mbox_list

obs_addr_list

# Obsolete header fields (section 4.5)

obs_fields

## Obsolete origination date field (section 4.5.1)

obs_orig_date

## Obsolete originator fields (section 4.5.2)

obs_from

obs_sender

obs_reply_to

## Obsolete destination address fields (section 4.5.3)

obs_to

obs_cc

obs_bcc

## Obsolete identification fields (section 4.5.4)

obs_message_id

obs_in_reply_to

obs_references

obs_id_left

obs_id_right

## Obsolete informational fields (section 4.5.5)

obs_subject

obs_comments

obs_keywords

## Obsolete resent fields (section 4.5.6)

obs_resent_from

obs_resent_send

obs_resent_date

obs_resent_to

obs_resent_cc

obs_resent_bcc

obs_resent_mid

obs_resent_reply

## Obsolete trace fields (section 4.5.7)

obs_return

obs_received

obs_path

obs_optional