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

Add per-feed notify option#76

Merged
skx merged 2 commits intoskx:masterfrom
avm99963:feat/73
Jan 2, 2022
Merged

Add per-feed notify option#76
skx merged 2 commits intoskx:masterfrom
avm99963:feat/73

Conversation

@avm99963
Copy link
Copy Markdown
Contributor

@avm99963 avm99963 commented Dec 29, 2021

This allows folks to set custom per-feed recipients via the "notify"
option, which if set will be used instead of the recipients set in the
cron or daemon command arguments.

Fixed: #73

This allows folks to set custom per-feed recipients via the "notify"
option, which will replace the recipients set in the cron command
arguments.

Fixed: skx#73
@duckunix
Copy link
Copy Markdown

Looks good to me, but do not forget to update the documentation, i.e. README.md

@avm99963
Copy link
Copy Markdown
Contributor Author

I think we don't need any more changes to the docs, since there is a pointer to run rss2email help config, where I've added a description of the notify option.

rss2email/README.md

Lines 81 to 90 in 43cb238

The configuration file in its simplest form is nothing more than a list of URLs, one per line. However there is also support for adding per-feed options:
https://foo.example.com/
- key:value
https://foo.example.com/
- key2:value2
This is documented and explained in the integrated help:
$ rss2email help config

@skx
Copy link
Copy Markdown
Owner

skx commented Dec 29, 2021

A quick glance looks good, but I'm not 100% awake having just returned from a trip/holiday.

Only thing that jumps out is that you changed the comment(s) referring to "cron command", but there's also the "daemon command" (which I use personally, as I run this software inside a docker container.

My suspicion would be that both would do the expected thing, because your real change is in the shared processor/ code. But if that is the case limiting the comment to mention cron-only is a mistake. Perhaps something along the lines of "unless overridden by a per-feed configuration ..", or similar might make more sense? That way you're not specific to "cron" alone.

@skx skx self-assigned this Dec 29, 2021
@skx skx added the enhancement New feature or request label Dec 29, 2021
@avm99963
Copy link
Copy Markdown
Contributor Author

avm99963 commented Jan 1, 2022

Done! Yup, in theory both commands should behave in the same way, so this was indeed a mistake. It should be fixed in the last commit.

btw, I also run rss2email via Docker with the daemon command, so I wonder why I forgot about its existence :P Thanks for catching that, I completely messed up!

@avm99963
Copy link
Copy Markdown
Contributor Author

avm99963 commented Jan 1, 2022

Hmmm, I don't remember how GitHub works like when merging PRs (I usually use Gerrit), but I've just changed the main message in this PR in case it's used as the commit message when/if the PR gets merged.

@skx
Copy link
Copy Markdown
Owner

skx commented Jan 2, 2022

You didn't mess up at all, you made a useful change in the code and I appreciate all contributions be they big or small. It's fun to see other people using this tool, and it's awesome to see people take time out of their busy lives to make changes to it.

Looks good to me. Will do a bit of a manual test later today and merge after that checks out!

@skx skx merged commit bb52ba7 into skx:master Jan 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: Allow for per-feed email addresses

3 participants