Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable event mail footer #2023

Merged
merged 1 commit into from
Oct 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/siterc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,8 @@ \subsection{[cylc]}

\subparagraph[mail events]{[cylc] \textrightarrow [[events]] \textrightarrow mail events}

\subparagraph[mail footer]{[cylc] \textrightarrow [[events]] \textrightarrow mail footer}

\subparagraph[mail from]{[cylc] \textrightarrow [[events]] \textrightarrow mail from}

\subparagraph[mail smtp]{[cylc] \textrightarrow [[events]] \textrightarrow mail smtp}
Expand Down
20 changes: 20 additions & 0 deletions doc/suiterc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,26 @@ \subsection{[cylc]}
\item {\em example:} \lstinline@handler = startup, shutdown, timeout@
\end{myitemize}

\paragraph[mail footer]{[cylc] \textrightarrow [[events]] \textrightarrow mail footer}

Specify a string or string template to insert to footers of notification emails
for both suite events and task events.

A template string may have any or all of these patterns which will be
substituted with actual values:
\begin{myitemize}
\item \%(host)s: suite host name
\item \%(port)s: suite port number
\item \%(owner)s: suite owner name
\item \%(suite)s: suite name
\end{myitemize}

\begin{myitemize}
\item {\em type:}
\item {\em default:} (none)
\item {\em example:} \lstinline@mail footer = see: http://localhost/%(owner)s/notes-on/%(suite)s/@
\end{myitemize}

\paragraph[mail from]{[cylc] \textrightarrow [[events]] \textrightarrow mail from}

Specify an alternate \lstinline=from:= email address for suite event notifications.
Expand Down
1 change: 1 addition & 0 deletions lib/cylc/cfgspec/globalcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
'mail from': vdr(vtype='string'),
'mail smtp': vdr(vtype='string'),
'mail to': vdr(vtype='string'),
'mail footer': vdr(vtype='string'),
'startup handler': vdr(vtype='string_list', default=[]),
'timeout handler': vdr(vtype='string_list', default=[]),
'inactivity handler': vdr(vtype='string_list', default=[]),
Expand Down
1 change: 1 addition & 0 deletions lib/cylc/cfgspec/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ def _coerce_parameter_list(value, keys, _):
'mail from': vdr(vtype='string'),
'mail smtp': vdr(vtype='string'),
'mail to': vdr(vtype='string'),
'mail footer': vdr(vtype='string'),
},
'simulation mode': {
'disable suite event hooks': vdr(vtype='boolean', default=True),
Expand Down
Loading