boulder/cmd/notify-mailer
Daniel McCarney 8a585b8691 notify-mailer/contact-exporter bug fixes & documentation (#2016)
For the notify-mailer, this PR fixes a bug with the -end parameter where the default (99999999) would cause a slice index out of range error. This was fixed by setting the -end value to len(m.destinations) in run when it is too large.

For both the notify-mailer and the contact-exporter a bug was fixed that was comparing the required flags against nil when the defaults were set to a non-nil pointer to "". This resulted in confusing errors when the mandatory arguments were not provided.

This PR also adds a separated config example for both the notify-mailer and the contact-exporter into test/config and test/config-next respectively.

Finally a documentation string was added to describe the overall design & usage of both tools, including example invocations.
2016-07-06 14:15:22 -04:00
..
testdata Adds `notify-mailer` command. (#1936) 2016-06-16 15:12:31 -07:00
main.go notify-mailer/contact-exporter bug fixes & documentation (#2016) 2016-07-06 14:15:22 -04:00
main_test.go Adds `notify-mailer` command. (#1936) 2016-06-16 15:12:31 -07:00