tell application "Airmail 2"
set theMessage to selected message
tell theMessage
set theContent to htmlContent
set theSubject to subject
end tell
tell application "OmniFocus"
tell quick entry
set theRTFMessage to do shell script "echo " & quoted form of theContent & "|/usr/bin/textutil " & " -convert txt -stdin -stdout -format html"
make new inbox task with properties {name:theSubject, note:theRTFMessage}
set note expanded of every tree to true
open
end tell
end tell
end tell