Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

94 add tags#99

Merged
skx merged 9 commits intomasterfrom
94-add-tags
May 4, 2022
Merged

94 add tags#99
skx merged 9 commits intomasterfrom
94-add-tags

Conversation

@skx
Copy link
Copy Markdown
Owner

@skx skx commented May 4, 2022

This pull-request adds the ability for users to add a tag value to their feed, and use that in the email-template which is sent.

By default the tag isn't present, but if it is configured it will appear in the subject, after the [rss2email] marker:

  Subject: [rss2email] {{if .Tag}}{{.Tag}} {{end}}{{.Subject}}

The tag can be added like so:

$ cat ~/.rss2email/feeds.txt
https://rachelbythebay.com/w/atom.xml
  - Tag: people
https://blog.steve.fi/index.rss
  - Tag: people

There is only support for a single Tag: value in the configuration file, however if you wish you can set a value such as foo,bar and use the split function which is available within the template to append values & etc.

@skx skx merged commit 213af8e into master May 4, 2022
@skx skx deleted the 94-add-tags branch May 4, 2022 03:21
@skx skx mentioned this pull request May 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant