Update CONVERT so that amap and acopy take two inputs: one for modifying the content-type mime header and one for modifying the data of an attachment. Since strings in OCaml are just sequences of bytes, the inputs to each of these functions should be functions of type string -> string.
New signature (for now, until we change it):
module type CONVERT =
sig
type filepath
type parsetree
type htransform = string -> string
type dtransform = string -> string
val parse : string -> parsetree
val amap : htransform -> dtransform -> parsetree -> parsetree
val acopy : htransform -> dtransform -> parsetree -> parsetree
val to_string : parsetree -> string
val convert : filepath -> string -> string
val acopy_email : string -> (string -> string) -> string
end
Change
acopy
andamap
inCONVERT
module signatureUpdate
CONVERT
so thatamap
andacopy
take two inputs: one for modifying the content-type mime header and one for modifying the data of an attachment. Since strings in OCaml are just sequences of bytes, the inputs to each of these functions should be functions of typestring -> string
.New signature (for now, until we change it):