Save email body to tmp file when error (#64)

* store email body when send fails

* increase error display duration

* feat: save email body

---------

Co-authored-by: Allan Martinez <martinezallan123@gmail.com>
This commit is contained in:
Maas Lalani
2024-04-25 10:23:52 -04:00
committed by GitHub
parent 7240e0dbd9
commit ef84570048
4 changed files with 23 additions and 26 deletions

View File

@@ -213,7 +213,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.state = editingFrom
m.focusActiveInput()
m.err = msg
return m, clearErrAfter(5 * time.Second)
return m, clearErrAfter(10 * time.Second)
case clearErrMsg:
m.err = nil
case tea.KeyMsg: