The pop3deljunk program will delete what i call junk. May not be junk to other people.
It is hard coded and the compiler to compile is not expensive. I did not have the time to code the program to get a list of what i call junk from a ini file.
And i did not want to get it what i called junk from a command line option either and do a match on the subject line and delete emails unintentional.
So it is hard coded.
Most all the pop3 programs so far i have written can have redirection applied on the command tail to basically create a log file or output easier to read
from a file.
I included clipscr2, textv and paper, programs to work with text and/or the clipboard.
Clipscr2 has one issue, it keeps a file open after it reads it, if you open a file from the command tail with it. That program was not designed to open files from the initial thought process.
The pop3delspam program looks for the exact word '[SPAM]]' in the subject line. If you do not like that and you do not want to recompile the program.
You can edit the exe file and replace those characters using only uppercase alpha characters. The program will uppercase the whole subject line in the email before making a search to match on. I like the [SPAM] word we placed in the server-manager panel to be placed on inside the subject line of an email that is suspected of being spam.
We do this to allow the maillog program to keep those emails marked as spam in the case we need to retrieve the email. We purge the spammed marked emails from the maillog email account periodically.