How do I perform text classification?

The article Text categorization with WEKA explains a few basics of how to deal with text documents, like import and pre-processing.