use sugarcrm buttton when already uploaded
refactor message sniffing logic
add more robust attachment injector.