summaryrefslogtreecommitdiff
path: root/lib/feed2imap/config.rb
diff options
context:
space:
mode:
authorlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-12-18 14:19:08 +0000
committerlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-12-18 14:19:08 +0000
commit5dd9e721c8c61f4caadb6c72ad30bc9ff809e489 (patch)
tree009434d16fe1ac5cb2e36b786229ebb969d0a421 /lib/feed2imap/config.rb
parent558b007a39ac7f568a705e076db4e8a458494064 (diff)
downloadfeed2imap-5dd9e721c8c61f4caadb6c72ad30bc9ff809e489.tar.gz
feed2imap-5dd9e721c8c61f4caadb6c72ad30bc9ff809e489.tar.bz2
feed2imap-5dd9e721c8c61f4caadb6c72ad30bc9ff809e489.zip
per-feed dumpdir option
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@120 f70e237a-67f3-0310-a06c-d2b8a7116972
Diffstat (limited to '')
-rw-r--r--lib/feed2imap/config.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/feed2imap/config.rb b/lib/feed2imap/config.rb
index 3aea4bb..4c3a858 100644
--- a/lib/feed2imap/config.rb
+++ b/lib/feed2imap/config.rb
@@ -72,7 +72,7 @@ end
# A configured feed. simple data container.
class ConfigFeed
- attr_reader :name, :url, :imapaccount, :folder, :always_new, :execurl, :filter, :ignore_hash
+ attr_reader :name, :url, :imapaccount, :folder, :always_new, :execurl, :filter, :ignore_hash, :dumpdir
attr_accessor :body
def initialize(f, imapaccount, folder)
@@ -86,6 +86,7 @@ class ConfigFeed
@filter = f['filter']
@ignore_hash = f['ignore-hash'] || false
@freq = @freq.to_i if @freq
+ @dumpdir = f['dumpdir'] || nil
end
def needfetch(lastcheck)