From 8cc84880e2fd8116125b911c571a0a6695853753 Mon Sep 17 00:00:00 2001 From: Jason Amster Date: Mon, 30 Jun 2014 12:14:16 -0400 Subject: [PATCH] adding subject --- lib/gmail/mailbox.rb | 1 + 1 file changed, 1 insertion(+) 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}'..."