Index: xmlrpc.php
===================================================================
--- xmlrpc.php	(revision 4597)
+++ xmlrpc.php	(working copy)
@@ -566,6 +566,16 @@
 	    return new IXR_Error(500, 'Sorry, your entry could not be posted. Something wrong happened.');
 	  }
 
+    // Handle enclosures
+    $enclosure = $content_struct['enclosure'];
+    if (is_array($enclosure) && isset($enclosure['url'])
+    && isset($enclosure['length']) && isset($enclosure['type'])) {
+      add_post_meta($post_ID, 'enclosure', 
+        $enclosure['url'] . "\n" . 
+        $enclosure['length'] . "\n" . 
+        $enclosure['type']);
+    }
+
 	  $this->attach_uploads( $post_ID, $post_content );
 
 	  logIO('O', "Posted ! ID: $post_ID");

