auto_bcc.lua
1-- auto_bcc.lua
2-- Automatically adds a BCC address to every email you compose.
3-- Change the address below to your own archive/backup address.
4
5local matcha = require("matcha")
6
7local bcc_address = "archive@example.com"
8
9matcha.on("composer_updated", function(state)
10 if state.bcc == "" then
11 matcha.set_compose_field("bcc", bcc_address)
12 end
13end)