Sha256: 772c291cc30544c2b0f3333f3b86fcfac4e6077d0c0152242a7f76bb4deadc8b
Contents?: true
Size: 829 Bytes
Versions: 2
Compression:
Stored size: 829 Bytes
Contents
# Command Interface class MboxHeaderScraper::CLI < Thor desc \ 'mail_address_list {in file} {out file}', 'load {in file} and output email address included to {out file}' long_desc \ 'load mbox file and output in tsv format file. ' \ 'the file includes No, Subject(short), From, To, CC' def mail_address_list(in_file, out_file) error_message = MboxHeaderScraper::Scraper.check_in_file(in_file) if error_message puts "input file error: #{error_message}" exit 1 end error_message = MboxHeaderScraper::Scraper.check_out_file(out_file) if error_message puts "output file error: #{error_message}" exit 1 end MboxHeaderScraper::Scraper.process( in_file, out_file, { Subject: true, Date: true, From: true, To: true, CC: true } ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mbox_header_scraper-0.1.1 | lib/mbox_header_scraper/cli.rb |
mbox_header_scraper-0.1.0 | lib/mbox_header_scraper/cli.rb |