-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checks beyond RFC-5321 syntax only, length and domain format.
- Loading branch information
Gene Hightower
committed
Jul 19, 2024
1 parent
e88df74
commit 04e8c15
Showing
4 changed files
with
61 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ int main(int argc, char* argv[]) | |
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"admin@mailserver1", | ||
"\" \"@example.org", | ||
"\"john..doe\"@example.org", | ||
"\"<john-doe>\"@example.org", | ||
|
@@ -30,6 +29,7 @@ int main(int argc, char* argv[]) | |
} | ||
|
||
const char* bad_addresses[] = { | ||
"admin@mailserver1", // used to be okay, now domain not fully qualified | ||
"\"john\\\\\"doe\"@example.org", | ||
"user@[300.0.0.1]", | ||
"user@[127.0.0.0.1]", | ||
|
@@ -43,6 +43,9 @@ int main(int argc, char* argv[]) | |
"[email protected]", | ||
"foo [email protected]", | ||
"foo.bar@bad=domain.com", | ||
"domain-too-long@XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.xyz", | ||
"[email protected]", | ||
"local-part@label_too_long_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.xyz" | ||
}; | ||
|
||
for (auto bad: bad_addresses) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters