Implement cleanup functions, including 'mailto'.
[whenjobs.git] / lib / whentools.mli
index 8dd88cd..f2cefb6 100644 (file)
@@ -33,3 +33,8 @@ val set_variable_string : string -> string -> unit
 
 val set_variable_float : string -> float -> unit
 (** Set variable (just a wrapper around {!Whenfile.set_variable}). *)
+
+type result = Whenexpr.result
+
+val mailto : ?only_on_failure:bool -> ?from:string -> string -> result -> unit
+(** Cleanup function to send mail. *)