summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ChangeLog2
-rw-r--r--lib/feed2imap/config.rb1
-rwxr-xr-xtest/tc_config.rb16
3 files changed, 18 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 51a4a42..be85722 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,6 @@
Feed2Imap 0.4 (date unknown)
============================
-* IMAPS now works thanks to a bug fixed in ruby 1.9.
+* You can now use WordPress's feed:http://something urls in feed2imaprc.
* Switched to a real SGML parser for the text version.
* Much better output for the text version of emails.
* New feed2imap-cleaner to remove old mails seen but not flagged
diff --git a/lib/feed2imap/config.rb b/lib/feed2imap/config.rb
index a784b91..d61d415 100644
--- a/lib/feed2imap/config.rb
+++ b/lib/feed2imap/config.rb
@@ -74,5 +74,6 @@ class ConfigFeed
def initialize(name, url, imapaccount, folder)
@name, @url, @imapaccount, @folder = name, url, imapaccount, folder
+ url.sub!(/^feed:/, '')
end
end
diff --git a/test/tc_config.rb b/test/tc_config.rb
index ba70b33..ce910e9 100755
--- a/test/tc_config.rb
+++ b/test/tc_config.rb
@@ -25,6 +25,15 @@ feeds:
url: http://something2
target: imaps://login:pasword@ezaezae/Feeds/B
EOF
+CONFFEED = <<EOF
+feeds:
+ - name: feed1
+ url: feed:http://something
+ target: imap://login:pasword@ezaezae/Feeds/A
+ - name: feed2
+ url: http://something2
+ target: imaps://login:pasword@ezaezae/Feeds/B
+EOF
class ConfigTest < Test::Unit::TestCase
def test_cache
@@ -45,4 +54,11 @@ class ConfigTest < Test::Unit::TestCase
conf = F2IConfig::new(sio)
assert_equal(2, conf.imap_accounts.length)
end
+
+ def test_feedurls
+ sio = StringIO::new CONFFEED
+ conf = F2IConfig::new(sio)
+ assert_equal('http://something', conf.feeds[0].url)
+ assert_equal('http://something2', conf.feeds[1].url)
+ end
end
tr>2012-09-06Update COPYING to reflect man page and project page.1.1.2Jason A. Donenfeld1-10/+11 2012-09-06Use BINDIR, MANDIR and SYSCONFDIR vars in MakefileChristophe Fergeau1-5/+8 2012-09-06Add dependencies to README.Jason A. Donenfeld1-0/+8 2012-09-06Change debian name.Jason A. Donenfeld5-5/+4 2012-09-06Use more normal sleep variant.1.1.1Jason A. Donenfeld1-1/+1 2012-09-06Use --noreport instead of head -n -2 for tree so that it works on mac.Jason A. Donenfeld1-1/+1 2012-09-05Be sure to explicitly state that install is a phony target.Jason A. Donenfeld1-0/+2 2012-09-05Bump debian version horribly.1.1Jason A. Donenfeld2-2/+2 2012-09-04No echo mode.Jason A. Donenfeld2-16/+42 2012-09-04Properly quote the path too.Jason A. Donenfeld1-1/+1 2012-09-04Allow passwords having spaces to go unbroken to the clipboard.Bernardo Freitas Paulo da Costa1-1/+1 2012-09-04Separate out the massive git example.Jason A. Donenfeld1-10/+14 2012-09-04Prepare for debianification.1.0Jason A. Donenfeld9-4/+60 2012-09-03Fix readme typo.Jason A. Donenfeld1-1/+1 2012-09-03Show program name properly in error message.Jason A. Donenfeld1-1/+1 2012-09-03Move examples into manpage.Jason A. Donenfeld4-93/+224 2012-09-03Make into a real project.Jason A. Donenfeld8-5/+173 2012-09-03Support pass gitJason A. Donenfeld2-1/+15 2012-08-31Add remove synonyms.Jason A. Donenfeld1-2/+2 2012-08-31Use basename in usage.Jason A. Donenfeld1-2/+1 2012-08-19now using gpg_id as a varMatthew Ramirez1-2/+2 2012-08-07Forty five seconds.Jason A. Donenfeld1-1/+1 2012-08-06Deal with klipper and new lines.Jason A. Donenfeld1-3/+19 2012-08-06Update examples.Jason A. Donenfeld1-7/+7 2012-08-06Update readme.Jason A. Donenfeld1-11/+13 2012-08-06Be slicker and more like git.Jason A. Donenfeld1-114/+173