-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add case-insensitive flags to regex'es (#411)
* Update smtpd.go: Adding case-insensitive flags to regex'es * Update smtpd_test.go
- Loading branch information
1 parent
13027bf
commit 9f4908d
Showing
2 changed files
with
4 additions
and
4 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 |
---|---|---|
|
@@ -84,8 +84,8 @@ func TestCmdHELO(t *testing.T) { | |
|
||
// Verify that HELO resets the current transaction state like RSET. | ||
// RFC 2821 section 4.1.4 says EHLO should cause a reset, so verify that HELO does it too. | ||
cmdCode(t, conn, "MAIL FROM:<[email protected]>", "250") | ||
cmdCode(t, conn, "RCPT TO:<[email protected]>", "250") | ||
cmdCode(t, conn, "mail from:<[email protected]>", "250") // Also testing case-insensitivity | ||
cmdCode(t, conn, "rcpt to:<[email protected]>", "250") | ||
cmdCode(t, conn, "HELO host.example.com", "250") | ||
cmdCode(t, conn, "DATA", "503") | ||
|
||
|