Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sonots committed Mar 7, 2016
1 parent bcc95fe commit acca71e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.md
Expand Up @@ -205,10 +205,23 @@ log server("/etc/td-agent/td-agent.conf")
</match>


### Dynamic identiciation of mail destination (to, cc, bcc)

## TODO
You can dynamically identify mail destination (to, cc, bcc) from event records as:

* add config "mail_text_format"

```
<match mail.test>
type mail
from from@example.com
to_key to
cc_key cc
bcc_key bcc
....
</match>
```

With this example, `to`, `cc`, `bcc` are dynamically extracted from `record["to"]`, `record["cc"]`, `record["bcc"]` respectively.

## ChangeLog

Expand Down

0 comments on commit acca71e

Please sign in to comment.