Subject: | duplicate Reply-To header |
Hi,
If an email is processed that already has a 'Reply-To' header, Mail::SimpleList will add a second Reply-To header. Because the headers are in an unordered hash, the behaviour may vary from email to email.
I've had a quick look at the source - in Mail::SimpleList->deliver, a Reply-To header will be returned by copy_headers() in %$message as $message->{Reply-to}. deliver() then adds the new Reply-To header by setting $message->{Reply-To}.
Here's a patch:
--- SimpleList.pm.orig Wed Mar 23 17:39:34 2005
+++ SimpleList.pm Wed Mar 23 17:39:48 2005
@@ -179,5 +179,5 @@
$message->{'List-Id'} = ( $desc ? qq|"$desc" | : '') .
"<$name.list-id.$host>";
- $message->{'Reply-To'} = $message->{To};
+ $message->{'Reply-to'} = $message->{To};
delete $message->{'Delivered-to'};
Thanks for this module by the way - 5 stars!
--simonflk