Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Commit

Permalink
Recognize CC an BCC addresses as well
Browse files Browse the repository at this point in the history
  • Loading branch information
frenkel committed Oct 2, 2015
1 parent ecc38be commit b084fd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## Brimir 0.6.1 (2015-10-02)
### Changed
- A number of missing German translations were contributed by Alexander Jackson.
- CC and BCC addresses are now recognized as incoming address as well.
### Fixed
- Prevented errors when using draft sharing.

Expand Down
3 changes: 2 additions & 1 deletion app/mailers/ticket_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def receive(email)

else

to_email_address = EmailAddress.find_first_verified_email(email.to)
to_email_address = EmailAddress.find_first_verified_email(
email.to.to_a + email.cc.to_a + email.bcc.to_a)

# add new ticket
ticket = Ticket.create({
Expand Down

0 comments on commit b084fd6

Please sign in to comment.