From 2a5126f4f0c0a3e073becb98f49499363072643d Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Mon, 14 Sep 2009 17:25:23 +0200 Subject: General cleanup --- mboxc.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'mboxc.lua') diff --git a/mboxc.lua b/mboxc.lua index bc67896..67078e3 100644 --- a/mboxc.lua +++ b/mboxc.lua @@ -21,17 +21,11 @@ local function worker(format, mbox) local total = 0 -- Open the mbox - -- - -- If we had LuaFileSystem we could check the mtime and size of - -- the file and if they didn't change since the last read we could - -- return the old, cached, count. However, we didn't rely on extra - -- libraries to this point so we won't start now. local f = io.open(mbox) while true do -- Read the mbox line by line, if we are going to read some - -- *HUGE* folders then switch to reading chunks. It's why we are - -- not reading the whole file at once in the first place. + -- *HUGE* folders then switch to reading chunks local lines = f:read("*line") if not lines then break end -- cgit v1.2.3