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

Commit b084fd6

Browse files
committed
Recognize CC an BCC addresses as well
1 parent ecc38be commit b084fd6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1313
## Brimir 0.6.1 (2015-10-02)
1414
### Changed
1515
- A number of missing German translations were contributed by Alexander Jackson.
16+
- CC and BCC addresses are now recognized as incoming address as well.
1617
### Fixed
1718
- Prevented errors when using draft sharing.
1819

app/mailers/ticket_mailer.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ def receive(email)
101101

102102
else
103103

104-
to_email_address = EmailAddress.find_first_verified_email(email.to)
104+
to_email_address = EmailAddress.find_first_verified_email(
105+
email.to.to_a + email.cc.to_a + email.bcc.to_a)
105106

106107
# add new ticket
107108
ticket = Ticket.create({

0 commit comments

Comments
 (0)