Module: Asposeemailjava::ExtractEmailHeaders
- Defined in:
- lib/asposeemailjava/Email/extractemailheaders.rb
Instance Method Summary collapse
Instance Method Details
#initialize ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/asposeemailjava/Email/extractemailheaders.rb', line 3 def initialize() data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/' # Initialize and Load an existing EML file by specifying the MessageFormat = Rjb::import('com.aspose.email.MailMessage').load(data_dir + "Message.eml") puts "Printing all Headers:" # Print out all the headers i=0 while i < .getHeaders().getCount() puts .getHeaders().get(i) i +=1 end end |