<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.DS_Store</filename>
    </added>
    <added>
      <filename>doc/classes/Mailtrap/LogParser.html</filename>
    </added>
    <added>
      <filename>doc/classes/Mailtrap/LogParser.src/M000005.html</filename>
    </added>
    <added>
      <filename>doc/files/lib/mailtrap/log_parser_rb.html</filename>
    </added>
    <added>
      <filename>lib/mailtrap/log_parser.rb</filename>
    </added>
    <added>
      <filename>spec/mailtrap/log_parser_spec.rb</filename>
    </added>
    <added>
      <filename>spec/mailtrap/sample_logs/sample.log</filename>
    </added>
    <added>
      <filename>spec/mailtrap/sample_logs/sample_empty.log</filename>
    </added>
    <added>
      <filename>spec/spec.opts</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -4,3 +4,13 @@ README.txt
 Rakefile
 bin/mailtrap
 lib/mailtrap.rb
+lib/mailtrap/log_parser.rb
+spec
+spec/mailtrap
+spec/mailtrap/log_parser_spec.rb
+spec/mailtrap/sample_logs
+spec/mailtrap/sample_logs/sample.log
+spec/mailtrap/sample_logs/sample_empty.log
+spec/spec.opts
+test
+test/test_mailtrap.rb</diff>
      <filename>Manifest.txt</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,9 @@
 
 require 'rubygems'
 require 'hoe'
-require './lib/mailtrap.rb'
+require 'spec'
+require 'spec/rake/spectask'
+require './lib/mailtrap'
 
 Hoe.new('mailtrap', Mailtrap::VERSION ) do |p|
   p.rubyforge_name = 'simplyruby'
@@ -15,6 +17,30 @@ Hoe.new('mailtrap', Mailtrap::VERSION ) do |p|
   p.remote_rdoc_dir = 'mailtrap'
   p.extra_deps &lt;&lt; ['daemons','&gt;= 1.0.8'] 
   p.extra_deps &lt;&lt; ['trollop','&gt;= 1.7']
+  p.extra_deps &lt;&lt; ['tmail','&gt;= 1.2.2']
 end
 
+namespace :spec do
+  desc &quot;Run the specs under spec&quot;
+  Spec::Rake::SpecTask.new('all') do |t|
+    t.spec_opts = ['--options', &quot;spec/spec.opts&quot;]
+    t.spec_files = FileList['spec/**/*_spec.rb']
+  end
+
+  desc &quot;Run the specs under spec in specdoc format&quot;
+  Spec::Rake::SpecTask.new('doc') do |t|
+    t.spec_opts = ['--format', &quot;specdoc&quot;]
+    t.spec_files = FileList['spec/**/*_spec.rb']
+  end
+
+  desc &quot;Run the specs in HTML format&quot;
+  Spec::Rake::SpecTask.new('html') do |t|
+    t.spec_opts = ['--format', &quot;html&quot;]
+    t.spec_files = FileList['spec/**/*_spec.rb']
+  end
+end
+
+desc &quot;Run the default spec task&quot;
+task :spec =&gt; :&quot;spec:all&quot;
+
 # vim: syntax=Ruby</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -59,6 +59,10 @@
                 lib/mailtrap.rb
                 &lt;/a&gt;
         &lt;br /&gt;
+                &lt;a href=&quot;../files/lib/mailtrap/log_parser_rb.html&quot;&gt;
+                lib/mailtrap/log_parser.rb
+                &lt;/a&gt;
+        &lt;br /&gt;
             &lt;/td&gt;
         &lt;/tr&gt;
 
@@ -80,10 +84,11 @@
 
     &lt;div id=&quot;description&quot;&gt;
       &lt;p&gt;
-&lt;a href=&quot;Mailtrap.html&quot;&gt;Mailtrap&lt;/a&gt; creates a TCP server that listens on a
-specified port for SMTP clients. Accepts the connection and talks just
-enough of the SMTP protocol for them to deliver a message which it writes
-to disk.
+Class to read a &lt;a href=&quot;Mailtrap.html&quot;&gt;Mailtrap&lt;/a&gt; log file and extract
+the emails, returning them as TMail objects. (Interim solution until we can
+get &lt;a href=&quot;Mailtrap.html&quot;&gt;Mailtrap&lt;/a&gt; outputting structured log files.)
+&amp;#8212; hacked together by Ashley Moran
+&amp;lt;ashley.moran@patchspace.co.uk&amp;gt; 06-Apr-2008
 &lt;/p&gt;
 
     &lt;/div&gt;
@@ -109,6 +114,12 @@ to disk.
 
     &lt;div id=&quot;section&quot;&gt;
 
+    &lt;div id=&quot;class-list&quot;&gt;
+      &lt;h3 class=&quot;section-bar&quot;&gt;Classes and Modules&lt;/h3&gt;
+
+      Class &lt;a href=&quot;Mailtrap/LogParser.html&quot; class=&quot;link&quot;&gt;Mailtrap::LogParser&lt;/a&gt;&lt;br /&gt;
+
+    &lt;/div&gt;
 
     &lt;div id=&quot;constants-list&quot;&gt;
       &lt;h3 class=&quot;section-bar&quot;&gt;Constants&lt;/h3&gt;
@@ -118,7 +129,7 @@ to disk.
         &lt;tr class=&quot;top-aligned-row context-row&quot;&gt;
           &lt;td class=&quot;context-item-name&quot;&gt;VERSION&lt;/td&gt;
           &lt;td&gt;=&lt;/td&gt;
-          &lt;td class=&quot;context-item-value&quot;&gt;'0.1.0'&lt;/td&gt;
+          &lt;td class=&quot;context-item-value&quot;&gt;'0.2.1'&lt;/td&gt;
         &lt;/tr&gt;
         &lt;/table&gt;
       &lt;/div&gt;
@@ -139,7 +150,7 @@ to disk.
         &lt;div class=&quot;method-heading&quot;&gt;
           &lt;a href=&quot;Mailtrap.src/M000001.html&quot; target=&quot;Code&quot; class=&quot;method-signature&quot;
             onclick=&quot;popupCode('Mailtrap.src/M000001.html');return false;&quot;&gt;
-          &lt;span class=&quot;method-name&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;method-args&quot;&gt;( host, port, once, msgdir )&lt;/span&gt;
+          &lt;span class=&quot;method-name&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;method-args&quot;&gt;( host, port, once, msgfile )&lt;/span&gt;
           &lt;/a&gt;
         &lt;/div&gt;
       </diff>
      <filename>doc/classes/Mailtrap.html</filename>
    </modified>
    <modified>
      <diff>@@ -10,14 +10,17 @@
   &lt;link rel=&quot;stylesheet&quot; href=&quot;../.././rdoc-style.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
 &lt;/head&gt;
 &lt;body class=&quot;standalone-code&quot;&gt;
-  &lt;pre&gt;&lt;span class=&quot;ruby-comment cmt&quot;&gt;# File lib/mailtrap.rb, line 18&lt;/span&gt;
-  &lt;span class=&quot;ruby-keyword kw&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;initialize&lt;/span&gt;( &lt;span class=&quot;ruby-identifier&quot;&gt;host&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;port&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;once&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;msgdir&lt;/span&gt; )
+  &lt;pre&gt;&lt;span class=&quot;ruby-comment cmt&quot;&gt;# File lib/mailtrap.rb, line 19&lt;/span&gt;
+  &lt;span class=&quot;ruby-keyword kw&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;initialize&lt;/span&gt;( &lt;span class=&quot;ruby-identifier&quot;&gt;host&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;port&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;once&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;msgfile&lt;/span&gt; )
     &lt;span class=&quot;ruby-ivar&quot;&gt;@host&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;host&lt;/span&gt;
     &lt;span class=&quot;ruby-ivar&quot;&gt;@port&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;port&lt;/span&gt;
     &lt;span class=&quot;ruby-ivar&quot;&gt;@once&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;once&lt;/span&gt;
-    &lt;span class=&quot;ruby-ivar&quot;&gt;@msgdir&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;msgdir&lt;/span&gt;
+    &lt;span class=&quot;ruby-ivar&quot;&gt;@msgfile&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;msgfile&lt;/span&gt;
+    
+    &lt;span class=&quot;ruby-constant&quot;&gt;File&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;open&lt;/span&gt;( &lt;span class=&quot;ruby-ivar&quot;&gt;@msgfile&lt;/span&gt;, &lt;span class=&quot;ruby-value str&quot;&gt;&amp;quot;a&amp;quot;&lt;/span&gt; ) &lt;span class=&quot;ruby-keyword kw&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;file&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
+      &lt;span class=&quot;ruby-identifier&quot;&gt;file&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;ruby-node&quot;&gt;&amp;quot;\n* Mailtrap started at #{@host}:#{port}\n&amp;quot;&lt;/span&gt;
+    &lt;span class=&quot;ruby-keyword kw&quot;&gt;end&lt;/span&gt;
     
-    &lt;span class=&quot;ruby-identifier&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;ruby-node&quot;&gt;&amp;quot;Mailtrap starting at #{@host}:#{port} and writing to #{@msgdir}&amp;quot;&lt;/span&gt;
     &lt;span class=&quot;ruby-identifier&quot;&gt;service&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;TCPServer&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;( &lt;span class=&quot;ruby-ivar&quot;&gt;@host&lt;/span&gt;, &lt;span class=&quot;ruby-ivar&quot;&gt;@port&lt;/span&gt; )
     &lt;span class=&quot;ruby-identifier&quot;&gt;accept&lt;/span&gt;( &lt;span class=&quot;ruby-identifier&quot;&gt;service&lt;/span&gt; )
   &lt;span class=&quot;ruby-keyword kw&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;</diff>
      <filename>doc/classes/Mailtrap.src/M000001.html</filename>
    </modified>
    <modified>
      <diff>@@ -10,7 +10,7 @@
   &lt;link rel=&quot;stylesheet&quot; href=&quot;../.././rdoc-style.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
 &lt;/head&gt;
 &lt;body class=&quot;standalone-code&quot;&gt;
-  &lt;pre&gt;&lt;span class=&quot;ruby-comment cmt&quot;&gt;# File lib/mailtrap.rb, line 30&lt;/span&gt;
+  &lt;pre&gt;&lt;span class=&quot;ruby-comment cmt&quot;&gt;# File lib/mailtrap.rb, line 34&lt;/span&gt;
   &lt;span class=&quot;ruby-keyword kw&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;accept&lt;/span&gt;( &lt;span class=&quot;ruby-identifier&quot;&gt;service&lt;/span&gt; )
     &lt;span class=&quot;ruby-keyword kw&quot;&gt;while&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;session&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;service&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;accept&lt;/span&gt;
       </diff>
      <filename>doc/classes/Mailtrap.src/M000002.html</filename>
    </modified>
    <modified>
      <diff>@@ -10,27 +10,21 @@
   &lt;link rel=&quot;stylesheet&quot; href=&quot;../.././rdoc-style.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
 &lt;/head&gt;
 &lt;body class=&quot;standalone-code&quot;&gt;
-  &lt;pre&gt;&lt;span class=&quot;ruby-comment cmt&quot;&gt;# File lib/mailtrap.rb, line 54&lt;/span&gt;
+  &lt;pre&gt;&lt;span class=&quot;ruby-comment cmt&quot;&gt;# File lib/mailtrap.rb, line 58&lt;/span&gt;
   &lt;span class=&quot;ruby-keyword kw&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;write&lt;/span&gt;( &lt;span class=&quot;ruby-identifier&quot;&gt;from&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;to_list&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;message&lt;/span&gt; )
     
     &lt;span class=&quot;ruby-comment cmt&quot;&gt;# Strip SMTP commands from To: and From:&lt;/span&gt;
     &lt;span class=&quot;ruby-identifier&quot;&gt;from&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;gsub!&lt;/span&gt;( &lt;span class=&quot;ruby-regexp re&quot;&gt;/MAIL FROM:\s*/&lt;/span&gt;, &lt;span class=&quot;ruby-value str&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt; )
     &lt;span class=&quot;ruby-identifier&quot;&gt;to_list&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;to_list&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;map&lt;/span&gt; { &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;to&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;gsub&lt;/span&gt;( &lt;span class=&quot;ruby-regexp re&quot;&gt;/RCPT TO:\s*/&lt;/span&gt;, &lt;span class=&quot;ruby-value str&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt; ) }
     
-    &lt;span class=&quot;ruby-comment cmt&quot;&gt;# Figure out what the file name should be&lt;/span&gt;
-    &lt;span class=&quot;ruby-identifier&quot;&gt;n&lt;/span&gt; = &lt;span class=&quot;ruby-value&quot;&gt;1&lt;/span&gt;
-    &lt;span class=&quot;ruby-constant&quot;&gt;Dir&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;chdir&lt;/span&gt;( &lt;span class=&quot;ruby-ivar&quot;&gt;@msgdir&lt;/span&gt; ) &lt;span class=&quot;ruby-keyword kw&quot;&gt;do&lt;/span&gt;
-      &lt;span class=&quot;ruby-identifier&quot;&gt;files&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Dir&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;glob&lt;/span&gt;( &lt;span class=&quot;ruby-value str&quot;&gt;&amp;quot;smtp*.msg&amp;quot;&lt;/span&gt; )
-      &lt;span class=&quot;ruby-keyword kw&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;files&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;length&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;
-        &lt;span class=&quot;ruby-identifier&quot;&gt;n&lt;/span&gt; = &lt;span class=&quot;ruby-value&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;ruby-constant&quot;&gt;Integer&lt;/span&gt;( &lt;span class=&quot;ruby-identifier&quot;&gt;files&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;last&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;gsub&lt;/span&gt;( &lt;span class=&quot;ruby-regexp re&quot;&gt;/smtp(\d+)\.msg/&lt;/span&gt;, &lt;span class=&quot;ruby-value str&quot;&gt;'\1'&lt;/span&gt; ) )
-      &lt;span class=&quot;ruby-keyword kw&quot;&gt;end&lt;/span&gt;
-    &lt;span class=&quot;ruby-keyword kw&quot;&gt;end&lt;/span&gt;
-        
-    &lt;span class=&quot;ruby-constant&quot;&gt;File&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;open&lt;/span&gt;( &lt;span class=&quot;ruby-constant&quot;&gt;File&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;join&lt;/span&gt;( &lt;span class=&quot;ruby-ivar&quot;&gt;@msgdir&lt;/span&gt;, &lt;span class=&quot;ruby-value str&quot;&gt;&amp;quot;smtp%04d.msg&amp;quot;&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;%&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;n&lt;/span&gt; ), &lt;span class=&quot;ruby-value str&quot;&gt;&amp;quot;w&amp;quot;&lt;/span&gt; ) &lt;span class=&quot;ruby-keyword kw&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;file&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
+    &lt;span class=&quot;ruby-comment cmt&quot;&gt;# Append to the end of the messages file&lt;/span&gt;
+    &lt;span class=&quot;ruby-constant&quot;&gt;File&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;open&lt;/span&gt;( &lt;span class=&quot;ruby-ivar&quot;&gt;@msgfile&lt;/span&gt;, &lt;span class=&quot;ruby-value str&quot;&gt;&amp;quot;a&amp;quot;&lt;/span&gt; ) &lt;span class=&quot;ruby-keyword kw&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;file&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
+      &lt;span class=&quot;ruby-identifier&quot;&gt;file&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;ruby-value str&quot;&gt;&amp;quot;* Message begins&amp;quot;&lt;/span&gt;
       &lt;span class=&quot;ruby-identifier&quot;&gt;file&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;ruby-node&quot;&gt;&amp;quot;From: #{from}&amp;quot;&lt;/span&gt;
       &lt;span class=&quot;ruby-identifier&quot;&gt;file&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;ruby-node&quot;&gt;&amp;quot;To: #{to_list.join(&amp;quot;, &amp;quot;)}&amp;quot;&lt;/span&gt;
       &lt;span class=&quot;ruby-identifier&quot;&gt;file&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;ruby-value str&quot;&gt;&amp;quot;Body:&amp;quot;&lt;/span&gt;
       &lt;span class=&quot;ruby-identifier&quot;&gt;file&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;message&lt;/span&gt;
+      &lt;span class=&quot;ruby-identifier&quot;&gt;file&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;ruby-value str&quot;&gt;&amp;quot;\n* Message ends&amp;quot;&lt;/span&gt;
     &lt;span class=&quot;ruby-keyword kw&quot;&gt;end&lt;/span&gt;
 
   &lt;span class=&quot;ruby-keyword kw&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;</diff>
      <filename>doc/classes/Mailtrap.src/M000003.html</filename>
    </modified>
    <modified>
      <diff>@@ -10,7 +10,7 @@
   &lt;link rel=&quot;stylesheet&quot; href=&quot;../.././rdoc-style.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
 &lt;/head&gt;
 &lt;body class=&quot;standalone-code&quot;&gt;
-  &lt;pre&gt;&lt;span class=&quot;ruby-comment cmt&quot;&gt;# File lib/mailtrap.rb, line 80&lt;/span&gt;
+  &lt;pre&gt;&lt;span class=&quot;ruby-comment cmt&quot;&gt;# File lib/mailtrap.rb, line 78&lt;/span&gt;
   &lt;span class=&quot;ruby-keyword kw&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;serve&lt;/span&gt;( &lt;span class=&quot;ruby-identifier&quot;&gt;connection&lt;/span&gt; )
     &lt;span class=&quot;ruby-identifier&quot;&gt;connection&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;puts&lt;/span&gt;( &lt;span class=&quot;ruby-node&quot;&gt;&amp;quot;220 #{@host} MailTrap ready ESTMP&amp;quot;&lt;/span&gt; )
     &lt;span class=&quot;ruby-identifier&quot;&gt;helo&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;connection&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;get_line&lt;/span&gt; &lt;span class=&quot;ruby-comment cmt&quot;&gt;# whoever they are&lt;/span&gt;</diff>
      <filename>doc/classes/Mailtrap.src/M000004.html</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-Thu, 04 Oct 2007 11:17:30 +0100
+Sun, 06 Apr 2008 19:24:06 +0100</diff>
      <filename>doc/created.rid</filename>
    </modified>
    <modified>
      <diff>@@ -56,7 +56,7 @@
     &lt;/tr&gt;
     &lt;tr class=&quot;top-aligned-row&quot;&gt;
       &lt;td&gt;&lt;strong&gt;Last Update:&lt;/strong&gt;&lt;/td&gt;
-      &lt;td&gt;Wed Oct 03 17:12:32 +0100 2007&lt;/td&gt;
+      &lt;td&gt;Sun Apr 06 18:32:54 +0100 2008&lt;/td&gt;
     &lt;/tr&gt;
     &lt;/table&gt;
   &lt;/div&gt;</diff>
      <filename>doc/files/History_txt.html</filename>
    </modified>
    <modified>
      <diff>@@ -56,7 +56,7 @@
     &lt;/tr&gt;
     &lt;tr class=&quot;top-aligned-row&quot;&gt;
       &lt;td&gt;&lt;strong&gt;Last Update:&lt;/strong&gt;&lt;/td&gt;
-      &lt;td&gt;Thu Oct 04 10:55:14 +0100 2007&lt;/td&gt;
+      &lt;td&gt;Sun Apr 06 18:32:54 +0100 2008&lt;/td&gt;
     &lt;/tr&gt;
     &lt;/table&gt;
   &lt;/div&gt;
@@ -88,14 +88,13 @@ ActionMailer to successfully deliver its message.
 &lt;/p&gt;
 &lt;p&gt;
 &lt;a href=&quot;../classes/Mailtrap.html&quot;&gt;Mailtrap&lt;/a&gt; makes &lt;b&gt;no&lt;/b&gt; attempt to
-actually deliver messages and, instead, writes them into sequentially
-numbered files on disk (hence the name Mail_trap_).
+actually deliver messages and, instead, writes them into a file (hence the
+name Mail_trap_). Handy tip: use tail -f to see emails being received.
 &lt;/p&gt;
 &lt;p&gt;
 You can configure the hostname (default: localhost) and port (default:
 2525) for the server and also where the messages get written (default:
-/var/tmp). Messages will get written to files named smtp0001.msg,
-smtp0002.msg, and so on.
+/var/tmp/mailtrap.log).
 &lt;/p&gt;
 &lt;h2&gt;FEATURES/PROBLEMS:&lt;/h2&gt;
 &lt;ul&gt;
@@ -113,6 +112,29 @@ smtp0002.msg, and so on.
 &lt;/li&gt;
 &lt;/ul&gt;
 &lt;h2&gt;SYNOPSIS:&lt;/h2&gt;
+&lt;p&gt;
+To use the defaults host:localhost, port:2525, file:/var/log/mailtrap.log
+&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;mailtrap start
+
+&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;
+Customise startup:
+&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;sudo mailtrap start &amp;#8212;host my.host &amp;#8212;port 25 &amp;#8212;once
+&amp;#8212;file=/var/log/messages.txt
+
+&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;
+(sudo because you want to use restricted port 25)
+&lt;/p&gt;
+&lt;p&gt;
+For more info:
+&lt;/p&gt;
 &lt;ul&gt;
 &lt;li&gt;mailtrap &amp;#8212;help (to see Daemonization options)
 
@@ -121,14 +143,13 @@ smtp0002.msg, and so on.
 href=&quot;../classes/Mailtrap.html&quot;&gt;Mailtrap&lt;/a&gt; options)
 
 &lt;/li&gt;
-&lt;li&gt;mailtrap start &amp;#8212;host localhost &amp;#8212;port 8025 &amp;#8212;once
-&amp;#8212;msgdir=/var/tmp
-
-&lt;/li&gt;
 &lt;/ul&gt;
 &lt;h2&gt;REQUIREMENTS:&lt;/h2&gt;
 &lt;ul&gt;
-&lt;li&gt;Rubygems
+&lt;li&gt;Hoe rubygem
+
+&lt;/li&gt;
+&lt;li&gt;Rubygems rubygem
 
 &lt;/li&gt;
 &lt;li&gt;Daemons rubygem
@@ -138,6 +159,9 @@ href=&quot;../classes/Mailtrap.html&quot;&gt;Mailtrap&lt;/a&gt; options)
 
 &lt;/li&gt;
 &lt;/ul&gt;
+&lt;p&gt;
+All these are automatically installed if you use gem install -y
+&lt;/p&gt;
 &lt;h2&gt;INSTALL:&lt;/h2&gt;
 &lt;ul&gt;
 &lt;li&gt;sudo gem install -y mailtrap</diff>
      <filename>doc/files/README_txt.html</filename>
    </modified>
    <modified>
      <diff>@@ -56,7 +56,7 @@
     &lt;/tr&gt;
     &lt;tr class=&quot;top-aligned-row&quot;&gt;
       &lt;td&gt;&lt;strong&gt;Last Update:&lt;/strong&gt;&lt;/td&gt;
-      &lt;td&gt;Wed Oct 03 20:58:33 +0100 2007&lt;/td&gt;
+      &lt;td&gt;Sun Apr 06 18:32:54 +0100 2008&lt;/td&gt;
     &lt;/tr&gt;
     &lt;/table&gt;
   &lt;/div&gt;</diff>
      <filename>doc/files/bin/mailtrap.html</filename>
    </modified>
    <modified>
      <diff>@@ -56,7 +56,7 @@
     &lt;/tr&gt;
     &lt;tr class=&quot;top-aligned-row&quot;&gt;
       &lt;td&gt;&lt;strong&gt;Last Update:&lt;/strong&gt;&lt;/td&gt;
-      &lt;td&gt;Thu Oct 04 11:17:27 +0100 2007&lt;/td&gt;
+      &lt;td&gt;Sun Apr 06 19:17:41 +0100 2008&lt;/td&gt;
     &lt;/tr&gt;
     &lt;/table&gt;
   &lt;/div&gt;</diff>
      <filename>doc/files/lib/mailtrap_rb.html</filename>
    </modified>
    <modified>
      <diff>@@ -21,6 +21,7 @@
   &lt;h1 class=&quot;section-bar&quot;&gt;Classes&lt;/h1&gt;
   &lt;div id=&quot;index-entries&quot;&gt;
     &lt;a href=&quot;classes/Mailtrap.html&quot;&gt;Mailtrap&lt;/a&gt;&lt;br /&gt;
+    &lt;a href=&quot;classes/Mailtrap/LogParser.html&quot;&gt;Mailtrap::LogParser&lt;/a&gt;&lt;br /&gt;
   &lt;/div&gt;
 &lt;/div&gt;
 &lt;/body&gt;</diff>
      <filename>doc/fr_class_index.html</filename>
    </modified>
    <modified>
      <diff>@@ -24,6 +24,7 @@
     &lt;a href=&quot;files/README_txt.html&quot;&gt;README.txt&lt;/a&gt;&lt;br /&gt;
     &lt;a href=&quot;files/bin/mailtrap.html&quot;&gt;bin/mailtrap&lt;/a&gt;&lt;br /&gt;
     &lt;a href=&quot;files/lib/mailtrap_rb.html&quot;&gt;lib/mailtrap.rb&lt;/a&gt;&lt;br /&gt;
+    &lt;a href=&quot;files/lib/mailtrap/log_parser_rb.html&quot;&gt;lib/mailtrap/log_parser.rb&lt;/a&gt;&lt;br /&gt;
   &lt;/div&gt;
 &lt;/div&gt;
 &lt;/body&gt;</diff>
      <filename>doc/fr_file_index.html</filename>
    </modified>
    <modified>
      <diff>@@ -22,6 +22,7 @@
   &lt;div id=&quot;index-entries&quot;&gt;
     &lt;a href=&quot;classes/Mailtrap.html#M000002&quot;&gt;accept (Mailtrap)&lt;/a&gt;&lt;br /&gt;
     &lt;a href=&quot;classes/Mailtrap.html#M000001&quot;&gt;new (Mailtrap)&lt;/a&gt;&lt;br /&gt;
+    &lt;a href=&quot;classes/Mailtrap/LogParser.html#M000005&quot;&gt;parse (Mailtrap::LogParser)&lt;/a&gt;&lt;br /&gt;
     &lt;a href=&quot;classes/Mailtrap.html#M000004&quot;&gt;serve (Mailtrap)&lt;/a&gt;&lt;br /&gt;
     &lt;a href=&quot;classes/Mailtrap.html#M000003&quot;&gt;write (Mailtrap)&lt;/a&gt;&lt;br /&gt;
   &lt;/div&gt;</diff>
      <filename>doc/fr_method_index.html</filename>
    </modified>
    <modified>
      <diff>@@ -5,12 +5,12 @@
 
 &lt;!--
 
-     rubymatt's mailtrap-0.1.0 Documentation
+     simplyruby's mailtrap-0.2.1 Documentation
 
   --&gt;
 &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
 &lt;head&gt;
-  &lt;title&gt; rubymatt's mailtrap-0.1.0 Documentation&lt;/title&gt;
+  &lt;title&gt; simplyruby's mailtrap-0.2.1 Documentation&lt;/title&gt;
   &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
 &lt;/head&gt;
 &lt;frameset rows=&quot;20%, 80%&quot;&gt;</diff>
      <filename>doc/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,10 @@
-
 require 'rubygems'
 require 'daemons'
 require 'socket'
 require 'trollop'
 
+$:.unshift File.expand_path(File.join(File.dirname(__FILE__)))
+
 #
 # Mailtrap creates a TCP server that listens on a specified port for SMTP
 # clients. Accepts the connection and talks just enough of the SMTP protocol</diff>
      <filename>lib/mailtrap.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>248d8efd9e55242d2b5da06fe873c9c13f03b671</id>
    </parent>
  </parents>
  <author>
    <name>Ashley Moran</name>
    <email>ashley.moran@patchspace.co.uk</email>
  </author>
  <url>http://github.com/ashleymoran/mailtrap/commit/fa975934c38f737f4ea2fd7219bacc9d8649b636</url>
  <id>fa975934c38f737f4ea2fd7219bacc9d8649b636</id>
  <committed-date>2008-04-06T11:24:34-07:00</committed-date>
  <authored-date>2008-04-06T11:24:34-07:00</authored-date>
  <message>Added Mailtrap::LogParser for turning Mailtrap log files into
an array of TMail::Mail objects - useful for inspecting the file
for testing purposes.</message>
  <tree>d01b659063df9848ad7c26e923d3491f9b8bbb66</tree>
  <committer>
    <name>Ashley Moran</name>
    <email>ashley.moran@patchspace.co.uk</email>
  </committer>
</commit>
