Applescript to the rescue!
tell application "Mail"
set currentState to download html attachments
if currentState = false then
set newState to true
else
set newState to false
end if
set download html attachments to newState
display dialog ¬
"Download HTML attachments set to \"" & ¬
newState & "\"." buttons {"OK"}
end tell
Pretty simple, but useful!

