Class: OthersParser
- Inherits:
-
BaseParser
- Object
- BaseParser
- OthersParser
- Defined in:
- lib/others_parser.rb
Instance Method Summary collapse
Methods inherited from BaseParser
#initialize, #isduplicate, #parse, #parsegrep, #shouldabsent, #shouldexist
Constructor Details
This class inherits a constructor from BaseParser
Instance Method Details
#convert(curfile, lines) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/others_parser.rb', line 15 def convert(curfile, lines) return unless lines and lines.length > 0 gm = GrepMail.new(curfile, lines, 300) msgid, mlog = gm.tolog if isduplicate(msgid) @oh.outputmlog_from_others nil else #output tocc or others mails anyway, better than disk overflow. @oh.outputmlog_from_others mlog end end |
#parse_with_summary ⇒ Object
8 9 10 11 12 13 |
# File 'lib/others_parser.rb', line 8 def parse_with_summary grep = shouldexist('.grep.others') parsegrep grep @oh.finishoutput end |