Open the .pst or .ost, tick the folder you want, such as the Inbox or Sent folder, and run the extraction. Every file attachment in that folder is saved to disk, optionally filtered by type and mirrored into the same folder structure. A file that refuses to open because of a forgotten password needs a separate step first,
recover the PST password, then point the extractor at the unlocked archive.