lib/mapi/property_set.rb
# for providing rtf to plain text conversion. later, html to text too.
for providing rtf to plain text conversion. later, html to text too.
for providing rtf to plain text conversion . later html to text too .
def body
			return @body if defined?(@body)
			@body = (self[:body] rescue nil)
			if !@body or @body.strip.empty?
				Log.warn 'creating text body from rtf'
				@body = (RTF::Converter.rtf2text body_rtf rescue nil)
			end
			@body
		end
def body return @body if defined? ( @body ) @body = ( self [ :body ] rescue nil ) if ! @body or @body . strip . empty? Log . warn 'creating text body from rtf' @body = ( RTF :: Converter . rtf2text body_rtf rescue nil ) end @body end
for providing rtf to plain text conversion.
for providing rtf to plain text conversion .
# last resort