Add the link-auth report
This commit is contained in:
parent
4bfca1411b
commit
9dbd90a083
1 changed files with 6 additions and 3 deletions
|
@ -34,11 +34,12 @@ pub enum Subsystem {
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq)]
|
#[derive(Clone, Debug, PartialEq)]
|
||||||
pub enum Event {
|
pub enum Event {
|
||||||
|
LinkAuth,
|
||||||
LinkConnect,
|
LinkConnect,
|
||||||
LinkDisconnect,
|
LinkDisconnect,
|
||||||
LinkIdentify,
|
LinkIdentify,
|
||||||
LinkTls,
|
|
||||||
LinkReset,
|
LinkReset,
|
||||||
|
LinkTls,
|
||||||
TxBegin,
|
TxBegin,
|
||||||
TxMail,
|
TxMail,
|
||||||
TxRcpt,
|
TxRcpt,
|
||||||
|
@ -73,11 +74,12 @@ impl FromStr for Event {
|
||||||
impl ToString for Event {
|
impl ToString for Event {
|
||||||
fn to_string(&self) -> String {
|
fn to_string(&self) -> String {
|
||||||
let s = match self {
|
let s = match self {
|
||||||
|
Event::LinkAuth => "link-auth",
|
||||||
Event::LinkConnect => "link-connect",
|
Event::LinkConnect => "link-connect",
|
||||||
Event::LinkDisconnect => "link-disconnect",
|
Event::LinkDisconnect => "link-disconnect",
|
||||||
Event::LinkIdentify => "link-identify",
|
Event::LinkIdentify => "link-identify",
|
||||||
Event::LinkTls => "link-tls",
|
|
||||||
Event::LinkReset => "link-reset",
|
Event::LinkReset => "link-reset",
|
||||||
|
Event::LinkTls => "link-tls",
|
||||||
Event::TxBegin => "tx-begin",
|
Event::TxBegin => "tx-begin",
|
||||||
Event::TxMail => "tx-mail",
|
Event::TxMail => "tx-mail",
|
||||||
Event::TxRcpt => "tx-rcpt",
|
Event::TxRcpt => "tx-rcpt",
|
||||||
|
@ -195,11 +197,12 @@ fn parse_subsystem(input: &str) -> IResult<&str, Subsystem> {
|
||||||
|
|
||||||
fn parse_event(input: &str) -> IResult<&str, Event> {
|
fn parse_event(input: &str) -> IResult<&str, Event> {
|
||||||
alt((
|
alt((
|
||||||
|
value(Event::LinkAuth, tag("link-auth")),
|
||||||
value(Event::LinkConnect, tag("link-connect")),
|
value(Event::LinkConnect, tag("link-connect")),
|
||||||
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::LinkReset, tag("link-reset")),
|
value(Event::LinkReset, tag("link-reset")),
|
||||||
|
value(Event::LinkTls, tag("link-tls")),
|
||||||
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")),
|
||||||
|
|
Reference in a new issue