Towards In-Network Semantic Analysis: A Case Study involving Spam Classification