Skip to content

Commit

Permalink
Fixed #36, added From: in editor view
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Feb 19, 2022
1 parent 3d97580 commit c89a201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tui/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ func (t *TUI) OpenArticle(article *models.Article, readOnly bool) (models.Articl
defer os.Remove(tmpFile.Name())

tmpContent := []byte(fmt.Sprintf(
"Subject: %s\nNewsgroup: %s\n= = = = = =\n%s",
article.Subject, article.Newsgroup, article.Body))
"Subject: %s\nNewsgroup: %s\nFrom: %s\n= = = = = =\n%s",
article.Subject, article.Newsgroup, article.From, article.Body))
if _, err = tmpFile.Write(tmpContent); err != nil {
return *article, err
}
Expand Down

0 comments on commit c89a201

Please sign in to comment.