aboutsummaryrefslogtreecommitdiff
path: root/mbox.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mbox.lua')
-rw-r--r--mbox.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/mbox.lua b/mbox.lua
index c73236c..51c2e6b 100644
--- a/mbox.lua
+++ b/mbox.lua
@@ -21,12 +21,9 @@ local function worker(format, mbox)
-- mbox could be huge, get a 15kb chunk from EOF
-- * attachments could be much bigger than this
f:seek("end", -15360)
-
- -- Get data
local text = f:read("*all")
f:close()
- -- Find subject lines
for match in string.gfind(text, "Subject: ([^\n]*)") do
subject = match
end