diff --git a/lib/gmail/mailbox.rb b/lib/gmail/mailbox.rb index de3b760..3066049 100644 --- a/lib/gmail/mailbox.rb +++ b/lib/gmail/mailbox.rb @@ -50,6 +50,7 @@ def emails(key_or_opts = :all, opts={}) search.concat ['ON', opts[:on].to_imap_date] if opts[:on] search.concat ['FROM', opts[:from]] if opts[:from] search.concat ['TO', opts[:to]] if opts[:to] + search.concat ['SUBJECT', opts[:subject]] if opts[:subject] end # puts "Gathering #{(aliases[key] || key).inspect} messages for mailbox '#{name}'..."