sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 0cad7b308237c07b8a46149908b2ad4806ac3d1d
parent af6bd21638058767df75cb350e1de08794fcf2b3
Author: William A. Kennington III <william@wkennington.com>
Date:   Wed, 12 Mar 2014 11:04:21 -0500

person: Don't downcase the email address

As per RFC 2821:
    The local-part of a mailbox MUST BE treated as case sensitive.
    Therefore, SMTP implementations MUST take care to preserve the case of
    mailbox local-parts. Mailbox domains are not case sensitive. In particular,
    for some hosts the user "smith" is different from the user "Smith".

Diffstat:
M lib/sup/person.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/person.rb b/lib/sup/person.rb
@@ -15,7 +15,7 @@ class Person
       name.gsub('\\\\', '\\')
     end
 
-    @email = email.strip.gsub(/\s+/, " ").downcase
+    @email = email.strip.gsub(/\s+/, " ")
   end
 
   def to_s; "#@name <#@email>" end