Sha256: 17f2e53d5cb21d0573156588331f98ffa0a9d118f86f7c97e9f4760175c53d0d
Contents?: true
Size: 538 Bytes
Versions: 2
Compression:
Stored size: 538 Bytes
Contents
require "sup/mbox/loader" require "sup/mbox/ssh-file" require "sup/mbox/ssh-loader" module Redwood module MBox BREAK_RE = /^From \S+ (.+)$/ def is_break_line? l l =~ BREAK_RE or return false time = $1 begin ## hack -- make Time.parse fail when trying to substitute values from Time.now Time.parse time, 0 true rescue NoMethodError Redwood::log "found invalid date in potential mbox split line, not splitting: #{l.inspect}" false end end module_function :is_break_line? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sup-0.8.1 | lib/sup/mbox.rb |
sup-0.8 | lib/sup/mbox.rb |