Skip to content

Commit

Permalink
Add the Content-Base hedaer to the default template
Browse files Browse the repository at this point in the history
This field is often used to provide a direct link to the feed item by
some MUA. Thunderbird is one of those which behaves like that.
  • Loading branch information
StayPirate committed May 3, 2022
1 parent 830a78a commit 87d6993
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions template/template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Subject: [rss2email] {{.Subject}}
X-RSS-Link: {{.Link}}
X-RSS-Feed: {{.Feed}}
X-RSS-GUID: {{.RSSItem.GUID}}
Content-Base: {{.Link}}
Mime-Version: 1.0

--21ee3da964c7bf70def62adb9ee1a061747003c026e363e47231258c48f1
Expand Down
4 changes: 2 additions & 2 deletions template/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "testing"

func TestTemplate(t *testing.T) {
content := EmailTemplate()
if len(content) != 2241 {
t.Fatalf("unexpected template size 2241 != %d", len(content))
if len(content) != 2265 {
t.Fatalf("unexpected template size 2265 != %d", len(content))
}
}

0 comments on commit 87d6993

Please sign in to comment.