aboutsummaryrefslogtreecommitdiff
path: root/mboxc.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-14 17:25:23 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-14 17:25:23 +0200
commit2a5126f4f0c0a3e073becb98f49499363072643d (patch)
treecd9e79c76420d01c94544ce039a6a73eb667e4e5 /mboxc.lua
parent4f3599db00b3a55a0ff6e52530bdad282e97f8f3 (diff)
downloadvicious-legacy-2a5126f4f0c0a3e073becb98f49499363072643d.tar.xz
General cleanup
Diffstat (limited to 'mboxc.lua')
-rw-r--r--mboxc.lua8
1 files changed, 1 insertions, 7 deletions
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