lib/sup/mbox/loader.rb in sup-0.3 vs lib/sup/mbox/loader.rb in sup-0.4
- old
+ new
@@ -35,10 +35,10 @@
## heuristic: use the filename as a label, unless the file
## has a path that probably represents an inbox.
if File.dirname(path) =~ /\b(var|usr|spool)\b/
[]
else
- [File.basename(path).intern]
+ [File.basename(path).downcase.intern]
end
end
def check
if (cur_offset ||= start_offset) > end_offset