sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit ea850738ec7a1bc26697b9950fed1d6127719cc9
parent a3d7fa37e575a92217eefb154ae02d53c95f812f
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Fri,  5 Jan 2007 16:49:19 +0000

to determine the recipient address of an email, i now check
envelope-to, then x-original-to, then delivered-to. wonder if that's right?
seems to work better, at any rate.


git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@184 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup/message.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -129,7 +129,7 @@ class Message
         nil
       end
 
-    @recipient_email = header["delivered-to"]
+    @recipient_email = header["x-original-to"] || header["envelope-to"] || header["delivered-to"]
     @source_marked_read = header["status"] == "RO"
   end
   private :read_header