A minimal email TUI where you read with Markdown and write in Neovim. neomd.ssp.sh/docs
email markdown neovim tui
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix duplicated re: on replying

sspaeti cf1c530b 17af924e

+8 -2
+1 -1
internal/editor/editor.go
··· 108 108 if from != "" { 109 109 s += fmt.Sprintf("# [neomd: from: %s]\n", from) 110 110 } 111 - s += fmt.Sprintf("# [neomd: subject: Re: %s]\n\n---\n\n> **%s** wrote:\n>\n%s\n\n---\n\n", 111 + s += fmt.Sprintf("# [neomd: subject: %s]\n\n---\n\n> **%s** wrote:\n>\n%s\n\n---\n\n", 112 112 subject, originalFrom, quoteLines(originalBody)) 113 113 return s 114 114 }
+7 -1
internal/ui/model.go
··· 2873 2873 } 2874 2874 2875 2875 subject := e.Subject 2876 - if !strings.HasPrefix(strings.ToLower(subject), "re:") { 2876 + low := strings.ToLower(subject) 2877 + hasReplyPrefix := strings.HasPrefix(low, "re:") || 2878 + strings.HasPrefix(low, "aw:") || 2879 + strings.HasPrefix(low, "sv:") || 2880 + strings.HasPrefix(low, "vs:") 2881 + if !hasReplyPrefix { 2877 2882 subject = "Re: " + subject 2878 2883 } 2879 2884 ··· 2999 3004 if strings.HasPrefix(t, "# [neomd: to:") || 3000 3005 strings.HasPrefix(t, "# [neomd: cc:") || 3001 3006 strings.HasPrefix(t, "# [neomd: bcc:") || 3007 + strings.HasPrefix(t, "# [neomd: from:") || 3002 3008 strings.HasPrefix(t, "# [neomd: subject:") { 3003 3009 continue 3004 3010 }