add saveAttachmentsInTmp to dump attached data into tmp
fix mime context to cached property, so can regenerate.