From d93fe3b763da66c37cb6464a593011f049555ef2 Mon Sep 17 00:00:00 2001 From: linyows Date: Mon, 20 May 2024 15:59:10 +0900 Subject: [PATCH] lowercase letters are allowed --- pipe.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipe.go b/pipe.go index 02aaa30..d4b49bd 100644 --- a/pipe.go +++ b/pipe.go @@ -46,8 +46,8 @@ type Direction string type Elapse int const ( - mailFromPrefix string = "MAIL FROM:<" - rcptToPrefix string = "RCPT TO:<" + mailFromPrefix string = "(?i)MAIL FROM:<" + rcptToPrefix string = "(?i)RCPT TO:<" mailRegex string = `[A-z0-9.!#$%&'*+\-/=?^_\{|}~]{1,64}@[A-z0-9.\-]{1,255}` crlf string = "\r\n" mailHeaderEnd string = crlf + crlf