writes a debug message if the $debug flag is set
some init steps
Invoked by bin/sendemail
Renders the SENDEMAIL feedback macro.
Checks if a given value matches a preferences pattern. The pref pattern
actually is a list of patterns. The function returns true if
at least one of the patterns in the list matches.