Skip to content

Commit

Permalink
- Split Msg::Properties off to its own file. It was confusing RDoc.
Browse files Browse the repository at this point in the history
- 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
aquasync committed Jan 23, 2007
1 parent d4077e1 commit 8f9b8b5
Show file tree
Hide file tree
Showing 6 changed files with 513 additions and 415 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ end
Rake::GemPackageTask.new(spec) do |p|
p.gem_spec = spec
p.need_tar = true
p.need_zip = true
p.need_zip = false
p.package_dir = 'build'
end

22 changes: 2 additions & 20 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Highest priority
Newer
------------------------
* certain parsing still not correct, especially small properties directory,
things like bools, multiavlue shorts etc.
Expand Down Expand Up @@ -75,25 +75,7 @@ understand the relationship with existing TNEF work also.
hmmmm for future work:
http://blogs.msdn.com/stephen_griffin/archive/2005/10/25/484656.aspx

Ole::Storage
========================
- still needs much cleaning
- proper io streams for data access as opposed to current situation.
especially needed for large attachments
- rewrite tests
- generalise and test
- split off as proper separate project?
- formalise api, document.
- properly investigate other alternatives, and/or missing features
- not just read. create and update api too.

Mime
========================
- split off into own file.
- would need to be more general (not just mail related) and standards compliant then
- test cases etc as above.

Msg
Older
========================
- set 'From' in Msg#populate_headers.
Notes:
Expand Down
18 changes: 18 additions & 0 deletions bin/msg2eml
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
Loading

0 comments on commit 8f9b8b5

Please sign in to comment.