# HG changeset patch # User jbe # Date 1330970929 -3600 # Node ID f2fe38a545040e8374d357b76579db6e1e36472c # Parent 4f9f7fef80ee2e7abbf33ba30b586639d84f2e81 Bugfix in function encode.mime.mailbox_list_header_line(...), which caused arguments to be modified diff -r 4f9f7fef80ee -r f2fe38a54504 framework/env/encode/mime/mailbox_list_header_line.lua --- a/framework/env/encode/mime/mailbox_list_header_line.lua Mon Mar 05 18:48:23 2012 +0100 +++ b/framework/env/encode/mime/mailbox_list_header_line.lua Mon Mar 05 19:08:49 2012 +0100 @@ -2,10 +2,11 @@ local mailboxes = mailboxes if not mailboxes then mailboxes = {} - elseif type(mailboxes) == "string" then + elseif + type(mailboxes) == "string" or + mailboxes.address or mailboxes.name + then mailboxes = { mailboxes } - elseif mailboxes.address or mailboxes.name then - table.insert(mailboxes, mailboxes) end local indentation = "" for i = 1, #key + #(": ") do