Index: wp-admin/import/mt.php
===================================================================
--- wp-admin/import/mt.php	(revision 13654)
+++ wp-admin/import/mt.php	(working copy)
@@ -239,7 +239,7 @@
 		$this->mt_authors_form();
 	}
 
-	function save_post(&$post, &$comments, &$pings) {
+	function save_post(&$post, &$comments, &$pings, &$tags) {
 		// Reset the counter
 		set_time_limit(30);
 		$post = get_object_vars($post);
@@ -274,6 +274,10 @@
 			}
 		}
 
+		if ( $tags != '' ) {
+                        wp_set_post_tags( $post_id, $tags );
+                }
+
 		$num_comments = 0;
 		foreach ( $comments as $comment ) {
 			$comment = get_object_vars($comment);
@@ -324,6 +328,7 @@
 		$comments = array();
 		$ping = new StdClass();
 		$pings = array();
+		$tags = '';
 
 		echo "<div class='wrap'><ol>";
 
@@ -343,7 +348,7 @@
 			} else if ( '--------' == $line ) {
 				// Finishing a post.
 				$context = '';
-				$result = $this->save_post($post, $comments, $pings);
+				$result = $this->save_post($post, $comments, $pings, $tags);
 				if ( is_wp_error( $result ) )
 					return $result;
 				$post = new StdClass;
@@ -351,6 +356,7 @@
 				$ping = new StdClass();
 				$comments = array();
 				$pings = array();
+				$tags = '';
 			} else if ( 'BODY:' == $line ) {
 				$context = 'body';
 			} else if ( 'EXTENDED BODY:' == $line ) {
@@ -375,7 +381,16 @@
 					$post->post_title = $title;
 				else if ( 'ping' == $context )
 					$ping->title = $title;
-			} else if ( 0 === strpos($line, "STATUS:") ) {
+			} else if ( 0 === strpos($line, "BASENAME:") ) {
+                                $basename = trim( strtolower( substr($line, strlen("BASENAME:")) ) );
+                                if ( '' == $context )
+                                        $post->post_name = $basename;
+                        } else if ( 0 === strpos($line, "TAGS:") ) {
+                                # Does not properly handle tags containing a comma
+                                $tags = trim( strtolower( substr($line, strlen("TAGS:")) ) );
+                                $tags = preg_replace('/^"|"$/', '', $tags);
+                                $tags = preg_replace('/(?:",")|(?:,")|(?:",)/', ',', $tags);
+                        } else if ( 0 === strpos($line, "STATUS:") ) {
 				$status = trim( strtolower( substr($line, strlen("STATUS:")) ) );
 				if ( empty($status) )
 					$status = 'publish';
