- Name = Standard
- mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
- operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
- #mail on error = <%= @bacula_operator_email %> = all, !skipped
- mail = <%= @bacula_operator_email %> = all
- operator = <%= @bacula_operator_email %> = mount
+ Name = <%= @messages_name %>
+ mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"%r\" -s \"Bacula: %t %e of %c %l\" %r"
+ operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"%r\" -s \"Bacula: Intervention needed for %j\" %r"
+<% if @email_all %>
+ mail = <%= @email_all %> = all
+<% end %>
+<% if @email_error != @email_all %>
+ mail on error = <%= @email_error %> = all
+<% end %>
+ operator = <%= @email_operator %> = mount