diff src/readpst.c @ 123:ab2a11e72250

more cleanup of #include files. common.h is the only file allowed to include system .h files unprotected by autoconf HAVE_ symbols. define.h is the only other file allowed to include system .h files. define.h is never installed; common.h is installed if we are building the shared library.
author Carl Byington <carl@five-ten-sg.com>
date Tue, 03 Feb 2009 10:59:10 -0800
parents bdb38b434c0a
children 23a36ac0514d
line wrap: on
line diff
--- a/src/readpst.c	Mon Feb 02 21:55:48 2009 -0800
+++ b/src/readpst.c	Tue Feb 03 10:59:10 2009 -0800
@@ -13,10 +13,6 @@
 #include "define.h"
 #include "lzfu.h"
 
-#ifdef HAVE_REGEX_H
-    #include <regex.h>
-#endif
-
 #define OUTPUT_TEMPLATE "%s"
 #define OUTPUT_KMAIL_DIR_TEMPLATE ".%s.directory"
 #define KMAIL_INDEX ".%s.index"
@@ -242,7 +238,7 @@
     srand((unsigned)now);
 
     if (regcomp(&meta_charset_pattern, "<meta[^>]*content=\"[^>]*charset=([^>\";]*)[\";]", REG_ICASE | REG_EXTENDED)) {
-        printf("cannot compile regex pattern\n");
+        printf("cannot compile regex pattern to find content charset in html bodies\n");
         exit(3);
     }