Because of the increase of needs for spam e-mail detec- tion, the spam filtering technique has been improved as a convenient and effective technique for text mining. We pro- pose a novel approach to detect fault-prone modules in a way that the source code modules are considered as text files and are applied to the spam filter directly. In order to show the applicability of our approach, we conducted ex- perimental applications using source code repositories of Java based open source developments. The result of experi- ments shows that our approach can classify more than 75% of software modules correctly.