commit c53307bdc13a642ccaa90981a503ca7d74e7693a
parent 293b219cfd472dfcc36a1561ecebcc95f53b7e7c
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sat, 26 Dec 2009 10:03:15 -0800
detect x-mailing-list headers for list addresses
This is used by some lists (e.g. majordomo lists) to publicise the list
address instead of List-Post.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -121,6 +121,8 @@ class Message
header["list-post"] # just try the whole fucking thing
end
address && Person.from_address(address)
+ elsif header["x-mailing-list"]
+ Person.from_address header["x-mailing-list"]
end
@recipient_email = header["envelope-to"] || header["x-original-to"] || header["delivered-to"]