Bayesian spam filters work by analyzing the contents of the email, and then calculating the probability of the message being spam. They analyze the characteristics of both, the legitimate mails as well as the spam mails. For the Bayesian spam filtering process, both, the characteristics of the legitimate mails as well as the spam mails are equally important. As it analyzes the mails, it keeps on building up a list of genuine as well as spam characteristics.