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
|
||||
imap.login( channel[:options][:user], channel[:options][:password] )
|
||||
end
|
||||
if channel[:options][:folder].empty?
|
||||
if !channel[:options][:folder] || channel[:options][:folder].empty?
|
||||
imap.select('INBOX')
|
||||
else
|
||||
imap.select( channel[:options][:folder] )
|
||||
|
|
Loading…
Reference in a new issue