--- librmail-ruby-0.15/lib/rmail/message.rb	2003-09-17 10:39:30.000000000 -0700
+++ librmail-ruby-0.15/lib/rmail/message.rb~delete_part	2004-12-16 21:37:30.000000000 -0800
@@ -98,6 +98,14 @@
       end
     end
 
+    # Delete a part from this message. Only takes an index, because it's
+    # a huge waste of time to compare the actual Message objects.
+    def delete_part(i)
+      raise TypeError, "Not a multipart message." unless multipart?
+      raise TypeError, "Part index out of bounds." unless (i > 0 and i < @body.size)
+      @body.delete_at(i)
+    end
+
     # Decode the body of this message.
     #
     # If the body of this message is encoded with
