Application transforming rss feeds into email by directly pushing the entries into IMP folders. This application is an adaption of the rss2imap Python script to Rust.
How to use ?
The simplest way to understand what to do is just to run rrss2imap --help
It should output something like
FLAGS: -h, --help Prints help information -V, --version Prints version information
SUBCOMMANDS: add Adds a new feed given its url delete Delete the given feed email Changes email address used in feed file to be the given one export Export subscriptions as opml file help Prints this message or the help of the given subcommand(s) import import the given opml file into subscriptions list List all feeds configured new Creates a new feedfile with the given email address reset Reset feedfile (in other words, remove everything) run Run feed parsing and transformation
Which give you a glimpse of what will happen
Each of these commands also provide some help, when run with the same --help
flag.
The important operations to memorize are obviously
rrss2imap new
Creates a new config.json
file. At init time, the config file will only contains settings
element
with the email address set. You have to set
- the used imap server
** with user login and password
** and security settings (secure should contain
{"Yes": secure port}
for imap/s or{"No": unsecure port}
for simple imap) - the default config ** folder will be the full path to an imap folder where entries will fall in ** email will be the recipient email address (which may not be yours for easier filtering) ** Base64 image inlining
- feeds is the list of all rss feeds that can be added
rrss2imap add
This command will add a new feed to your config. You can directly set here the email recipient as well as the folder (but not the base64 image inlining parameter)
rrss2imap run
THis is the main command. It will
- get all rss/atom feed contents
- List all new entries in these feeds
- Transform these entries into valid email messages
- Push these mail messages directly on IMAP server
rrss2imap list
Displays a list of the rss feeds. Here is an example
0 : http://tontof.net/?rss (to: Nicolas Delsaux <nicolas.delsaux@gmx.fr> (default)) RSS/rrss2imap (default)
1 : https://www.brothers-brick.com/feed/ (to: Nicolas Delsaux <nicolas.delsaux@gmx.fr> (default)) RSS/rrss2imap (default)
2 : https://nicolas-delsaux.hd.free.fr/rss-bridge/?action=display&bridge=LesJoiesDuCode&format=AtomFormat (to: Nicolas Delsaux <nicolas.delsaux@gmx.fr> (default)) RSS/rrss2imap (default)
Please notice that each entry has an associated number, which is the one to enter when running rrss2imap delete <NUMBER>
config.json
format
A typical feedfile will look like this