From 74e39f415c7d7a7bb2f61700b07b854a212446b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Wed, 1 Dec 2010 21:23:25 +0100 Subject: Take the 'group' value if no target is given --- lib/feed2imap/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/feed2imap/config.rb b/lib/feed2imap/config.rb index ac83be1..3e43292 100644 --- a/lib/feed2imap/config.rb +++ b/lib/feed2imap/config.rb @@ -88,7 +88,7 @@ class F2IConfig def push_feed(target) Proc.new do |f| if f.has_key? 'group' - ftarget = calc_target(target, f['target'].to_s) + ftarget = calc_target(target, (f.has_key? 'target') ? f['target'].to_s : f['group'].to_s) f['feeds'].each &(push_feed ftarget) elsif f['disable'].nil? ftarget = calc_target(target, (f.has_key? 'target') ? f['target'].to_s : f['name'].to_s) -- cgit v1.2.3