Module GoogleApps.GmailMessage

type t
type thread
type label
val get_message_by_id : string -> t
val get_body : t -> string
val get_subject : t -> string
val get_from : t -> string
val get_id : t -> string
val mark_read : t -> t
val mark_unread : t -> t
val refresh : t -> t
val is_unread : t -> bool
val is_starred : t -> bool
val star : t -> t
val unstar : t -> t
val get_thread : t -> thread
val get_messages : thread -> t list
val move_to_archive : thread -> thread
val search_thread : string -> thread list
val get_user_label_by_name : string -> label
val add_label_to_thread : label -> thread:thread -> label
val add_label : thread -> label:label -> thread
val remove_label : thread -> label:label -> thread
val send_email : recipient:string -> subject:string -> body:string -> unit
val send_email_with_options : recipient:string -> subject:string -> body:string -> Ojs.t -> unit