Sha256: ad374c8809191a51341d02502c8be7bf822202a19160578e66a0eb0b5f89b7aa
Contents?: true
Size: 545 Bytes
Versions: 5
Compression:
Stored size: 545 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, ArgumentError warn "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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
sup-0.11 | lib/sup/mbox.rb |
sup-0.10.2 | lib/sup/mbox.rb |
sup-0.10.1 | lib/sup/mbox.rb |
sup-0.10 | lib/sup/mbox.rb |
sup-0.9.1 | lib/sup/mbox.rb |