From 113b6f785488dd7eb2d5994b0112d4c653e1ac47 Mon Sep 17 00:00:00 2001 From: Chimrod Date: Wed, 31 Aug 2011 09:34:31 +0200 Subject: Corrected maildir_file_info method --- lib/feed2imap/maildir.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/feed2imap/maildir.rb b/lib/feed2imap/maildir.rb index 317f631..89008cb 100644 --- a/lib/feed2imap/maildir.rb +++ b/lib/feed2imap/maildir.rb @@ -49,6 +49,7 @@ class MaildirAccount return end store_message(dir, date, info) { |f| f.puts(mail) } + puts info end def to_s @@ -163,7 +164,7 @@ class MaildirAccount basename = File.basename(file) colon = basename.rindex(':') - return (colon and basename.slice(colon + 1, -1)) + return (colon and basename[colon + 1 .. -1]) end # Re-written and no longer shamelessly taken from -- cgit v1.2.3