Can I download just message headings at first? I don't want spam in my machine

I’d like to either: download just headers, or: view the headers online so I can select what to download, the way that Pegasus does. I don’t want to have spam or worse in my computer. Is this possible?