TMP files are generated by mail debuggers in the Notes.INI, for example, SaveImportErrors, SaveExportErrors.