%%{
machine content_disposition;
- include smtp_whitespace "smtp_whitespace.rl";
# https://tools.ietf.org/html/rfc2045#section-5.1
}
}
-
+ include smtp_whitespace "smtp_whitespace.rl";
include content_disposition "content_disposition.rl";
main := content_disposition;
machine smtp_addr_parser;
+
+
action IP6_start {}
action IP6_end {}
action IP4_start {}
}
}
+ include smtp_ip "smtp_ip.rl";
+ include smtp_whitespace "smtp_whitespace.rl";
include smtp_address "smtp_address.rl";
main := SMTPAddr;
%%{
machine smtp_address;
- include smtp_ip "smtp_ip.rl";
- include smtp_whitespace "smtp_whitespace.rl";
-
# SMTP address spec
# Obtained from: https://tools.ietf.org/html/rfc5321#section-4.1.2
%%{
machine smtp_date;
- include smtp_whitespace "smtp_whitespace.rl";
-
# SMTP date spec
# Obtained from: http://tools.ietf.org/html/rfc5322#section_3.3
%%{
machine smtp_date_parser;
+ include smtp_whitespace "smtp_whitespace.rl";
include smtp_date "smtp_date.rl";
main := date_time;
%%{
machine smtp_received;
- include smtp_whitespace "smtp_whitespace.rl";
- include smtp_ip "smtp_ip.rl";
- include smtp_date "smtp_date.rl";
- include smtp_address"smtp_address.rl";
# http://tools.ietf.org/html/rfc5321#section-4.4
}
}
+ include smtp_whitespace "smtp_whitespace.rl";
+ include smtp_ip "smtp_ip.rl";
+ include smtp_date "smtp_date.rl";
+ include smtp_address"smtp_address.rl";
include smtp_received "smtp_received.rl";
main := Received;