Back

default-subject-fn (clj)

(source)

function

(default-subject-fn {:keys [max-len]} output-str)
Given an `output-str`, returns an appropriate email subject string: - Take only the first line - Trim it - Simplify whitespace - Never exceed `max-subject-len` characters.

Examples