<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -51,8 +51,13 @@ module GData
       put(path, entry.to_s)
     end
 
-    # Creates a new entry with the given title and body
-    def entry(title, body, labels=[])
+    # Creates a new entry with the given +title+ and +body+
+    # +options+ can contain the following:
+    #   :labels - an array of labels (tags) to apply to the post
+    #   :draft - boolean to save the post as a draft (not published)
+    #
+    def entry(title, body, options = {})
+      options = { :labels =&gt; [], :draft =&gt; false}.merge(options)
       x = Builder::XmlMarkup.new :indent =&gt; 2
       @entry = x.entry 'xmlns' =&gt; 'http://www.w3.org/2005/Atom' do
         x.title title, 'type' =&gt; 'text'
@@ -61,11 +66,17 @@ module GData
             x &lt;&lt; body
           end
         end
-        labels.each do |label|
+        options[:labels].each do |label|
           x.category 'scheme' =&gt; &quot;http://www.blogger.com/atom/ns#&quot;, 'term' =&gt; label
         end
+        if options[:draft]
+          x.app:control, 'xmlns:app' =&gt;'http://www.w3.org/2007/app' do
+            x &lt;&lt; &quot;&lt;app:draft&gt;yes&lt;/app:draft&gt;&quot; # The whitespace that builder 
+                                              # adds around 'yes' was resulting
+                                              # in a bad request.
+          end
+        end
       end
-      
       path = &quot;/feeds/#{@blog_id}/posts/default&quot;
       post(path, @entry)
     end</diff>
      <filename>lib/twitter_archive/backends/blogger/blogger.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,8 +8,17 @@ module TwitterArchive
         if twitter_results.length &gt; 0
           blogger = GData::Blogger.new(opts['blogger_id'])
           blogger.authenticate(opts['blogger_user'], opts['blogger_pass'])
-          blogger.entry(opts['blogger_title'] || 'Twitter', format_post(twitter_results), ['twitter'])
-          &quot;Posting to blogger id #{opts['blogger_id']}, user #{opts['blogger_user']}&quot;
+
+          res = blogger.entry(opts['blogger_title'] || 'Twitter', 
+                        format_post(twitter_results),
+                        {:labels =&gt; ['twitter'], :draft =&gt; true})
+
+          if res.code == '201' # 201 - Created
+            &quot;Posting to blogger id #{opts['blogger_id']}, user #{opts['blogger_user']}&quot;
+          else
+            &quot;Error posting to blogger id #{opts['blogger_id']}, user #{opts['blogger_user']}: #{res.body}&quot;
+          end
+
         else
           &quot;Nothing to post to blogger&quot;
         end</diff>
      <filename>lib/twitter_archive/backends/blogger_archive.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
 module TwitterArchive
-  VERSION = '0.0.6'
+  VERSION = '0.0.7'
 end</diff>
      <filename>lib/twitter_archive/version.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>59696e002a78c9c4e0cb22cda135b69b9effd1b4</id>
    </parent>
  </parents>
  <author>
    <name>Christopher Sexton</name>
    <email>csexton@gmail.com</email>
  </author>
  <url>http://github.com/csexton/twitter_archive/commit/0a6b37137fbf02563a65694f6fca02a57c2732fd</url>
  <id>0a6b37137fbf02563a65694f6fca02a57c2732fd</id>
  <committed-date>2009-01-12T20:28:33-08:00</committed-date>
  <authored-date>2009-01-12T20:28:33-08:00</authored-date>
  <message>Made new blog posts start as drafts so I don't spam my blog until I want to publish them.</message>
  <tree>d9b3ebaea7c630835cf3ad4acb91e964801f4abb</tree>
  <committer>
    <name>Christopher Sexton</name>
    <email>csexton@gmail.com</email>
  </committer>
</commit>
