* [sup-devel] [PATCH] [mq]: mbox-path-fix
@ 2010-10-09 20:48 Adam Lloyd
2010-10-09 20:54 ` Adam Lloyd
0 siblings, 1 reply; 2+ messages in thread
From: Adam Lloyd @ 2010-10-09 20:48 UTC (permalink / raw)
To: sup-devel
[-- Attachment #1: sup.patch --]
[-- Type: text/x-patch, Size: 460 bytes --]
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
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [sup-devel] [PATCH] [mq]: mbox-path-fix
2010-10-09 20:48 [sup-devel] [PATCH] [mq]: mbox-path-fix Adam Lloyd
@ 2010-10-09 20:54 ` Adam Lloyd
0 siblings, 0 replies; 2+ messages in thread
From: Adam Lloyd @ 2010-10-09 20:54 UTC (permalink / raw)
To: sup-devel
Argh, /me is quite embarrassed.
Please ignore this; I'll resend my patch properly. Apologies for the noise!
-Adam
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-09 21:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-09 20:48 [sup-devel] [PATCH] [mq]: mbox-path-fix Adam Lloyd
2010-10-09 20:54 ` Adam Lloyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox