Use magic to check for attachment content - closes #22