lib/ppl/command/mutt.rb in ppl-1.23.0 vs lib/ppl/command/mutt.rb in ppl-1.24.0
- old
+ new
@@ -60,12 +60,12 @@
end
def match_by_email_address(contact, query)
matches = contact.email_addresses.select do |email_address|
if @options[:ignore_case]
- email_address.downcase.include? query.downcase
+ email_address.address.downcase.include? query.downcase
else
- email_address.include? query
+ email_address.address.include? query
end
end
if matches.length > 0
contact.email_addresses = matches
true