From b9d5ff827a43f780412426b66852b287947653c3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 20 Oct 2009 18:56:02 +0400 Subject: [PATCH] * Remove utf8 usage in forged recipients plugin --- src/plugins/lua/forged_recipients.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/forged_recipients.lua b/src/plugins/lua/forged_recipients.lua index d5fda34bb..77188e830 100644 --- a/src/plugins/lua/forged_recipients.lua +++ b/src/plugins/lua/forged_recipients.lua @@ -26,7 +26,7 @@ function check_forged_headers(task) else -- Find pair for each smtp recipient recipient in To or Cc headers for _,sr in ipairs(smtp_rcpt) do - if sr:byte(1) == utf8.ltsym then + if sr:sub(1,1) == '<' then -- Trim brackets sr = string.sub(sr, 2, -2) end -- 2.39.5