mirror of
https://github.com/ivabus/pop
synced 2024-12-04 22:15:08 +03:00
fix: use FilterValue
This commit is contained in:
parent
ec14061785
commit
3412cb20d2
1 changed files with 1 additions and 5 deletions
6
email.go
6
email.go
|
@ -26,11 +26,7 @@ func (m Model) sendEmailCmd() tea.Cmd {
|
|||
return func() tea.Msg {
|
||||
attachments := make([]string, len(m.Attachments.Items()))
|
||||
for i, a := range m.Attachments.Items() {
|
||||
at, ok := a.(attachment)
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
attachments[i] = string(at)
|
||||
attachments[i] = a.FilterValue()
|
||||
}
|
||||
err := sendEmail(strings.Split(m.To.Value(), TO_SEPARATOR), m.From.Value(), m.Subject.Value(), m.Body.Value(), attachments)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue