Use ACL instead of AXE for utilities
[gnucomo.git] / src / gcm_input / spamdetect.cpp
index 8ee5621..cfe3367 100644 (file)
@@ -38,7 +38,7 @@
 static const char *RCSID = "$Id: spamdetect.cpp,v 1.2 2007-11-21 15:14:26 arjen Exp $";
 
 #include <fstream>
-#include <AXE/String.h>
+#include <String.h>
 
 #include <syslog.h>
 #include <getopt.h>
@@ -51,7 +51,10 @@ int main(int argc, char *argv[])
    String header;
    int    state = 0;
 
-   regex fwd_header("---- Original Message -----");
+   //  From here, the original spam starts. Something like 
+   //  -------- Forwarded Message --------  or  -------- Original Message -------- 
+
+   regex fwd_header("---- .+ Message -----");
    regex received("^Received:");
    regex from("^From:");
    regex returnpath("^Return-Path:");