? omega/COPYING
? omega/INSTALL
? queryserver/.deps
? queryserver/docs/Makefile
Index: omega/omindex.cc
===================================================================
RCS file: /usr/data/cvs/xapian/xapian-applications/omega/omindex.cc,v
retrieving revision 1.48
diff -u -w -r1.48 omindex.cc
--- omega/omindex.cc	25 Aug 2004 22:23:06 -0000	1.48
+++ omega/omindex.cc	24 Oct 2004 23:06:54 -0000
@@ -142,8 +142,8 @@
 		    lowercase_term(val);
 		    if (val.find("none") != string::npos ||
 			val.find("noindex") != string::npos) {
-			indexing_allowed = false;
-			throw true;
+			//indexing_allowed = false;
+			//throw true;
 		    }
 		}
 	    }
@@ -358,10 +358,12 @@
 	    // MyHtmlParser throws a bool to abandon parsing at </body> or when
 	    // indexing is disallowed
 	}
+/*
 	if (!p.indexing_allowed) {
 	    cout << "indexing disallowed by meta tag - skipping\n";
 	    return;
 	}
+*/
 	dump = p.dump;
 	title = p.title;
 	keywords = p.keywords;
@@ -404,6 +406,22 @@
 	    cout << "\"" << cmd << "\" failed - skipping\n";
 	    return;
 	}
+    } else if (mimetype == "application/msword") {
+	string cmd = "antiword " + shell_protect(file);
+	try {
+	    dump = stdout_to_string(cmd);
+	} catch (ReadError) {
+	    cout << "\"" << cmd << "\" failed - skipping\n";
+	    return;
+	}
+    } else if (mimetype == "text/x-perl") {
+	string cmd = "pod2text " + shell_protect(file);
+	try {
+	    dump = stdout_to_string(cmd);
+	} catch (ReadError) {
+	    cout << "\"" << cmd << "\" failed - skipping\n";
+	    return;
+	}
     } else {
 	// Don't know how to index this
 	cout << "unknown MIME type - skipping\n";
@@ -574,6 +592,10 @@
     mime_map["ps"] = "application/postscript";
     mime_map["eps"] = "application/postscript";
     mime_map["ai"] = "application/postscript";
+    mime_map["doc"] = "application/msword";
+    mime_map["pod"] = "text/x-perl";
+    mime_map["pm"] = "text/x-perl";
+    mime_map["pl"] = "text/x-perl";
 
     while ((getopt_ret = getopt_long(argc, argv, "hvd:D:U:M:l", longopts, NULL))!=EOF) {
 	switch (getopt_ret) {
@@ -597,6 +619,7 @@
 	    return 0;
 	case 'v':
 	    cout << OMINDEX << " (" << PACKAGE << ") " << VERSION << "\n"
+		 << "[with local modification to handle additional file types]\n"
 		 << "Copyright (c) 1999,2000,2001 BrightStation PLC.\n"
 		 << "Copyright (c) 2001 James Aylett\n"
 		 << "Copyright (c) 2001,2002 Ananova Ltd\n"
