Check server spam folder for messages

I’m using the pop3 client to get messages from the server inbox for further processing (pop3Client.ListMessages(query)). However, some of the emails I’d like to process are in the server spam folder.

Is there a way to get messages from the server spam folder (or any other named folder)?

Related: Move messages to the trash folder using the pop3 client

@mortenma

The POP3 protocol does not provide managing email in folders. So, it isn’t possible for a POP3 client to provide moving messages from one folder to another.

To provide a more advanced mail control, we recommend looking at ImapClient.