Fixed nil access.
This commit is contained in:
parent
edb14cdeb6
commit
f9b6e383cf
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class Channel::IMAP < Channel::EmailParser
|
||||||
end
|
end
|
||||||
imap.login( channel[:options][:user], channel[:options][:password] )
|
imap.login( channel[:options][:user], channel[:options][:password] )
|
||||||
end
|
end
|
||||||
if channel[:options][:folder].empty?
|
if !channel[:options][:folder] || channel[:options][:folder].empty?
|
||||||
imap.select('INBOX')
|
imap.select('INBOX')
|
||||||
else
|
else
|
||||||
imap.select( channel[:options][:folder] )
|
imap.select( channel[:options][:folder] )
|
||||||
|
|
Loading…
Reference in a new issue