Use a generated hash to store attachment/inline filenames, to handle case where a filename is not defined.