Before Mail decides it is junk it looks at the sender and the sender IP along with various other items found in the headers. Spammers try to twist the rules that all junk filters use and they send using a different IP but the subject and sender appears to be the same.
You have to keep on telling Mail it is junk. Eventually, Mail gets the idea.