bamboo icon indicating copy to clipboard operation
bamboo copied to clipboard

[Proposal] Add Optional Callback for User, to load existing sent emails.

Open apoorv-2204 opened this issue 1 year ago • 0 comments

I would like to purpose a feature , where if dev has existing sent emails, it can be loaded too. Its helpful to debug in dev environment , where there many automated emails, with dynamic content?. As of now, if app goes through shutdown, no sent mails are set.

To achieve this once can set a callback function, to be invoked during the agent start?

image

  def start_link(opts) do
    Agent.start_link(fn ->
      case opts.load_all_sent_mails do
        nil -> []
        fx-> fx.()
      end
    end, name: __MODULE__)
  end


apoorv-2204 avatar Aug 15 '23 14:08 apoorv-2204