Index: mt.php
===================================================================
--- mt.php	(revision 5709)
+++ mt.php	(working copy)
@@ -220,6 +220,14 @@
 			if ( 0 != count($post->categories) ) {
 				wp_create_categories($post->categories, $post_id);
 			}
+			
+			// Add keywords. No way to add postmeta data with wp_insert_post(), so do it manually.
+			global $wpdb;
+			$table_name = $wpdb->prefix . "postmeta";
+			$insert = "INSERT INTO " . $table_name .
+			            " (post_id, meta_key, meta_value) " .
+			            "VALUES ($post_id,'mtkeywords','" . $wpdb->escape($post->keywords) . "')";
+			$results = $wpdb->query( $insert );			
 		}
 
 		$num_comments = 0;
@@ -268,6 +276,7 @@
 
 		$context = '';
 		$post = new StdClass();
+		$keywords = new StdClass();		
 		$comment = new StdClass();
 		$comments = array();
 		$ping = new StdClass();
@@ -293,6 +302,7 @@
 				$context = '';
 				$this->save_post($post, $comments, $pings);
 				$post = new StdClass;
+				$keywords = new StdClass;				
 				$comment = new StdClass();
 				$ping = new StdClass();
 				$comments = array();
@@ -392,6 +402,8 @@
 					$post->extended .= $line;
 				} else if ( 'excerpt' == $context ) {
 					$post->post_excerpt .= $line;
+				} else if ( 'keywords' == $context ) {
+					$post->keywords .= $line;					
 				} else if ( 'comment' == $context ) {
 					$comment->comment_content .= $line;
 				} else if ( 'ping' == $context ) {

