File tree 4 files changed +18
-5
lines changed
4 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,18 @@ The following types of changes will be recorded in this file:
26
26
27
27
- placeholder
28
28
29
+ ## [ v0.1.2] - 2020-02-06
30
+
31
+ ### Fixed
32
+
33
+ - Update status output to reflect the same format used in the original Python
34
+ 2 plugin.
35
+ - For reasons I've yet to spend sufficient time to figure out, the
36
+ double-quoting used for elements of the "folders" list is lost when sent
37
+ by Teams or email notifications. It is easier to go ahead and just revert
38
+ the format for now so it is consistent in each format (console, Teams or
39
+ email).
40
+
29
41
## [ v0.1.1] - 2020-02-06
30
42
31
43
### Fixed
@@ -57,6 +69,7 @@ monitor mail-related resources.
57
69
- TLS/SSL IMAP4 connectivity via ` emerson/go-imap ` package
58
70
- Go modules (vs classic ` GOPATH ` setup)
59
71
60
- [ Unreleased ] : https://github.com/atc0005/check-mail/compare/v0.1.1...HEAD
72
+ [ Unreleased ] : https://github.com/atc0005/check-mail/compare/v0.1.2...HEAD
73
+ [ v0.1.2 ] : https://github.com/atc0005/check-mail/releases/tag/v0.1.2
61
74
[ v0.1.1 ] : https://github.com/atc0005/check-mail/releases/tag/v0.1.1
62
75
[ v0.1.0 ] : https://github.com/atc0005/check-mail/releases/tag/v0.1.0
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ required via `stdout`.
130
130
131
131
``` ShellSession
132
132
$ /usr/lib/nagios/plugins/check_imap_mailbox -folders " Inbox, Junk Email" -server imap.example.com -username " tacotuesdays@example.com" -port 993 -password " coconuts" -log-level disabled
133
- OK: tacotuesdays@example.com: No messages found in folders: [" Inbox" " Junk Email"]
133
+ OK: tacotuesdays@example.com: No messages found in folders: Inbox, Junk Email
134
134
```
135
135
136
136
### Output
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ func (i *multiValueFlag) String() string {
28
28
return ""
29
29
}
30
30
31
- return strings .Join (* i , "," )
31
+ return strings .Join (* i , ", " )
32
32
}
33
33
34
34
// Set is called once by the flag package, in command line order, for each
Original file line number Diff line number Diff line change @@ -309,9 +309,9 @@ func main() {
309
309
// Give the all clear: no mail was found
310
310
log .Debug ().Msg ("No messages found to report" )
311
311
nagiosExitState .LastError = nil
312
- nagiosExitState .Message = fmt .Sprintf ("OK: %s: No messages found in folders: %q " ,
312
+ nagiosExitState .Message = fmt .Sprintf ("OK: %s: No messages found in folders: %s " ,
313
313
config .Username ,
314
- config .Folders ,
314
+ config .Folders . String () ,
315
315
)
316
316
nagiosExitState .StatusCode = nagios .StateOK
317
317
You can’t perform that action at this time.
0 commit comments