summaryrefslogtreecommitdiff
path: root/lib/feed2imap/maildir.rb
diff options
context:
space:
mode:
authorChimrod <contact+git@chimrod.com>2011-08-31 09:34:31 +0200
committerChimrod <contact+git@chimrod.com>2011-08-31 09:34:31 +0200
commit113b6f785488dd7eb2d5994b0112d4c653e1ac47 (patch)
treedb41b43f82eaf5cefb20b16761a6656176b1949f /lib/feed2imap/maildir.rb
parentcb226e31b19d923c4f06c71db5940bd169c7da38 (diff)
downloadfeed2imap-113b6f785488dd7eb2d5994b0112d4c653e1ac47.tar.gz
feed2imap-113b6f785488dd7eb2d5994b0112d4c653e1ac47.tar.bz2
feed2imap-113b6f785488dd7eb2d5994b0112d4c653e1ac47.zip
Corrected maildir_file_info method
Diffstat (limited to '')
-rw-r--r--lib/feed2imap/maildir.rb3
1 files changed, 2 insertions, 1 deletions
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