summaryrefslogtreecommitdiff
path: root/lib/feed2imap
diff options
context:
space:
mode:
Diffstat (limited to 'lib/feed2imap')
-rw-r--r--lib/feed2imap/imap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/feed2imap/imap.rb b/lib/feed2imap/imap.rb
index 5317eb9..dca2ed4 100644
--- a/lib/feed2imap/imap.rb
+++ b/lib/feed2imap/imap.rb
@@ -70,7 +70,7 @@ class ImapAccount
# use given port if port given
port = uri.port if uri.port
@connection = Net::IMAP::new(uri.host, port, usessl)
- user, password = uri.userinfo.split(':',2)
+ user, password = URI::unescape(uri.userinfo).split(':',2)
@connection.login(user, password)
self
end