lib/gmail/mailbox.rb in gmail-0.7.0 vs lib/gmail/mailbox.rb in gmail-0.7.1

- old
+ new

@@ -32,10 +32,10 @@ search = MAILBOX_ALIASES[args.shift].dup opts = args.first.is_a?(Hash) ? args.first : {} opts[:after] and search.concat ['SINCE', Net::IMAP.format_date(opts[:after])] opts[:before] and search.concat ['BEFORE', Net::IMAP.format_date(opts[:before])] - opts[:on] and search.concat ['ON', opts[:on].to_imap_date] + opts[:on] and search.concat ['ON', Net::IMAP.format_date(opts[:on])] opts[:from] and search.concat ['FROM', opts[:from]] opts[:to] and search.concat ['TO', opts[:to]] opts[:subject] and search.concat ['SUBJECT', opts[:subject]] opts[:label] and search.concat ['LABEL', opts[:label]] opts[:attachment] and search.concat ['HAS', 'attachment']