( *> ) [MrMime_parser] | p *> q runs p , discards its result and then runs q .
|
( <* ) [MrMime_parser] | p <* q runs p , then runs q , discards its result, and returns the
result of p .
|
(&) [MrMime_address.Make] | |
(<$>) [MrMime_parser] | f <$> p is equivalent to p >>| f .
|
(<*>) [MrMime_parser] | f <*> p is equivalent to f >>= fun f -> p >>| f .
|
(<|>) [MrMime_parser] | p <|> q runs p and returns the result if succeeds.
|
(>>=) [MrMime_parser] | p >>= f creates a parser that will run p , pass its result to f , run
the parser that f produces, and return its result.
|
(>>|) [MrMime_parser] | p >>| f creates a parser that will run p , and if it succeeds with result
v , will return f v .
|
(@) [MrMime_address.Make] | |
A | |
add_content [MrMime_message.Extension] | |
add_encoding [MrMime_message.Extension] | |
add_literal_domain [MrMime_address.Extension] | |
advance [MrMime_parser] | advance n advances the input of n bytes.
|
atom [MrMime_address.Make] | |
avoid [MrMime_maildir] | |
C | |
char [MrMime_parser] | char c accepts c and return it.
|
count [MrMime_parser] | count n p runs p n times, returning a list of the results.
|
create_bigstring [MrMime_input] | |
create_bytes [MrMime_input] | |
D | |
decode [MrMime_base64.Decoder] | decode boundary rollback decodes a Base64 input and stops at the
boundary and, iff the decoder recognizes the boundary, it rollbacks -
that means the input contains the boundary although it recognized.
|
decode [MrMime_base64] | decode decoder is: `Continue if decoder awaits for more input. The client must use MrMime_base64.src
to provide it., `Dirty s if decoder has a padding error or if the character is not a
valid Base64 character (see is_b64 ). If the client is interested in a
best-effort decoding it can still continue to decode after an dirty chunk., `Error exn if decoder has a padding error (Wrong_padding error) - in
this case, the client doest not trust the content - or a parsing error., `String s if a chunk s was decoded., `End s if the last chunk s was decoded - when the decoder arises one
time this value, it returns only this value after the client recall
decode .
|
decode [MrMime_quotedPrintable.Decoder] | decode boundary rollback decodes a QuotedPrintable input and stops at
the boundary and, iff he decoder recognizes the boundary, it rollbacks -
that means the input contains the boundary although it recognized.
|
decode [MrMime_quotedPrintable] | decode decoder is: `Continue if decoder awaits for more input. The client muse use MrMime_quotedPrintable.src
to provide it., `Dirty chr if decoder recognizes an unsafe character (according
RFC2045:
|
decode [MrMime.Convenience] | |
decoder [MrMime_trace] | |
decoder [MrMime_resent] | |
decoder [MrMime_base64] | decoder (boundary, rollback) input is a Base64 decoder that inputs from
input .
|
decoder [MrMime_quotedPrintable] | decoder (boundary, rollback) input is a QuotedPrintable decoder that
inputs from input .
|
decoder [MrMime.Convenience] | |
decoder_src [MrMime_base64] | decoder_src decoder is decoder 's input source.
|
decoder_src [MrMime_quotedPrintable] | decoder_src decoder is decoder 's input source.
|
decoder_src [MrMime.Convenience] | |
decoding [MrMime.Convenience] | |
default [MrMime_resent] | |
default [MrMime_content] |
According to
MrMime_contentType.default ,
MrMime_contentEncoding.default and MrMime_mimeVersion.default , we have
a default value of a content header.
|
default [MrMime_contentType] |
Default RFC822 messages without a
MIME
"Content-Type" header are taken by this protocol to be plain text in
the US-ASCII character set, which can be excplicitly specified as:
|
default [MrMime_contentEncoding] |
An encoding type of
`Bit7 requires that the body is already in a `Bit7
mail-ready representation.
|
default [MrMime_mimeVersion] |
Default value of version.
|
E | |
e [MrMime_address.Make] | |
equal [MrMime_header] | |
equal [MrMime_trace] | |
equal [MrMime_resent] | |
equal [MrMime_address.List] | |
equal [MrMime_address] | |
equal [MrMime_date] | equal a b is true iff a and b are the same date.
|
F | |
fail [MrMime_parser] | |
fix [MrMime_parser] | fix f computes the fixpoint of f and runs the resultant parser.
|
G | |
get [MrMime_input] | get input gets the first character at the read pointer.
|
H | |
header [MrMime_header.Decoder] | |
hex [MrMime_quotedPrintable.Decoder] |
Corresponding to the rule from
RFC2045 about the
hexadecimal value:
|
I | |
implode [MrMime_maildir] | |
inline [MrMime_base64.Decoder] | inline () decodes an inline encoded string.
|
inline [MrMime_quotedPrintable.Decoder] | inline () decodes an inline encoded string.
|
is_b64 [MrMime_base64.Decoder] | is_b64 chr returns true iff the character is a Base64 character.
|
is_hex [MrMime_quotedPrintable.Decoder] | is_hex chr returns true iff the character is a hexadecimal character.
|
L | |
lift [MrMime_parser] | |
lift2 [MrMime_parser] | |
lift3 [MrMime_parser] |
The
liftN family of functions promote functions to the parser monad.
|
list [MrMime_parser] | list ps runs each p in ps in sequence, returning a list of results of
each p .
|
M | |
make [MrMime_maildir] | |
many [MrMime_parser] | many p runs p zero or more times and returns a list of results from
the runs of p .
|
message [MrMime_content.Decoder] |
See RFC2045 § 3:
|
O | |
of_filename [MrMime_maildir] | |
of_string [MrMime_header] | |
of_string [MrMime_address.List] | |
of_string [MrMime_address] | |
of_string [MrMime_contentType] | |
of_string [MrMime_contentEncoding] | |
of_string [MrMime_mimeVersion] | |
of_string [MrMime_msgID] | |
of_string [MrMime_date] | |
of_string_raw [MrMime_message] | |
of_string_raw [MrMime_header] | |
of_string_raw [MrMime_address.List] | |
of_string_raw [MrMime_address] | |
of_string_raw [MrMime_contentType] | of_string_raw ~chunk:1024 buff off len parses an
RFC2045 MrMime_contentType.content
starting at off in buf to a tuple (content, count) i with:
|
of_string_raw [MrMime_contentEncoding] | of_string_raw ~chunk:1024 buff off len parses an
RFC2045 MrMime_contentEncoding.mechanism
starting at off in buf to a tuple (mechanism, count) with: mechanism the MrMime_contentEncoding.mechanism , count the number of bytes read starting at off to parse the
mechanism .
This function allocates a internal buffer with chunk size (default to
1024 ).
|
of_string_raw [MrMime_mimeVersion] | of_string_raw ~chunk:1024 buff off len parses an
RFC2045 MrMime_mimeVersion.version
starting at off in buf to a tuple (version, count) with:
|
of_string_raw [MrMime_msgID] | of_string_raw ~chunk:1024 buf off len parses an
RFC5322 message ID
starting at off in buf to a tuple (msg_id, count) with;
|
of_string_raw [MrMime_date] | of_string_raw ~chunk:1024 buf off len parses an
RFC5322 date starting at
off in buf to a tuple (date, count) with: date the date, count the number of bytes read starting at off to parse the date.
This function allocates a internal buffer with chunk size (default to
1024 ).
|
one [MrMime_parser] | one p runs p one or more times and returns a list of results from
the runs of p .
|
only [MrMime_parser] | only input p runs p on input .
|
option [MrMime_parser] | option v p runs p , returning the result of p if it succeeds and v if
it fails.
|
P | |
p_address [MrMime_address.Decoder] | |
p_addresses [MrMime_address.Decoder] | |
p_bound_of_content [MrMime_message.Decoder] | |
p_content [MrMime_contentType.Decoder] |
See RFC2045 § 5.1:
|
p_date [MrMime_date.Decoder] |
See RFC5322 § 3.3:
|
p_date_time [MrMime_date.Decoder] |
See RFC5322 § 3.3:
|
p_day [MrMime_date.Decoder] | |
p_day_of_week [MrMime_date.Decoder] | |
p_discard_part [MrMime_message.Decoder] | |
p_domain [MrMime_address.Decoder] | |
p_encoding [MrMime_contentEncoding.Decoder] |
See RFC2045 § 6.1:
|
p_end_of_part [MrMime_message.Decoder] | |
p_first_part [MrMime_message.Decoder] | |
p_header [MrMime_message.Decoder] | |
p_hour [MrMime_date.Decoder] | |
p_local [MrMime_address.Decoder] | |
p_message [MrMime_message.Decoder] | |
p_minute [MrMime_date.Decoder] | |
p_month [MrMime_date.Decoder] |
See RFC5322 § 3.3:
|
p_msg_id [MrMime_msgID.Decoder] | |
p_next_part [MrMime_message.Decoder] | |
p_second [MrMime_date.Decoder] | |
p_store_part [MrMime_message.Decoder] | |
p_time [MrMime_date.Decoder] |
See RFC5322 § 3.3:
|
p_version [MrMime_mimeVersion.Decoder] |
See RFC2045 § 4:
|
p_year [MrMime_date.Decoder] | |
p_zone [MrMime_date.Decoder] | |
parse [MrMime_maildir] | |
part [MrMime_content.Decoder] |
See RFC2045 § 3:
|
peek [MrMime_input] | peek input buf off len same as MrMime_input.read but does not advance the read
pointer.
|
peek_chr [MrMime_parser] | peek_chr accepts any char and return it, or returns None if the end of
input has been reached.
|
peek_chr_exn [MrMime_parser] | peek_chr_exn accepts any char and returnss it.
|
pp [MrMime_maildir] | |
pp [MrMime_header] | |
pp [MrMime_trace] | |
pp [MrMime_resent] | |
pp [MrMime_address.List] | |
pp [MrMime_address] | |
pp [MrMime_content] | pp content prints an human readable representation of MrMime_content.t .
|
pp [MrMime_contentType] | pp content prints an human readable representation of MrMime_contentType.content .
|
pp [MrMime_contentEncoding] | pp mechanism prints an human readable representation of mechanism .
|
pp [MrMime_mimeVersion] | pp version prints an human readable representation of version .
|
pp [MrMime_msgID] | pp fmt msg_id prints an human readable representation of msg_id .
|
pp [MrMime_date] | pp date prints an human readable representatation of date .
|
pp [MrMime_input] | pp input prints an human readable representation of input .
|
pp [MrMime_parser] | |
pp_day [MrMime_date] | pp_day prints an human readable representation of day .
|
pp_domain [MrMime_address] | |
pp_domain [MrMime_msgID] | pp_domain fmt local prints an human readable representation of the
right-hand side of the "@" .
|
pp_field [MrMime_header] | |
pp_field [MrMime_content] | pp_field field prints an human readable representation of MrMime_content.field .
|
pp_filename [MrMime_maildir] | |
pp_flag [MrMime_maildir] | |
pp_group [MrMime_address] | |
pp_id [MrMime_maildir] | |
pp_info [MrMime_maildir] | |
pp_local [MrMime_address] | |
pp_local [MrMime_msgID] | pp_local fmt local prints an human readable representation of the
left-hand side of the "@" .
|
pp_lst [MrMime_maildir] | |
pp_lst [MrMime_trace] | |
pp_mailbox [MrMime_address] | |
pp_mailbox' [MrMime_address] | |
pp_map [MrMime_maildir] | |
pp_month [MrMime_date] | pp_month prints an human readable representation of month .
|
pp_option [MrMime_maildir] | |
pp_parameter [MrMime_contentType] | pp_value (attribute, value) prints an human readable representation of
parameter .
|
pp_path [MrMime_trace] | |
pp_phrase [MrMime_address] | |
pp_phrase_or_msg_id [MrMime_header] | |
pp_raw [MrMime_header] | |
pp_raw [MrMime_content] | pp_raw raw prints an human readable representation of MrMime_content.raw .
|
pp_received [MrMime_trace] | |
pp_subty [MrMime_contentType] | pp_subty subty prints an human readable representation of MrMime_contentType.subty .
|
pp_t [MrMime_maildir] | |
pp_ty [MrMime_contentType] | pp_ty ty prints an human readable representation of MrMime_contentType.ty .
|
pp_unstructured [MrMime_header] | |
pp_unstructured [MrMime_content] | pp_unstructured v prints an human readable representation of MrMime_content.unstructured .
|
pp_value [MrMime_contentType] | pp_value value prints an human readable representation of MrMime_contentType.value .
|
pp_word [MrMime_address] | |
pp_zone [MrMime_date] | pp_zone prints an human readable representation of zone .
|
proof [MrMime_input] | proof input gets the internal buffer with the proof.
|
R | |
radvance [MrMime_input] | radvance input n drops n bytes.
|
ravailable [MrMime_input] | ravailable input returns available bytes to read.
|
read [MrMime_input] | read input buf off len read the data inside the input and advance the read
pointer.
|
read_space [MrMime_input] | read_space input returns a continuous part of the internal buffer with the
offset and the length of bytes available to read.
|
recognize [MrMime_parser] | recognize f accepts input as long as f returns true and returns the
accepted characters as a string.
|
repeat [MrMime_parser] | |
return [MrMime_parser] | return v creates a parser that will always succeed and return v .
|
run [MrMime_parser] | run input p runs p on input .
|
S | |
satisfy [MrMime_parser] | satisfy f accepts any character for which f returns true and returns
the accepted character.
|
savailable [MrMime_input] | savailable input returns available bytes to read or, if the input is
committed, returns available bytes from the commit to the write pointer.
|
size [MrMime_input] | size input returns the length of the given input.
|
src [MrMime_base64] | src decoder buf off len provides decoder with len bytes to read,
starting at off in buf .
|
src [MrMime_quotedPrintable] | src decoder buf off len provides decoder with len bytes to read,
starting at off in buf .
|
src [MrMime.Convenience] | |
store [MrMime_parser] | store buf f stores any character for which f returns true in buf
only on the continuous buffer inside the input.
|
string [MrMime_parser] | string f s ensures the input has String.length s (in another case,
the parser fails with End_of_flow ) and compare the string s' from the
input and s with f s = f s' (in another case, the parser fails with
MrMime_parser.String ).
|
T | |
take [MrMime_parser] | take n accepts exactly n character(s) of input and returns them as a
string.
|
to_safe [MrMime_maildir] | |
to_string [MrMime_header] | |
to_string [MrMime_address.List] | |
to_string [MrMime_address] | |
to_string [MrMime_date] | |
transmit [MrMime_input] | transmit input f same as Option.map f (read_space input) .
|
W | |
w_address [MrMime_address.Encoder] | |
w_addresses [MrMime_address.Encoder] | |
w_content [MrMime_contentType.Encoder] | |
w_crlf [MrMime_trace.Encoder] | |
w_crlf [MrMime_resent.Encoder] | |
w_date [MrMime_date.Encoder] | |
w_day [MrMime_date.Encoder] | |
w_domain [MrMime_address.Encoder] | |
w_encode [MrMime_base64.Encoder] | |
w_encode [MrMime_quotedPrintable.Encoder] | |
w_encoding [MrMime_contentEncoding.Encoder] | |
w_field [MrMime_header.Encoder] | |
w_field [MrMime_trace.Encoder] | |
w_field [MrMime_resent.Encoder] | |
w_field [MrMime_content.Encoder] | |
w_field [MrMime_contentType.Encoder] | |
w_field [MrMime_contentEncoding.Encoder] | |
w_field [MrMime_mimeVersion.Encoder] | |
w_field' [MrMime_trace.Encoder] | |
w_field_version [MrMime_content.Encoder] | |
w_group [MrMime_address.Encoder] | |
w_header [MrMime_header.Encoder] | |
w_inline_encode [MrMime_base64.Encoder] | |
w_inline_encode [MrMime_quotedPrintable.Encoder] | |
w_left [MrMime_msgID.Encoder] | |
w_local [MrMime_address.Encoder] | |
w_lst [MrMime_trace.Encoder] | |
w_lst [MrMime_resent.Encoder] | |
w_mailbox [MrMime_address.Encoder] | |
w_mailbox' [MrMime_address.Encoder] | |
w_message [MrMime_content.Encoder] | |
w_msg_id [MrMime_msgID.Encoder] | |
w_parameter [MrMime_contentType.Encoder] | |
w_part [MrMime_content.Encoder] | |
w_phrase [MrMime_address.Encoder] | |
w_raw [MrMime_address.Encoder] | |
w_resent [MrMime_resent.Encoder] | |
w_right [MrMime_msgID.Encoder] | |
w_safe_string [MrMime_address.Encoder] | |
w_skip [MrMime_content.Encoder] | |
w_subtype [MrMime_contentType.Encoder] | |
w_time [MrMime_date.Encoder] | |
w_trace [MrMime_trace.Encoder] | |
w_type [MrMime_contentType.Encoder] | |
w_unsafe [MrMime_content.Encoder] | |
w_unstructured [MrMime_header.Encoder] | |
w_value [MrMime_contentType.Encoder] | |
w_version [MrMime_mimeVersion.Encoder] | |
w_word [MrMime_address.Encoder] | |
w_zone [MrMime_date.Encoder] | |
wadvance [MrMime_input] | wadvance input n advances the write pointer.
|
wavailable [MrMime_input] | wavailable input returns available bytes to write.
|
word [MrMime_address.Make] | |
write [MrMime_input] | write input buf off len writes an internal buffer (with the same proof
'a - see MrMime_input.st or MrMime_input.bs ) starting at off to len inside the input.
|
write_space [MrMime_input] | write_space input returns a continuous part of the internal buffer with
the offset and the length of bytes available to write.
|
write_string [MrMime_input] | write_string input buf off len writes a string starting at off to
len inside the input.
|