From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.204.20.129 with SMTP id f1cs27995bkb; Sat, 9 Oct 2010 14:00:52 -0700 (PDT) Received: by 10.231.146.134 with SMTP id h6mr3501235ibv.170.1286658051798; Sat, 09 Oct 2010 14:00:51 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 16si13239972ibc.12.2010.10.09.14.00.51; Sat, 09 Oct 2010 14:00:51 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 1EF27197833E; Sat, 9 Oct 2010 17:00:51 -0400 (EDT) Received: from mail-yx0-f178.google.com (mail-yx0-f178.google.com [209.85.213.178]) by rubyforge.org (Postfix) with ESMTP id EA2A7185836B for ; Sat, 9 Oct 2010 16:51:35 -0400 (EDT) Received: by yxd5 with SMTP id 5so766550yxd.23 for ; Sat, 09 Oct 2010 13:51:35 -0700 (PDT) Received: by 10.236.95.175 with SMTP id p35mr8562786yhf.40.1286657495610; Sat, 09 Oct 2010 13:51:35 -0700 (PDT) Received: from nagato.alloy-d.net (pool-71-125-132-193.cmdnnj.east.verizon.net [71.125.132.193]) by mx.google.com with ESMTPS id t74sm3622869yhf.44.2010.10.09.13.51.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 09 Oct 2010 13:51:34 -0700 (PDT) Received: from adam by nagato.alloy-d.net with local (Exim 4.72) (envelope-from ) id 1P4gOJ-000133-Ex; Sat, 09 Oct 2010 16:51:39 -0400 Content-Type: multipart/mixed; boundary="===============7792934661377894335==" MIME-Version: 1.0 X-Mercurial-Node: 42ef20fde16d0aef1f1315947094ac9977f63e73 Message-Id: <42ef20fde16d0aef1f13.1286657291@nagato.alloy-d.net> User-Agent: Mercurial-patchbomb/1.6.4 Date: Sat, 09 Oct 2010 16:48:11 -0400 From: Adam Lloyd To: sup-devel@rubyforge.org Subject: [sup-devel] [PATCH] [mq]: mbox-path-fix X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --===============7792934661377894335== Content-Type: text/x-patch; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename=sup.patch diff --git a/lib/sup/mbox.rb b/lib/sup/mbox.rb --- a/lib/sup/mbox.rb +++ b/lib/sup/mbox.rb @@ -90,8 +90,8 @@ end def store_message date, from_email, &block - need_blank = File.exists?(@filename) && !File.zero?(@filename) - File.open(@filename, "ab") do |f| + need_blank = File.exists?(@path) && !File.zero?(@path) + File.open(@path, "ab") do |f| f.puts if need_blank f.puts "From #{from_email} #{date.asctime}" yield f --===============7792934661377894335== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --===============7792934661377894335==--