Add the link-reset report

This commit is contained in:
Rodolphe Breard 2019-07-11 23:00:45 +02:00
parent 40c99af086
commit 4bfca1411b

View file

@ -38,6 +38,7 @@ pub enum Event {
LinkDisconnect, LinkDisconnect,
LinkIdentify, LinkIdentify,
LinkTls, LinkTls,
LinkReset,
TxBegin, TxBegin,
TxMail, TxMail,
TxRcpt, TxRcpt,
@ -76,6 +77,7 @@ impl ToString for Event {
Event::LinkDisconnect => "link-disconnect", Event::LinkDisconnect => "link-disconnect",
Event::LinkIdentify => "link-identify", Event::LinkIdentify => "link-identify",
Event::LinkTls => "link-tls", Event::LinkTls => "link-tls",
Event::LinkReset => "link-reset",
Event::TxBegin => "tx-begin", Event::TxBegin => "tx-begin",
Event::TxMail => "tx-mail", Event::TxMail => "tx-mail",
Event::TxRcpt => "tx-rcpt", Event::TxRcpt => "tx-rcpt",
@ -197,6 +199,7 @@ fn parse_event(input: &str) -> IResult<&str, Event> {
value(Event::LinkDisconnect, tag("link-disconnect")), value(Event::LinkDisconnect, tag("link-disconnect")),
value(Event::LinkIdentify, tag("link-identify")), value(Event::LinkIdentify, tag("link-identify")),
value(Event::LinkTls, tag("link-tls")), value(Event::LinkTls, tag("link-tls")),
value(Event::LinkReset, tag("link-reset")),
value(Event::TxBegin, tag("tx-begin")), value(Event::TxBegin, tag("tx-begin")),
value(Event::TxMail, tag("tx-mail")), value(Event::TxMail, tag("tx-mail")),
value(Event::TxRcpt, tag("tx-rcpt")), value(Event::TxRcpt, tag("tx-rcpt")),