webmcp
changeset 60:f2fe38a54504
Bugfix in function encode.mime.mailbox_list_header_line(...), which caused arguments to be modified
author | jbe |
---|---|
date | Mon Mar 05 19:08:49 2012 +0100 (2012-03-05) |
parents | 4f9f7fef80ee |
children | 382f042d99a3 |
files | framework/env/encode/mime/mailbox_list_header_line.lua |
line diff
1.1 --- a/framework/env/encode/mime/mailbox_list_header_line.lua Mon Mar 05 18:48:23 2012 +0100 1.2 +++ b/framework/env/encode/mime/mailbox_list_header_line.lua Mon Mar 05 19:08:49 2012 +0100 1.3 @@ -2,10 +2,11 @@ 1.4 local mailboxes = mailboxes 1.5 if not mailboxes then 1.6 mailboxes = {} 1.7 - elseif type(mailboxes) == "string" then 1.8 + elseif 1.9 + type(mailboxes) == "string" or 1.10 + mailboxes.address or mailboxes.name 1.11 + then 1.12 mailboxes = { mailboxes } 1.13 - elseif mailboxes.address or mailboxes.name then 1.14 - table.insert(mailboxes, mailboxes) 1.15 end 1.16 local indentation = "" 1.17 for i = 1, #key + #(": ") do