Actually, I wouldn't recommend this for any spam you get. Spammers will send to millions of email addresses, not knowing if they're in use or not. When you click to unsubscribe, you give the spammer validation that your email is in use and emails sent to you will be read. Rather than unsubscribe you, the spammer does the opposite, recording the fact your address, along with millions of others, is a verified addresses. They will then sell lists of verified addresses for a higher price than unverified addresses. The spammer gets money and you get.... you guessed it..... more spam.There is nothing you can do, except click the unsubscribe link in each one.
It's better to simply delete any spam messages. Don't open them, reply to them or unsubscribe from them.