diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-14 17:25:23 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-14 17:25:23 +0200 |
commit | 2a5126f4f0c0a3e073becb98f49499363072643d (patch) | |
tree | cd9e79c76420d01c94544ce039a6a73eb667e4e5 /mboxc.lua | |
parent | 4f3599db00b3a55a0ff6e52530bdad282e97f8f3 (diff) | |
download | vicious-legacy-2a5126f4f0c0a3e073becb98f49499363072643d.tar.xz |
General cleanup
Diffstat (limited to 'mboxc.lua')
-rw-r--r-- | mboxc.lua | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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 |