-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Split Msg::Properties off to its own file. It was confusing RDoc.
- Add RDoc to msg/properties.rb - Add initial cli converter - Update TODO git-svn-id: https://ruby-msg.googlecode.com/svn/trunk@39 c30d66de-b626-0410-988f-81f6512a6d81
- Loading branch information
Showing
6 changed files
with
513 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#! /usr/bin/ruby | ||
|
||
$: << File.dirname(__FILE__) + '/../lib/' | ||
require 'msg' | ||
|
||
def msg2eml | ||
quiet = if ARGV[0] == '-q' | ||
ARGV.shift | ||
true | ||
end | ||
# just shut up and convert a message to eml | ||
Msg::Log.level = Logger::WARN | ||
Msg::Log.level = Logger::FATAL if quiet | ||
msg = Msg.load open(ARGV[0]) | ||
puts msg.to_mime.to_s | ||
end | ||
|
||
msg2eml |
Oops, something went wrong.