Table of Contents
Newsboat is an RSS/Atom feedreader. RSS and Atom are a number of widely-used XML formats to transmit, publish and syndicate articles, for example news or blog articles. Newsboat is designed to be used on text terminals on Unix or Unix-like systems such as GNU/Linux, FreeBSD or macOS.
Newsboat has been tested on Linux (with glibc and musl-libc), FreeBSD and macOS.
NetBSD is currently not supported, due to technical limitations in the iconv()
implementation.
"Newsboat" is a play on the name of its ancestor, "Newsbeuter". They’re spelled quite differently, but sound similar. ("Newsbeuter" is a pun on German word "wildbeuter"; "newsboat" is an English word.)
Newsboats were the vessels that collected and delivered news shuffling between boats in the port. Newsboat the program will collect the news for you, just like its namesakes did back in the day.
This chapter describes how to compile and install newsboat from source.
Newsboat is available as source package. Simply go to https://newsboat.org/ and download the latest source package, which is usually in the .tar.gz file format. Alternatively, you can check out the latest development source tree from the newsboat Git repository by running the following command on the commandline:
git clone git://github.com/newsboat/newsboat.git
Newsboat depends on a number of libraries to function correctly. This table lists these dependencies. Please be aware that the list libraries may themselves depend on other libraries. These dependencies are not listed here. Please also be aware that you need a recent C++ compiler.
If you intend to modify and regenerate the filter language parser, you will also
need Coco/R for C++, which you can download from
http://www.ssw.uni-linz.ac.at/coco/. The Coco/R binary must be installed as
cococpp
in your PATH
. Debian users only need to install the package
coco-cpp
. Use the regenerate-parser
make target to regenerate the necessary
files.
After you’ve downloaded and installed the dependencies mentioned above, you can
start compiling and installing newsboat. To compile newsboat, simply run
make
in the source tree. After a short time, this should complete
successfully, and you can go on with installation by running make install
. By
default, this will install the newsboat
binary to the /usr/local/bin
directory. You can provide an alternative installation path using the prefix
parameter, e.g. running make install prefix=/opt/newsboat
will install the
binary to the directory /opt/newsboat/bin.
After you’ve installed newsboat, you can run it for the first time by typing
newsboat
on your command prompt. This will bring you the following message:
Error: no URLs configured. Please fill the file /home/ak/.newsboat/urls with RSS feed URLs or import an OPML file.
newsboat 2.10 usage: ./newsboat [-i <file>|-e] [-u <urlfile>] [-c <cachefile>] [-x <command> ...] [-h] -e, --export-to-opml export OPML feed to stdout -r, --refresh-on-start refresh feeds on start -i, --import-from-opml=<file> import OPML file -u, --url-file=<urlfile> read RSS feed URLs from <urlfile> -c, --cache-file=<cachefile> use <cachefile> as cache file -C, --config-file=<configfile> read configuration from <configfile> -X, --vacuum compact the cache -x, --execute=<command>... execute list of commands -q, --quiet quiet startup -v, --version get version information -l, --log-level=<loglevel> write a log with a certain loglevel (valid values: 1 to 6) -d, --log-file=<logfile> use <logfile> as output log file -E, --export-to-file=<file> export list of read articles to <file> -I, --import-from-file=<file> import list of read articles from <file> -h, --help this help
This means that newsboat can’t start without any configured feeds. To add
feeds to newsboat, you can either add URLs to the configuration file
$HOME/.newsboat/urls or you can import an OPML file by running newsboat -i
blogroll.opml
. To manually add URLs, open the file with your favorite text
editor and add the URLs, one per line:
http://rss.cnn.com/rss/cnn_topstories.rss http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
If you need to add URLs that have restricted access via username/password, simply provide the username/password in the following way:
http://username:password@hostname.domain.tld/feed.rss
In order to protect username and password, make sure that $HOME/.newsboat/urls is only readable by you and, optionally, your group:
$ chmod u=rw,g=r,o= ~/.newsboat/urls
Newsboat also makes sure that usernames and passwords within URLs aren’t displayed in its user interface. In case there is a @ in the username, you need to write it as %40 instead so that it can be distinguished from the @ that separates the username/password part from the hostname part.
You can also configure local files as feeds, by prefixing the local path with
file://
and adding it to the $HOME/.newsboat/urls file:
file:///var/log/rss_eventlog.xml
Now you can run newsboat again, and it will present you with a controllable list of the URLs that you configured previously. You can now start downloading the feeds, either by pressing "R" to download all feeds, or by pressing "r" to download the currently selected feed. You can then select a feed you want to read, and by pressing "Enter", you can go to the article list for this feed. This works even while the downloading is still in progress.
You can now see the list of available articles by their title. A "N" on the
left indicates that an article wasn’t read yet. Pressing "Enter" brings you to
the content of the article. You can scroll through this text, and also run
a browser (default: lynx) to view the complete article if the content is empty
or just an abstract or a short description. Each URL in the article has
a number next to it; to open it, type #
and then the number, then press
"Enter". For single-digit links, like 3, you can just press that number on the
keyboard.
Pressing "q" brings you back to the article list, and pressing "q" again brings you back to the feed list. Pressing "q" a third time then closes newsboat.
Newsboat caches the article that it downloads. This means that when you start
newsboat again and reload a feed, the old articles can still be read even if
they aren’t in the current RSS feeds anymore. Optionally you can configure how
many articles shall be preserved by feed so that the article backlog doesn’t
grow endlessly (see max-items
below).
Newsboat also uses a number of measures to preserve the users' and feed
providers' bandwidth, by trying to avoid unnecessary feed downloads through the
use of conditional HTTP downloading. It saves every feed’s "Last-Modified" and
"ETag" response header values (if present) and advises the feed’s HTTP server
to only send data if the feed has been updated by modification date/time or
"ETag" header. This doesn’t only make feed downloads for RSS feeds with no new
updates faster, it also reduces the amount of transferred data per request.
Conditional HTTP downloading can be optionally disabled per feed by using the
always-download
configuration command.
Several aspects of newsboat’s behaviour can be configured via a configuration
file, by default $HOME/.newsboat/config. This configuration file contains
lines in the form <config-command> <arg1> ...
. The configuration file can
also contain comments, which start with the #
character and go as far as the
end of line. If you need to enter a configuration argument that contains
spaces, use quotes ("
) around the whole argument. It’s even possible to
integrate the output of external commands into the configuration. The text
between two backticks (`
) is evaluated as shell command, and its output is
put on its place instead. This works like backtick evaluation in
Bourne-compatible shells and allows users to use external information from the
system within the configuration. Backticks can be escaped with a backslash
(\`
); in that case, they’ll be replaced with a literal backtick in the
configuration.
Searching for articles is possible in newsboat, too. Just press the "/" key, enter your search phrase, and the title and content of all articles are searched for it. When you do a search from the list of feeds, all articles of all feeds will be searched. When you do a search from the article list of a feed, only the articles of the currently viewed feed are searched. When opening an article from a search result dialog, the search phrase is highlighted.
The history of all your searches is saved to the filesystem, to
~/.newsboat/history.search. By default, the last 100 search phrases are
stored, but this limited can be influenced through the history-limit
configuration variable. To disable search history saving, simply set the
history-limit
to 0
.
Table 1. Configuration Commands
Configuration Command | Argument(s) | Default | Description | Example |
---|---|---|---|---|
[yes/no] | no | If set to | always-display-description yes | |
<url> [<url>] | n/a | The parameters of this configuration command are one or more RSS URLs. These URLs will always get downloaded, regardless of their Last-Modified timestamp and ETag header. | always-download "http://www.n-tv.de/23.rss" | |
<sortfield>[-<direction>] | date | The <sortfield> specifies which article property shall be used for sorting, currently available are: | article-sort-order author-desc | |
<format> | "%4i %f %D %6L %?T?|%-17T| ?%t" | This variable defines the format of entries in the article list. See the respective section in the documentation for more information on format strings. | articlelist-format "%4i %f %D %?T?|%-17T| ?%t" | |
<format> | "%N %V - Articles in feed '%T' (%u unread, %t total) - %U" | Format of the title in article list. See "Format Strings" section of Newsboat manual for details on available formats. | articlelist-title-format "Articles in feed '%T' (%u unread)" | |
[yes/no] | no | If set to | auto-reload yes | |
<key> <operation> [<dialog>] | n/a | Bind key <key> to <operation>. This means that whenever <key> is pressed, then <operation> is executed (if applicable in the current dialog). A list of available operations can be found below. Optionally, you can specify a dialog. If you specify one, the key binding will only be added to the specified dialog. Available dialogs are | bind-key ^R reload-all | |
[yes/no] | no | If set to | bookmark-autopilot yes | |
<command> | "" | If set, then <command> will be used as bookmarking plugin. See the documentation on bookmarking for further information. | bookmark-cmd "~/bin/delicious-bookmark.sh" | |
[yes/no] | no | If set to | bookmark-interactive yes | |
<command> | %BROWSER, otherwise lynx | Set the browser command to use when opening an article in the browser. If BROWSER environment variable is set, it will be used as the default browser, otherwise lynx will be used. Any occurrences of | browser "w3m %u" | |
<path> | "~/.newsboat/cache.db" | This configuration option sets the cache file. This is especially useful if the filesystem of your home directory doesn’t support proper locking (e.g. NFS). | cache-file "/tmp/testcache.db" | |
[yes/no] | yes | If set to | cleanup-on-quit no | |
<element> <fgcolor> <bgcolor> [<attribute> …] | n/a | Set the foreground color, background color and optional attributes for a certain element. | color background white black | |
[yes/no] | no | If set to | confirm-exit yes | |
<path> | "" | Set a cookie cache. If set, then cookies will be cached (i.e. read from and written to) in this file. | cookie-cache "~/.newsboat/cookies.txt" | |
<date/time format> | %b %d | This format specifies the date/time format in the article list. For a detailed documentation on the allowed formats, consult the manpage of strftime(3). | datetime-format "%D, %R" | |
<name> <filterexpr> | n/a | With this command, you can predefine filters, which you can later select from a list, and which are then applied after selection. This is especially useful for filters that you need often and you don’t want to enter them every time you need them. | define-filter "all feeds with 'fun' tag" "tags # \"fun\"" | |
[yes/no] | no | If set to | delete-read-articles-on-quit yes | |
<format> | "%N %V - Dialogs" | Format of the title in dialog list. See "Format Strings" section of Newsboat manual for details on available formats. | dialogs-title-format "%N %V - Dialogs" | |
<format> | "%N %V - %?O?Open Directory&Save File? - %f" | Format of the title in directory browser. See "Format Strings" section of Newsboat manual for details on available formats. | dirbrowser-file-format "%?O?Open Directory&Save File? - %f" | |
[yes/no] | yes | If set to | display-article-progress no | |
[yes/no] | no | If set to | download-full-page yes | |
<number> | 1 | How many times newsboat shall try to successfully download a feed before giving up. This is an option to improve the success of downloads on slow and shaky connections such as via a TOR proxy. | download-retries 4 | |
<number> | 30 | The number of seconds newsboat shall wait when downloading a feed before giving up. This is an option to improve the success of downloads on slow and shaky connections such as via a TOR proxy. | download-timeout 60 | |
<path> | "" | If set, then user errors (e.g. errors regarding defunct RSS feeds) will be logged to this file. | error-log "~/.newsboat/error.log" | |
<command> | "" | If set, then | external-url-viewer "urlview" | |
<sortorder>[-<direction>] | none | The <sortfield> specifies which feed property shall be used for sorting; currently available are: | feed-sort-order firsttag | |
<flag> | "" | If set and FeedHQ support is used, then all articles that are flagged with the specified flag are being "shared" in FeedHQ so that people that follow you can see it. | feedhq-flag-share "a" | |
<flag> | "" | If set and FeedHQ support is used, then all articles that are flagged with the specified flag are being "starred" in FeedHQ and appear in the list of "Starred items". | feedhq-flag-star "b" | |
<login> | "" | This variable sets your FeedHQ login for FeedHQ support. | feedhq-login "your-login" | |
<number> | 20 | This variable sets the number of articles that are loaded from FeedHQ per feed. | feedhq-min-items 100 | |
<password> | "" | This variable sets your FeedHQ password for FeedHQ support. Double quotes should be escaped, i.e. you should write | feedhq-password "here_goesAquote:\"" | |
<path> | "" | A more secure alternative to the above, by storing your password elsewhere in your system. | feedhq-passwordfile "~/.newsboat/feedhq-pw.txt" | |
<command> | "" | Another secure alternative, is providing your password from an external command that is evaluated during login. This can be used to read your password from a gpg encrypted file or your system keyring. | feedhq-passwordeval "gpg --decrypt ~/.newsboat/feedhq-password.gpg" | |
[yes/no] | yes | If set and FeedHQ support is used, then "special feeds" like "People you follow" (articles shared by people you follow), "Starred items" (your starred articles) and "Shared items" (your shared articles) appear in your subscription list. | feedhq-show-special-feeds "no" | |
<url> | "https://feedhq.org/" | Configures the URL where your FeedHQ instance resides. | feedhq-url "https://feedhq.example.com/" | |
<format> | "%4i %n %11u %t" | This variable defines the format of entries in the feed list. See the respective section in the documentation for more information on format strings. | feedlist-format " %n %4i - %11u -%> %t" | |
<format> | "N %V - Your feeds (%u unread, %t total)%?T? - tag `%T'&?" | Format of the title in feed list. See "Format Strings" section of Newsboat manual for details on available formats. | feedlist-title-format "Feeds (%u unread, %t total)" | |
<format> | "%N %V - %?O?Open File&Save File? - %f" | Format of the title in file browser. See "Format Strings" section of Newsboat manual for details on available formats. | filebrowser-title-format "%?O?Open File&Save File? - %f" | |
[yes/no] | yes | If set to | goto-first-unread no | |
[yes/no] | yes | If set to | goto-next-feed no | |
<format> | "%N %V - Help" | Format of the title in help window. See "Format Strings" section of Newsboat manual for details on available formats. | help-title-format "%N %V - Help" | |
<target> <regex> <fgcolor> [<bgcolor> [<attribute> …]] | n/a | With this command, you can highlight text parts in the feed list, the article list and the article view. For a detailed documentation, see the chapter on highlighting. | highlight all "newsboat" red | |
<filterexpr> <fgcolor> <bgcolor> [<attribute> …] | n/a | With this command, you can highlight articles in the article list if they match a filter expression. For a detailed documentation, see the chapter on highlighting. | highlight-article "author =~ \"Andreas Krennmair\"" white red bold | |
<number> | 100 | Defines the maximum number of entries of commandline resp. search history to be saved. To disable history saving, set it to 0. | history-limit 0 | |
<command> | internal | If set to | html-renderer "w3m -dump -T text/html" | |
<method> | any | Set HTTP authentication method. Allowed values: | http-auth-method digest | |
<feed> <filterexpr> | n/a | If a downloaded article from <feed> matches <filterexpr>, then it is ignored and not presented to the user. This command is further explained in the "kill file" section below. | ignore-article "*" "title =~ \"Windows\"" | |
[download/display] | download | This configuration option defines in what way an article is ignored (see | ignore-mode "display" | |
<path> | n/a | With this command, you can include other files to be interpreted as configuration files. This is especially useful to separate your configuration into several files, e.g. key configuration, color configuration, … | include "~/.newsboat/colors" | |
<format> | "%N %V - Article '%T' (%u unread, %t total)" | Format of the title in article view. See "Format Strings" section of Newsboat manual for details on available formats. | itemview-title-format "Article '%T'" | |
<flag> | "" | If set and Inoreader support is used, then all articles that are flagged with the specified flag are being "shared" in Inoreader so that people that follow you can see it. | inoreader-flag-share "a" | |
<flag> | "" | If set and Inoreader support is used, then all articles that are flagged with the specified flag are being "starred" in Inoreader and appear in the list of "Starred items". | inoreader-flag-star "b" | |
<login> | "" | This variable sets your Inoreader login for Inoreader support. | inoreader-login "your-login" | |
<number> | 20 | This variable sets the number of articles that are loaded from Inoreader per feed. | inoreader-min-items 100 | |
<password> | "" | This variable sets your Inoreader password for Inoreader support. Double quotes should be escaped, i.e. you should write | inoreader-password "here_goesAquote:\"" | |
<path> | "" | A more secure alternative to the above, by storing your password elsewhere in your system. | inoreader-passwordfile "~/.newsboat/inoreader-pw.txt" | |
<command> | "" | Another secure alternative, is providing your password from an external command that is evaluated during login. This can be used to read your password from a gpg encrypted file or your system keyring. | inoreader-passwordeval "gpg --decrypt ~/.newsboat/inoreader-password.gpg" | |
[yes/no] | yes | If set and Inoreader support is used, then "special feeds" like "Starred items" (your starred articles) and "Shared items" (your shared articles) appear in your subscription list. | inoreader-show-special-feeds "no" | |
<number> | 0 | If set to a number greater than 0, only articles that are were published within the last <number> days are kept, and older articles are deleted. If set to 0, this option is not active. Note that changing this setting won’t bring back the articles that were deleted earlier; currently, there’s no non-hacky way to bring back deleted articles. | keep-articles-days 30 | |
<macro key> <command list> | n/a | With this command, you can define a macro key and specify a list of commands that shall be executed when the macro prefix and the macro key are pressed. | macro k open ; reload ; quit | |
[yes/no] | no | If set to | mark-as-read-on-hover yes | |
<number> | 0 | If set to a number great than 0, the download speed per download is set to that limit (in kB). | max-download-speed 50 | |
<number> | 10 | Set the maximum number of articles to open in a browser when using the | max-browser-tabs 4 | |
<number> | 0 | Set the number of articles to maximally keep per feed. If the number is set to 0, then all articles are kept. | max-items 100 | |
<login> | "" | This variable sets your NewsBlur login for NewsBlur support. | newsblur-login "your-login" | |
<number> | 20 | This variable sets the number of articles that are loaded from NewsBlur per feed. | newsblur-min-items 100 | |
<password> | "" | This variable sets your NewsBlur password for NewsBlur support. Double quotes should be escaped, i.e. you should write | newsblur-password "here_goesAquote:\"" | |
<path> | "" | A more secure alternative to the above, by storing your password elsewhere in your system. | newsblur-passwordfile "~/.newsboat/newsblur-pw.txt" | |
<command> | "" | Another secure alternative, is providing your password from an external command that is evaluated during login. This can be used to read your password from a gpg encrypted file or your system keyring. | newsblur-passwordeval "gpg --decrypt ~/.newsboat/newsblur-password.gpg" | |
<url> | "https://newsblur.com" | Configures the URL where the NewsBlur instance resides. | newsblur-url "https://localhost" | |
[yes/no] | no | If set to | notify-always yes | |
[yes/no] | no | If set to | notify-beep yes | |
<string> | "newsboat: finished reload, %f unread feeds (%n unread articles total)" | Format string that is used for formatting notifications. See the chapter on format strings for more information. | notify-format "%d new articles (%n unread articles, %f unread feeds)" | |
<command> | "" | If set, then the configured program will be executed if new articles arrived (through a reload) or if | notify-program "~/bin/my-notifier" | |
[yes/no] | no | If set to | notify-screen yes | |
[yes/no] | no | If set to | notify-xterm yes | |
<character> | "" | If set and ownCloud News support is used, then all articles that are flagged with the specified flag are being "starred" in ownCloud News. | ocnews-flag-star "s" | |
<username> | "" | Sets the username to use with the ownCloud instance. | ocnews-login "user" | |
<password> | "" | Configures the password to use with the ownCloud instance. Double quotes should be escaped, i.e. you should write | ocnews-password "here_goesAquote:\"" | |
<path> | "" | A more secure alternative to the above, by storing your password elsewhere in your system. | ocnews-passwordfile "~/.newsboat/ocnews-pw.txt" | |
<command> | "" | Another secure alternative, is providing your password from an external command that is evaluated during login. This can be used to read your password from a gpg encrypted file or your system keyring. | ocnews-passwordeval "gpg --decrypt ~/.newsboat/ocnews-password.gpg" | |
<url> | "" | Configures the URL where the ownCloud instance resides. | ocnews-url "https://localhost/owncloud" | |
<flag> | "" | If set and The Old Reader support is used, then all articles that are flagged with the specified flag are being "shared" in The Old Reader so that people that follow you can see it. | oldreader-flag-share "a" | |
<flag> | "" | If set and The Old Reader support is used, then all articles that are flagged with the specified flag are being "starred" in The Old Reader and appear in the list of "Starred items". | oldreader-flag-star "b" | |
<login> | "" | This variable sets your The Old Reader login for The Older Reader support. | oldreader-login "your-login" | |
<number> | 20 | This variable sets the number of articles that are loaded from The Old Reader per feed. | oldreader-min-items 100 | |
<password> | "" | This variable sets your The Old Reader password for The Old Reader support. Double quotes should be escaped, i.e. you should write | oldreader-password "here_goesAquote:\"" | |
<path> | "" | A more secure alternative to the above, by storing your password elsewhere in your system. | oldreader-passwordfile "~/.newsboat/oldreader-pw.txt" | |
<command> | "" | Another secure alternative, is providing your password from an external command that is evaluated during login. This can be used to read your password from a gpg encrypted file or your system keyring. | oldreader-passwordeval "gpg --decrypt ~/.newsboat/oldreader-password.gpg" | |
[yes/no] | yes | If set and The Old reader support is used, then "special feeds" like "People you follow" (articles shared by people you follow), "Starred items" (your starred articles) and "Shared items" (your shared articles) appear in your subscription list. | oldreader-show-special-feeds "no" | |
[yes/no] | no | If set to | openbrowser-and-mark-jumps-to-next-unread yes | |
<url> … | "" | If the OPML online subscription mode is enabled, then the list of feeds will be taken from the OPML file found on this location. Optionally, you can specify more than one URL. All the listed OPML URLs will then be taken into account when loading the feed list. | opml-url "http://host.domain.tld/blogroll.opml" "http://example.com/anotheropmlfile.opml" | |
[<command>/internal] | internal | If set to | pager "less %f" | |
[yes/no] | no | If set to | podcast-auto-enqueue yes | |
[yes/no] | no | If set to | prepopulate-query-feeds yes | |
[yes/no] | yes | If set to | ssl-verifyhost no | |
[yes/no] | yes | If set to | ssl-verifypeer no | |
<method> | any | Set proxy authentication method. Allowed values: | proxy-auth-method ntlm | |
<auth> | n/a | Set the proxy authentication string. | proxy-auth user:password | |
<type> | http | Set proxy type. Allowed values: | proxy-type socks5 | |
<server:port> | n/a | Set the proxy to use for downloading RSS feeds. (Don’t forget to actually enable the proxy with | proxy localhost:3128 | |
[yes/no] | no | If set to | refresh-on-startup yes | |
[yes/no] | no | If set to | reload-only-visible-feeds yes | |
<number> | 1 | The number of parallel reload threads that shall be started when all feeds are reloaded. | reload-threads 3 | |
<number> | 60 | The number of minutes between automatic reloads. | reload-time 120 | |
<url> … | n/a | With this configuration command, you can provide a list of RSS feed URLs for whose articles the unread flag will be reset if an article has been updated, i.e. its content has been changed. This is especially useful for RSS feeds where single articles are updated after publication, and you want to be notified of the updates. | reset-unread-on-update "http://blog.fefe.de/rss.xml?html" | |
<path-to-directory> | ~/ | The default path where articles shall be saved to. If an invalid path is specified, the current directory is used. | save-path "~/Saved Articles" | |
<fgcolor> <bgcolor> [<attribute> …] | black yellow bold | This configuration command specifies the highlighting colors when searching for text from the article view. | search-highlight-colors white black bold | |
<format> | "%N %V - Search result (%u unread, %t total)" | Format of the title in search result. See "Format Strings" section of Newsboat manual for details on available formats. | searchresult-title-format "Search result" | |
<format> | "%N %V - Select Filter" | Format of the title in filter selection dialog. See "Format Strings" section of Newsboat manual for details on available formats. | selectfilter-title-format "Select Filter" | |
<format> | "%4i %T (%u)" | Format of the lines in "Select tag" dialog. See the respective section in the documentation for more information on format strings. | selecttag-format "[%2i] %T (%n unread articles in %f feeds, %u feeds total)" | |
<format> | "%N %V - Select Tag" | Format of the title in tag selection dialog. See "Format Strings" section of Newsboat manual for details on available formats. | selecttag-title-format "Select Tag" | |
[yes/no] | yes | If set to | show-keymap-hint no | |
[yes/no] | yes | If set to | show-title-bar no | |
[yes/no] | yes | If set to | show-read-articles no | |
[yes/no] | yes | If set to | show-read-feeds no | |
[yes/no] | no | If set to | suppress-first-reload yes | |
[yes/no] | no | If set to | swap-title-and-hints yes | |
<number> | 0 | If set to a number greater than 0, all HTML will be rendered to this maximum line length or the terminal width (whichever is smaller). If set to 0, the terminal width will always be used. Does not apply when using external renderer or viewing the source. Also note that "Link" header and "Links" section won’t be affected by it—they contain URLs which are better not wrapped. | text-width 72 | |
[yes/no] | no | If set to | toggleitemread-jumps-to-next-unread yes | |
<character> | "" | If set and Tiny Tiny RSS support is used, then all articles that are flagged with the specified flag are being marked as "published" in Tiny Tiny RSS. | ttrss-flag-publish "b" | |
<character> | "" | If set and Tiny Tiny RSS support is used, then all articles that are flagged with the specified flag are being "starred" in Tiny Tiny RSS. | ttrss-flag-star "a" | |
<username> | "" | Sets the username for use with Tiny Tiny RSS. | ttrss-login "admin" | |
[multi/single] | multi | Configures the mode in which Tiny Tiny RSS is used. In single-user mode, login and password are used for HTTP authentication, while in multi-user mode, they are used for authenticating with Tiny Tiny RSS. | ttrss-mode "single" | |
<password> | "" | Configures the password for use with Tiny Tiny RSS. Double quotes should be escaped, i.e. you should write | ttrss-password "here_goesAquote:\"" | |
<path> | "" | A more secure alternative to the above, by storing your password elsewhere in your system. | ttrss-passwordfile "~/.newsboat/ttrss-pw.txt" | |
<command> | "" | Another secure alternative, is providing your password from an external command that is evaluated during login. This can be used to read your password from a gpg encrypted file or your system keyring. | ttrss-passwordeval "gpg --decrypt ~/.newsboat/ttrss-password.gpg" | |
<url> | "" | Configures the URL where the Tiny Tiny RSS installation you want to use resides. | ttrss-url "http://example.com/ttrss/" | |
<key> [<dialog>] | n/a | Unbind key <key>. This means that no operation is called when <key> is pressed. If you provide "-a" as <key>, all currently bound keys will become unbound. Optionally, you can specify a dialog (for a list of available dialogs, see | unbind-key R | |
<source> | "local" | This configuration command sets the source where URLs shall be retrieved from. By default, this is ~/.newsboat/urls. Alternatively, you can set it to | urls-source "oldreader" | |
<format> | "%N %V - URLs" | Format of the title in URL view. See "Format Strings" section of Newsboat manual for details on available formats. | urlview-title-format "URLs" | |
[yes/no] | no | If set to | use-proxy yes | |
<string> | "" | If set to a non-zero-length string, this value will be used as HTTP User-Agent header for all HTTP requests. | user-agent "Lynx/2.8.5rel.1 libwww-FM/2.14" |
Table 2. Available Operations
Operation | Default key | Description |
---|---|---|
ENTER | Open the currently selected feed or article. | |
q | Quit the program or return to the previous dialog (depending on the context). | |
Q | Quit the program without confirmation. | |
r | Reload the currently selected feed. | |
R | Reload all feeds. | |
A | Mark all articles in the currently selected feed read. | |
C | Mark articles in all feeds read. | |
n/a | Mark all above as read. | |
s | Save the currently selected article to a file. | |
n/a | Save all articles from currently selected feed. | |
n | Jump to the next unread article. | |
p | Jump to the previous unread article. | |
J | Jump to next article. | |
K | Jump to previous article. | |
^K | Jump to a random unread article. | |
o | Open the URL associated with the current article. | |
O | Open the URL associated with the current article and mark the article as read. | |
n/a | Open all the unread URLs in the current feed. | |
n/a | Open all the unread URLs in the current feed and mark them as read. | |
? | Run the help screen. | |
^U | Toggle between the HTML view and the source view in the article view. | |
N | Toggle the read flag for the currently selected article, and clear the delete flag if set. | |
l | Toggle whether read feeds should be shown in the feed list. | |
u | Show all URLs in the article in a list (similar to urlview). | |
^T | Clear current tag. | |
t | Select tag. | |
/ | Open the search dialog. When a search is done in the article list, then the search operation only applies to the articles of the current feed, otherwise to all articles. | |
# | Open the URL dialog and then open a specified URL. | |
e | Add the podcast download URL of the current article (if any is found) to the podcast download queue (see the respective section in the documentation for more information on podcast support). | |
E | Edit the list of subscribed URLs. newsboat will start the editor configured through the $VISUAL environment variable (if unset, $EDITOR is used; fallback: "vi"). When editing is finished, newsboat will reload the URLs file. | |
^R | Reload the URLs configuration file. | |
^L | Redraw the screen. | |
: | Open the command line. | |
F | Set a filter. | |
f | Select a predefined filter. | |
^F | Clear currently set filter. | |
^B | Bookmark currently selected article or URL. | |
^E | Edit the flags of the currently selected article. | |
^N | Go to the next feed with unread articles. This only works from the article list. | |
^P | Go to the previous feed with unread articles. This only works from the article list. | |
j | Go to the next feed. This only works from the article list. | |
k | Go to the previous feed. This only works from the article list. | |
D | Delete the currently selected article. | |
^D | Delete all articles in the current feed. | |
$ | Purge all articles that are marked as deleted from the article list. | |
v | View list of open dialogs. | |
^X | Close currently selected dialog. | |
^V | Go to next dialog. | |
^G | Go to previous dialog. | |
| | Pipe article to command. | |
g | Sort feeds/articles by interactively choosing the sort method. | |
G | Sort feeds/articles by interactively choosing the sort method (reversed). | |
UP | Go up one item in the list. | |
DOWN | Go down one item in the list. | |
PPAGE | Go up one page in the list. | |
NPAGE | Go down one page in the list. | |
HOME | Go to the first item in the list. | |
END | Go to the last item in the list. | |
, | Initiate macro execution. The next key press selects the actual macro and runs it. |
Keys, as used in the bind-key configuration command, use a special syntax.
Lowercase keys, uppercase keys and special characters are written literally.
The "Enter" key is written as ENTER
, while the "Esc" key is written as ESC
. The
function keys "F1" to "F12" are written as F1
to F12
. The "Space" key is written
as SPACE
. Key combinations with the "Ctrl" key, such as "Ctrl-R", are written as
^R
. Please be aware that all Ctrl-related key combinations need to be written
in uppercase. The following identifiers for keys are supported:
ENTER
(Enter key)
BACKSPACE
(backspace key)
LEFT
(left cursor)
RIGHT
(right cursor)
UP
(up cursor)
PPAGE
(page up cursor)
NPAGE
(page down cursor)
DOWN
(down cursor)
ESC
(Esc key)
The "Tab" key can’t be bound due to technical limitations of STFL.
# a comment max-items 100 # such comments are possible, too browser links show-read-feeds no
unbind-key R bind-key ^R reload-all
It is possible to configure custom color settings in newsboat. The basic configuration syntax is:
color <element> <foreground color> <background color> [<attribute> ...]
This means that if you configure colors for a certain element, you need to provide a foreground color and a background color as a minimum. The following colors are supported:
black
red
green
yellow
blue
magenta
cyan
white
default
color<n>
, e.g. color123
The default
color means that the terminal’s default color will be used. The
color<n>
color name (where <n>
is a decimal number not starting with zero)
can be used if your terminal support 256 colors (e.g. gnome-terminal
, xterm
with $TERM
set to xterm-256color
). Newsboat contains support for 256 color
terminals since version 2.1. For a complete chart of colors and their
corresponding numbers, please see
http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html.
Optionally, you can also add one or more attributes. The following attributes are supported:
standout
underline
reverse
blink
dim
bold
protect
invis
Currently, the following elements are supported:
listnormal
: a normal list item
listfocus
: the currently selected list item
listnormal_unread
: an unread list item
listfocus_unread
: the currently selected and unread list item
info
: the info bars on top and bottom
background
: the application background
article
: the article text
The default color configuration of newsboat looks like this:
color background white black color listnormal white black color listfocus yellow blue bold color listnormal_unread magenta black color listfocus_unread magenta blue bold color info yellow blue bold color article white black
It is very likely that you have used other RSS feed readers before. In this case, it is practical to migrate the previous configuration to newsboat.
Newsboat is a fork of Newsbeuter, so the migration from the latter is partially automated. Simple enough configurations will be transferred without any user intervention, while more complicated ones might require a little tweaking afterwards.
To prevent data loss, please check the results before deleting your old
configuration. Pay extra attention to files that you include
in your
configuration—you’d probably want to manually copy them over to Newsboat
directories, and possibly update the include paths.
Migration from Newsbeuter is attempted on startup if the following conditions are met:
-u
, -c
, -C
options were specified; and
Newsboat first tries to migrate an XDG configuration, and if that fails, it tries the dotdir one. If that fails as well, Newsboat proceeds with the startup as usual.
XDG migration checks that:
If both conditions are met, Newsboat tries to create its XDG dirs (aborting the migration if that fails), then copies the following files: urls and config from config dir; cache.db, queue, history.search, history.cmdline from data dir.
Dotdir migration checks that ~/.newsbeuter/ is readable and executable, and ~/.newsboat/ doesn’t exist. If those conditions are met, it tries to create ~/.newsboat/ (aborting the migration if that fails), then copies the following files: urls, cache.db, config, queue, history.search, history.cmdline.
There’s one scenario where the process breaks: if you have an XDG configuration for Newsbeuter, ~/.newsboat/ exists and ~/.newsboat/urls doesn’t exist, then Newsboat will migrate XDG files and proceed, ignoring the dotdir. Please don’t confuse the poor program like that!
The vast amount of RSS feed readers allows the export of subscriptions via OPML files. OPML is an XML file format that was designed to save outlines, and has found its primary use in the import and export of feed subscriptions between different RSS feed readers.
The best thing to start with is to export your subscriptions from the old reader. Usually, RSS feed readers have appropriate menu items available to do so.
Snownews provides a script to convert your current subscription file into an OPML file:
snow2opml > ~/blogroll.opml
This command creates from your Snownews configuration a file blogroll.opml in your home directory. To export the subscription list from raggle, the following command is necessary:
raggle --export-opml ~/blogroll.opml
When you have exported the subscriptions from your old RSS feed reader, you can import them into newsboat:
newsboat -i ~/blogroll.opml
Don’t worry, newsboat won’t destroy your existing configuration, or add subscriptions more than once: every URL that is added to the subscription list is checked before whether it is already in the list, and is only added if not. This makes it possible to merge several OPML files into your subscription list.
If your old RSS feed reader was able to structure your subscriptions in hierarchies, and reflected this structure in the exported OPML file, newsboat doesn’t throw away this information (although it doesn’t support hierarchies), but generates tags from it. Tags are newsboat’s way of organizing subscriptions in a non-hierarchical way. More information on the use of tags can be found below.
Imagine the following folder hierarchy:
|- News | |- Europe | `- International |- IT | |- Linux | |- Windows | `- Programming | |- C++ | |- Ruby | `- Erlang `- Private
Subscriptions found in the folder "Private" will be tagged with "Private", subscriptions in the folder "International" will be tagged with "News" and "News/International", subscriptions in the folder "Erlang" will be tagged ith "IT", "IT/Programming" and "IT/Programming/Erlang", and so on. This means that when you select the tag "Programming" in newsboat, you will see all subscriptions that were in the "Programming" folder or one of its subfolders before. This means that you will lose virtually nothing of your previously configured structure.
Newsboat is a perfectly capable feedreader in its own right, but it can’t cover all the use-cases. For example, you might want to synchronize your news between devices, or you don’t have a computer that’s running 24/7 to fetch your feeds. In such cases, you might register with some online feedreader, and use Newsboat as a client. The next few sections provide configuration instructions for each supported service.
The Old Reader is a successor to Google Reader. In order to use it, you first need to configure the proper URL source:
urls-source "oldreader"
In addition, Newsboat needs to know your The Old Reader username and password so that it can authenticate with the service:
oldreader-login "your-oldreader-account" oldreader-password "your-password"
Note that double quotes should be escaped, i.e. you should write \"
instead of "
.
See also oldreaader-passwordfile
,
oldreader-passwordeval
, and
Section 4.8, “Passwords for external APIs”.
After setting these configuration values, you can start Newsboat. It will authenticate with The Old Reader and download your subscription list.
When you mark single items or complete feeds as read, Newsboat will synchronize this information directly to The Old Reader. This, of course, includes opening articles. Toggling read articles back to "unread" is also communicated to The Old Reader.
In addition, The Old Reader provides the ability to "star" and to "share" articles. Starred articles are basically bookmarks, while shared articles are shown to people that follow your The Old Reader account. Newsboat allows the use of this feature by mapping its powerful "flags" to the "star"/"unstar" resp. "share"/"unshare" operations.
In order to use this mapping, all you need to do is to configure the flags that shall be used:
oldreader-flag-share "a" oldreader-flag-star "b"
After that, use these flags when you edit flags for an article, and these articles will be starred resp. shared.
By default, Newsboat also shows The Old Reader "special feeds":
You can disable these feeds by setting the following configuration variable:
oldreader-show-special-feeds no
The Old Reader’s folders are converted into Newsboat tags. You can select and filter feeds by tags; see Section 5.1, “Tagging” and Section 5.5, “Filter Language” for details.
NewsBlur is a successor to Google Reader. Configuration basically works the same as with The Old Reader.
First, set your urls-source
:
urls-source "newsblur"
Then, configure your NewsBlur credentials:
newsblur-login "your-newsblur-account" newsblur-password "your-password"
Note that double quotes should be escaped, i.e. you should write \"
instead of "
.
See also newsblur-passwordfile
,
newsblur-passwordeval
, and
Section 4.8, “Passwords for external APIs”.
When you start Newsboat, it will download the feeds that you configured in NewsBlur. Please take a closer look at the configuration commands for what you can configure in Newsboat regarding NewsBlur.
NewsBlur’s folders are converted into Newsboat tags. You can select and filter feeds by tags; see Section 5.1, “Tagging” and Section 5.5, “Filter Language” for details.
FeedHQ is a successor to Google Reader. Configuration basically works the same as with The Old Reader.
First, set your urls-source
:
urls-source "feedhq"
Then, configure your FeedHQ credentials:
feedhq-login "your-feedhq-account" feedhq-password "your-password"
Note that double quotes should be escaped, i.e. you should write \"
instead of "
.
See also feedhq-passwordfile
,
feedhq-passwordeval
, and
Section 4.8, “Passwords for external APIs”.
If you’re using a standalone instance, you should add one more setting:
feedhq-url "https://the.url.of/your/feedhq/instance"
When you start Newsboat, it will download the feeds that you configured in FeedHQ. Please take a closer look at the configuration commands for what you can configure in Newsboat regarding FeedHQ.
FeedHQ’s folders are converted into Newsboat tags. You can select and filter feeds by tags; see Section 5.1, “Tagging” and Section 5.5, “Filter Language” for details.
Newsboat can be used to synchronize with Tiny Tiny RSS installations. Tiny Tiny RSS is a web-based and (optionally) multi-user feed reader.
If you want to use Tiny Tiny RSS support, don’t forget to activate the external API support in your preferences.
To use Tiny Tiny RSS support, you need to configure a few things. First of all, Newsboat needs to know that you want to use Tiny Tiny RSS and which installation exactly:
urls-source "ttrss" ttrss-url "http://example.com/ttrss/"
In addition, it requires username and password for authentication:
ttrss-login "myusername" ttrss-password "mypassword"
Note that double quotes should be escaped, i.e. you should write \"
instead of "
.
See also ttrss-passwordfile
,
ttrss-passwordeval
, and
Section 4.8, “Passwords for external APIs”.
Tiny Tiny RSS provides two modes of usage: single-user mode and multi-user mode. Newsboat needs to know about this, too: in single-user mode, authentication is done via Basic HTTP authentication, while in multi-user mode, authentication is done against Tiny Tiny RSS itself.
ttrss-mode "single" # "multi" is default
If Tiny Tiny RSS is configured in multi-user mode and still deployed behind an
additional HTTP-BasicAuth, the required username and password (which may deviate
from ttrss-login
and ttrss-password
) can
be specified in the user-part of the url like this:
ttrss-url "http://htuser:htpasswd@example.com/ttrss/"
With these settings, Newsboat should be able to connect to Tiny Tiny RSS and download your subscribed feeds. Articles or even complete feeds that you marked as read are synchronized directly to Tiny Tiny RSS.
Tiny Tiny RSS provides the ability to "star" and to "publish" articles. Starred articles are basically bookmarks, while published articles can be retrieved via a public RSS feed. Newsboat allows the use of these features by mapping its flags to the "star" and "publish" operations.
In order to use this mapping, you need to configure the flags that shall be used:
ttrss-flag-star "s" ttrss-flag-publish "p"
After that, use these flags when you edit flags for an article, and these articles will be starred resp. published.
TT-RSS folders are converted into Newsboat tags. You can select and filter feeds by tags; see Section 5.1, “Tagging” and Section 5.5, “Filter Language” for details.
ownCloud News and nextCloud News implement the same protocol, so Newsboat treats them as equivalent. Instructions below apply to both.
First, set your urls-source
to ocnews
and tell Newsboat
where to find your ownCloud instance:
urls-source "ocnews" ocnews-url "https://localhost/owncloud"
Username and password are required:
ocnews-login "user" ocnews-password "password"
See also ocnews-passwordfile
,
ocnews-passwordeval
, and Section 4.8, “Passwords for external APIs”.
ownCloud News API uses HTTP basic auth, therefore running ownCloud with SSL is highly recommended. If for any reason you don’t want Newsboat to verify the hostname of your instance against the hostname specified in the SSL certificate you’re using, just say so:
ocnews-verifyhost "no"
If you see intermittent "Authentication failed" errors, try configuring memory caching. That should improve the responsiveness of the API and fix the errors.
ownCloud News provides the ability to "star" articles; starred articles are basically bookmarks. Newsboat allows the use of this feature by mapping user-specified flag to the "star" operation.
In order to use this mapping, you need to configure the flag that shall be used:
ocnews-flag-star "s"
OwnCloud News' folders are converted into Newsboat tags. You can select and filter feeds by tags; see Section 5.1, “Tagging” and Section 5.5, “Filter Language” for details.
Inoreader is a successor to Google Reader.
In order to use Inoreader support, you first need to configure the proper URL source:
urls-source "inoreader"
In addition, Newsboat needs to know your Inoreader username and password so that it can authenticate with Inoreader. Note that this is NOT your login with your Google or Facebook account. If you use one of those to login to Inoreader, you have to create a username and password in Inoreader Preferences > Profile
inoreader-login "your-inoreader-account" inoreader-password "your-password"
(Note that double quotes should be escaped, i.e. you should write \"
instead of "
.)
See also inoreader-passwordfile
,
inoreader-passwordeval
, and Section 4.8, “Passwords for external APIs”.
After setting these configuration values, you can start Newsboat. It will authenticate with Inoreader and download your subscription list. If you use "folders" in Inoreader to organize your feeds, Newsboat will make them available via its "tags" capability: each feed is tagged with the name of the folder in which it resides. You can select and filter feeds by tags; see Section 5.1, “Tagging” and Section 5.5, “Filter Language” sections for details.
When you mark single items or complete feeds as read, Newsboat will synchronize this information directly to Inoreader. This, of course, includes opening articles. Toggling read articles back to "unread" is also communicated to Inoreader.
In addition, Inoreader provides the ability to "star" and to "share" articles. Starred articles are basically bookmarks, while shared articles are shown to people that follow your Inoreader account. Newsboat allows the use of this feature by mapping its powerful "flags" to the "star"/"unstar" resp. "share"/"unshare" operations.
In order to use this mapping, all you need to do is to configure the flags that shall be used:
inoreader-flag-share "a" inoreader-flag-star "b"
After that, use these flags when you edit flags for an article, and these articles will be starred resp. shared.
By default, Newsboat also shows Inoreader "special feeds":
You can disable these feeds by setting the following configuration variable:
inoreader-show-special-feeds no
This mode provides one-way synchronization of subscriptions from the online service to Newsboat. In other words, Newsboat will know what feeds you’ve subscribed to, but the online service won’t know what feeds you’re reading in Newsboat.
This mode works with any service that publishes your subscriptions in OPML format.
To enable this mode, you need to set an appropriate URLs source and then tell Newsboat where to get the OPML file(s):
urls-source "opml" opml-url "http://example.com/feeds.opml" "http://example.com/more.opml"
There are a number of ways to specify a password, each represented by a separate setting. Newsboat looks for settings in certain order, and uses the first one that it finds. The exact order is described below.
Settings are prefixed by API names; e.g. newsblur-password
,
feedhq-passwordeval
. All APIs support all the settings, so examples below use
REMOTEAPI
for prefix. Replace it with the name of the remote API you use.
The first setting Newsboat checks is REMOTEAPI-password
. It should contain the
password in plain text.
The second setting Newsboat checks is REMOTEAPI-passwordfile
. It should
contain a path to a file; the first line of that file should contain the
password in plain text. If the file doesn’t exit, is unreadable, or its first
line is empty, Newsboat will exit with an error.
The third setting Newsboat checks is REMOTEAPI-passwordeval
. It should
contain a command that, when executed, will print out the password to stdout.
stderr will be passed through to the terminal.
If the first line of command’s output is empty, or the command fails to execute, Newsboat will exit with an error. This is the most versatile of all the options, because it lets you emulate every other and more; let’s look at it in more detail.
For example, a user might want to store their password in a file encrypted by GPG. They create the file like that:
$ gpg --encrypt --default-recipient-self --output ~/.newsboat/password.gpg
They enter their password, press Enter, and finish the command by pressing ^D (Control and d simultaneously). Then, they specify in their Newsboat config:
REMOTEAPI-passwordeval "gpg --decrypt ~/.newsboat/password.gpg"
Now every time they start Newsboat, GPG will be ran. It’ll probably ask for keyring password, then decrypt the file, and pass its contents to Newsboat, which will use it to authenticate with the remote API.
Note that Newsboat will keep the password in memory the entire time Newsboat is running. Other programs might be able to dump the memory and obtain the password. We don’t currently have any protection from that; patches are welcome.
The user might use any other command here; for example, they could fetch the password from GNOME keyring, KeePass, or somewhere else entirely. The possibilities are truly endless.
If no of the aforementioned settings were found, Newsboat will ask the user for the password using an interactive prompt. If the password that the user enters is empty, Newsboat will give up and exit with an error.
Newsboat comes with the possibility to categorize or "tag", as we call it, RSS feeds. Every RSS feed can be assigned 0 or more tags. Within newsboat, you can then select to only show RSS feeds that match a certain tag. That makes it easy to categorize your feeds in a flexible and powerful way.
Usually, the ~/.newsboat/urls file contains one RSS feed URL per line. To
assign a tag to an RSS feed, simply attach it as a single word, separated by
blanks such as space or tab. If the tag needs to contain spaces, you must use
quotes ("
) around the tag (see example below). An example ~/.newsboat/urls
file may look like this:
http://blog.fefe.de/rss.xml?html interesting conspiracy news "cool stuff" http://rss.orf.at/news.xml news orf http://www.heise.de/newsticker/heise.rdf news interesting
When you now start newsboat with this configuration, you can press "t" to select a tag. When you select the tag "news", you will see all three RSS feeds. Pressing "t" again and e.g. selecting the "conspiracy" tag, you will only see the http://blog.fefe.de/rss.xml?html RSS feed. Pressing "^T" clears the current tag, and again shows all RSS feeds, regardless of their assigned tags.
A special type of tag are tags that start with the tilde character (~
). When such
a tag is found, the feed title is set to the tag name (excluding the ~
character).
With this feature, you can give feeds any title you want in your feed list:
http://rss.orf.at/news.xml "~ORF News"
Another special type of tag are tags that start with the exclamation mark (!
). When
such a tag is found, the feed is hidden from the regular list of feeds and its
content can only be found through a query feed.
http://rss.orf.at/news.xml "!ORF News (hidden)"
Newsboat contains support for Snownews extensions. The RSS feed readers Snownews and Liferea share a common way of extending the readers with custom scripts. Two mechanisms, namely "execurl" and "filter" type scripts, are available and supported by newsboat.
An "execurl" script can be any program that gets executed and whose output is interpreted as RSS feed, while "filter" scripts are fed with the content of a configured URL and whose output is interpreted as RSS feed.
The configuration is simple and straight-forward. Just add to your ~/.newsboat/urls file configuration lines like the following ones:
exec:~/bin/execurl-script filter:~/bin/filter-script:http://some.test/url
The first line shows how to add an execurl script to your configuration: start
the line with exec:
and then immediately append the path of the script that
shall be executed. If this script requires additional parameters, simply use
quotes:
"exec:~/bin/execurl-script param1 param2"
The second line shows how to add a filter script to your configuration: start
the line with filter:
, then immediately append the path of the script, then
append a colon (:
), and then append the URL of the file that shall be fed to
the script. Again, if the script requires any parameters, simply quote:
"filter:~/bin/filter-script param1 param2:http://url/foobar"
In both cases, the tagging feature as described above is still available:
exec:~/bin/execurl-script tag1 tag2 "quoted tag" filter:~/bin/filter-script:http://some.test/url tag3 tag4 tag5
If you need to write your own extension, see this short guide for an introduction. A collection of existing scripts might also help.
Newsboat contains a plugin-based bookmarking system. When a user bookmarks a link (possible
in the article list, in the article view, and in the URL view), they are asked for the URL to bookmark (already
preset with the URL of the current selection), the bookmark title (in most cases preset with the
title of the current selection), the bookmark description and (since 2.10) the
title of the feed the user is currently in. After the question for the description,
an external program, configured via the configuration command bookmark-cmd
, is executed with 4 (since 2.10) commandline
parameters. The plugin itself implements the actual bookmark saving (e.g. writing the bookmark to an
external file, or storing it to a del.icio.us account). If everything went OK, the plugin simply exits.
In case something goes wrong while saving the bookmark, it writes out an error message as a single line.
This error message is then presented to the user from within newsboat.
Newsboat comes with an example plugin, which implements a simple tab-separated bookmark file. This example can be found in the contrib subdirectory.
Like other text-oriented software, Newsboat contains an internal commandline to modify configuration variables ad hoc and to run own commands. It provides a flexible access to the functionality of Newsboat which is especially useful for advanced users.
To start the commandline, type ":". You will see a ":" prompt at the bottom of
the screen, similar to tools like vi(m) or mutt. You can now enter commands.
Pressing the "Enter" key executes the command (possibly giving feedback to the
user) and closes the commandline. You can cancel entering commands by pressing
the "Esc" key. The history of all the commands that you enter will be saved to
~/.newsboat/history.cmdline. The backlog is limited to 100 entries by default,
but can be influenced by setting the history-limit
configuration variable.
To disable history saving, set the history-limit
to 0
.
The commandline provides you with some help if you can’t remember the full
names of commandline commands. By pressing the "Tab" key, newsboat will try to
automatically complete your command. If there is more than one possible
completion, you can subsequently press the "Tab" key to cycle through all
results. If no match is found, no suggestion will be inserted into the
commandline. For the set
command, the completion also works for configuration
variable names.
In addition, some common key combination such as "Ctrl-G" (to cancel input), "Ctrl-K" (to delete text from the cursor position to the end of line), "Ctrl-U" (to clear the whole line) and "Ctrl-W" (to delete the word before the current cursor position) were added.
Please be aware that the input history of both the command line and the search
functions are saved to the filesystems, to the files
~/.newsboat/history.cmdline resp. ~/.newsboat/history.search. By default,
the last 100 entries are saved, but this can be configured (configuration
variable history-limit
) and also totally disabled (by setting said variable to
0
).
Currently, the following command line commands are available:
Table 3. Available Commandline Commands
Command | Syntax | Description | Example |
---|---|---|---|
quit | Quit newsboat. | quit | |
q | Alias for quit. | quit | |
save <filename> | Save the currently select article to disk. This works in the article list and in the article view. | save ~/important.txt | |
set <variable>[=<value>|&|!] | Set configuration variable <variable> to <value>. If no value is specified, the current value is printed out. Specifying a ! after the name of boolean configuration variables toggles their values, a & directly after the name of a configuration variable of any type resets its value to the documented default value. | set reload-time=15 | |
tag <tagname> | Only display feeds with the tag <tagname>. | tag news | |
goto <case-insensitive substring> | Search for a feed whose name contains the case-insensitive substring. | goto foo | |
source <filename> […] | Load the specified configuration files. This allows it to load alternative configuration files or reload already loaded configuration files on-the-fly from the filesystem. | source ~/.newsboat/colors | |
dumpconfig <filename> | Save current internal state of configuration to file, so that it can be instantly reused as configuration file. | dumpconfig ~/.newsboat/config.saved | |
dumpform | Dump current dialog to text file. This is meant for debugging purposes only. | dumpform | |
<number> | Jump to the entry with the index <number> (usually seen at the left side of the list). This currently works for the feed list and the article list. | 30 |
Newsboat provides a powerful filter language that enables the user to filter the content of many dialogs, such as the feed list or the article list. The basic concept is that every feed and every article has a number of attributes which can then be compared with user-supplied values, and these comparisons and be logically AND’ed, OR’ed and grouped.
Examples for simple filter expressions are:
unread_count > 0 rssurl =~ "^https:" age between 0:10
Logically connecting and grouping such expressions looks like in the following examples:
( unread_count > 0 and unread_count < 10 ) or total_count > 100 ( author =~ "Frank" or author =~ "John" ) and ( title =~ "Linux" or title =~ "FreeBSD" )
The possibilities for combining such queries is endless, sky (actually: the available memory) is the limit.
To filter your feeds, press "F" in the feed list, enter your filter expression, and press "Enter". To clear the filter, press "Ctrl-F". To filter the articles in the article list, press "F", enter your expression, and press "Enter". Clearing the filter works the same as before. Be aware that only certain attributes work in both dialogs. The table below lists all available attributes and their context, i.e. an attribute that belongs to a feed can only be matched in the feed list, while an attribute that belongs to an article can only be matched in the article list.
Table 4. Available Comparison Operators
Operator | Meaning |
---|---|
| test for equality |
| test for inequality; logical negation of the |
| test whether regular expression matches |
| logical negation of the |
| less than |
| greater than |
| less than or equal |
| greater than or equal |
| within a range of integer values, where the two integer values are separated by a colon (see above for an example) |
| contains; this operator matches if a word is contained in a list of space-separated words (useful for matching tags, see below) |
| contains not; the negation of the |
Table 5. Available Attributes
Attribute | Context | Meaning |
---|---|---|
article | article title | |
article | article link | |
article | article author | |
article | article body | |
article | publication date of the article | |
article | a unique identifier of the article | |
article | indicates whether the article has been read | |
article | the URL of a possible enclosure (e.g. podcast file) | |
article | the MIME type of the enclosure URL | |
article | The set of flags of the article | |
article | Age of an article (in days) | |
article | Index of an article in an article list | |
feed, article | title of the feed | |
feed, article | feed description | |
feed, article | link to the feed | |
feed, article | publication date of the feed | |
feed, article | RSS URL of the feed | |
feed, article | number of unread articles in the feed | |
feed, article | total number of articles in the feed | |
feed, article | all tags that are associated with the feed | |
feed, article | Index of a feed in the feed list |
Note that it’s also possible to filter for feed attributes when you query for article attributes. This is because every article is internally linked to the feed from which it was downloaded.
Sometimes, a user is confronted with certain content they don’t want to read, e.g. on topics the user is not interested in or articles written by certain people. In Usenet, such functionality within software is traditionally called a "killfile", i.e. based on the content of this "killfile", articles that match certain conditions do not get displayed and are not presented to the user at all.
In newsboat, such a "killfile" can be implemented on a per-article basis via
the configuration file. The most important configuration command for this
is ignore-article
:
ignore-article "*" "title =~ \"Gentoo\"" ignore-article "http://synflood.at/blog/index.php?/feeds/index.rss2" "title =~ \"newsboat\""
It takes two parameters. The first one is either a URL of a feed, or "*"
to
match any feed (asterisk is not a pattern, glob or regex—we simply reserve it
to mean "all feeds"). The second argument is a filter expression for an article. If newsboat hits an article in the specified RSS
feed that matches the specified filter expression, then this article is ignored
and never presented to the user. The configuration itself can contain as many
ignore-article
commands as desired.
You can also specify the way an article is ignored. There are two ways available:
Both modes have their advantages and disadvantages: while the download ignore mode saves some storage, you cannot simply "undo" the ignore by removing it from the configuration file: if an ignored article has already vanished from a feed, it won’t reappear. On the other hand, the display ignore mode requires some more space, but has the advantage that an ignore can be "undone" by removing the ignore-article configuration command from the configuration.
The default ignore mode is "download"
. You can set the ignore-mode
in the
configuration file:
ignore-mode "display"
Query feeds are a mechanism of newsboat to define custom "meta feeds" by using newsboat’s built-in filter language. A query feed is a feed that is aggregated from all currently downloaded articles of all feeds. To narrow down the set of articles, the user has to specify a filter. Only articles that match this filter are added to the query feed.
A query feed is updated whenever it is entered in the feed list. When you
change the unread flag of an article, this is reflected in the feed where the
article was originally fetched. If you want query feeds to be updated at
startup, set prepopulate-query-feeds
to yes
.
To define a query feed, the user has to add a line to the file ~/.newsboat/urls in the following format:
query:<name of feed>:<filter expression> [<tag> ...]
The query:
in the beginning tells newsboat that it’s a query feed, <name of
feed>
specifies the name under which the query feed shall be displayed in the
feed list, and <filter expression>
is the filter expression that shall be
used. Like every other feed, a query feed can be tagged to organize it like
a regular feed.
This feature is often used to create a feed that contains all unread articles:
"query:Unread Articles:unread = \"yes\""
Note the quotes that are necessary around the complete query "URL" and the backslashes that are necessary to escape the quotes in the filter expression.
If you want to combine several feeds to one single feed, a good solution is to tag the feeds that you want to combine with one certain tag, and then create a query feed that only displays articles from feeds with that certain tag:
http://domain1.tld/feed.xml fun news tag1 http://domain2.tld/?feed.rss private jokes tag1 http://domain3.tld/feeds.rss news "query:tag1 Articles:tags # \"tag1\""
In this example, the feeds http://domain1.tld/feed.xml and http://domain2.tld/?feed.rss are aggregated into the query feed named "tag1 Articles", but the feed http://domain3.tld/feeds.rss is not.
Basically, the possibility of what can be realized with query feeds is only limited by what can be queried from articles and feeds with the filter language and by your creativity.
To support custom categorization of articles by the user, it is possible to flag an article. A valid flag is any character from A to Z and from a to z. Every article can be flagged with up to 52 different flags, i.e. every letter from the Roman alphabet in upper and lower case. Flagging is easy: just select an article in the article list, or enter the article view, and press "Ctrl-E". This will start the flag editor. By pressing "Enter", the new flags are saved. You can cancel by pressing the "Esc" key.
The flags of an article can be used in every filter expression. The flags of an article are always ordered, and when new flags are added, ordering is immediately restored. This behaviour can also be relied upon when querying articles via the filter language.
If an article contains one or more flags, it is marked with an "!" in the article list. In the article view, all flags (if available) are listed.
In newsboat, it’s possible to define macros to execute more than one command
at once. A macro is configured using the macro
configuration command. The
first parameter to macro
is the key, all parameters afterwards are operations
(as listed in the Available Operations table above), optionally with
parameters on their own, separated by the ;
character. Here’s a simple
example:
macro k open ; reload ; quit macro o open-in-browser ; toggle-article-read "read"
When the user presses the macro prefix ("," by default) and then the "k" key,
the three operations open
, reload
and quit
will be executed subsequently.
The macro prefix can be changed from the default "," to another key, e.g. "+"
(if you don’t unbind the default "," you’re left with two macro prefixes):
bind-key + macro-prefix unbind-key ,
It is also possible to modify configuration variables within macros, which can
e.g. be used to temporarily modify the browser
configuration variable to do
something else, such as running an image viewer from the URLs view:
macro i set browser "feh %u"; open-in-browser ; set browser "elinks %u"
You can even use this feature to enqueue any of the URLs from the URLs view to podboat’s download queue:
macro E set browser "echo %u >> ~/.newsboat/queue" ; open-in-browser ; set browser "elinks %u"
Newsboat comes with a -x
option that indicates that commands added as arguments
to the command line shall be executed. Currently, the following commands are
available:
reload
: this option reloads all feeds, and quits newsboat without printing any output.
This is useful if a user wants to periodically reload all feeds without always having
a running newsboat instance, e.g. from cron.
print-unread
: this option prints the number of unread articles and quits newsboat.
This is useful for users who want to integrate this number into some kind of monitoring
system.
Newsboat contains a powerful format string system to make it possible for the user to configure the format of various aspects of the application, such as the format of entries in the feed list or in the article list.
Format strings are similar to those that are found in the printf
function in
the C programming language. A format sequence begins with the % character,
followed by optional alignment indication: positive numbers indicate that the
text that is inserted for the sequence shall be padded right to a total width
that is specified by the number, while negative number specify left padding.
Followed by the padding indication comes the actual sequence identifier, which
is usually a single letter.
In addition, newsboat provides other, more powerful sequences, such as
%>[char]
, which indicates that the text right to the sequence will be aligned
right on the screen, and characters between the text on the left and the text
on the right will be filled by [char]
. Another powerful format is the
conditional sequence, %?[char]?[format 1]&[format 2]?
: if the text of the
sequence identifier [char]
is non-empty, then [format 1]
will be evaluated
and inserted, otherwise [format 2]
will be evaluated and inserted. The &
and
[format 2]
are optional, i.e. if the identifier’s text is empty, then an
empty string will be inserted.
The following tables show what sequence identifiers are available for which format:
While a reload-all
operation is running, the download status indicates the
download status of a feed, which can be "to be downloaded" (indicated by "_"),
"currently downloading" (indicated by "."), successfully downloaded (indicated
by " ") and "download error" (indicated by "x").
Table 10. Available Identifiers for podlist-format
Identifier | Meaning |
---|---|
Dowload index | |
Currently downloaded size in megabytes, displays one digit of precision | |
Total dowload size in megabytes, displays one digit of precision | |
Dowloaded precentage, displays one digit of precision | |
Dowload speed, displays two digit of precision | |
Status of download, displays one of the folowing; "queued", "downloading", "ready", "canceled", "deleted", "incomplete", "played", "finished" or "failed" | |
Url of the download | |
Absolute filename of the download from the root directory (e.g. ~/downloads/podcast.mp3 → /home/name/downloads/podcast.mp3) | |
Basename of the download (e.g. /home/name/downloads/podcast.mp3 → podcast.mp3) |
Examples:
feedlist-format "%4i %n %11u %t" articlelist-format "%4i %f %D %?T?|%-17T| ?%t" notify-format "%d new articles (%n unread articles, %f unread feeds)" podlist-format "%4i [%-5p %%] %-12S %F"
Table 11. Available Identifiers for download-path and download-filename-format
Identifier | Meaning |
---|---|
Filename part of the download URL. May be empty. May include a query string | |
Name of the podcast feed | |
Name of the podcast feed. Contains the original feed’s name, even when selected through a query feed | |
Name of the podcast feed’s hostname | |
Title of the podcast | |
Extension of the podcast episode | |
Publication date of the podcast episode formatted as yyyy-mm-dd | |
Month when podcast episode was published | |
Abbreviated month name when podcast episode was published | |
Day when podcast episode was published | |
Hour when podcast episode was published | |
Minute when podcast episode was published | |
Second when podcast episode was published | |
Year when podcast episode was published formatted as yy | |
Year when podcast episode was published formatted as yyyy |
You can customize the title format of all available dialogs. Here is a list of dialogs with their respective title format configuration variables, and a list of available formats and their meaning. Please note that the title formats are localized, so if you work on a different locale that is supported by newsboat, the actually displayed title text may vary unless you customize it.
Table 12. Dialog Title Formats
Dialog | Configuration Variable | Default Value |
---|---|---|
Feed List | %N %V - Your feeds (%u unread, %t total)%?T? - tag `%T'&? | |
Article List | %N %V - Articles in feed '%T' (%u unread, %t total) - %U | |
Search Result | %N %V - Search result (%u unread, %t total) | |
File Browser | %N %V - %?O?Open File&Save File? - %f | |
Directory Browser | %N %V - %?O?Open Directory&Save File? - %f | |
Help | %N %V - Help | |
Select Tag Dialog | %N %V - Select Tag | |
Select Filter Dialog | %N %V - Select Filter | |
Article View | %N %V - Article '%T' (%u unread, %t total) | |
URL View | %N %V - URLs | |
Dialog List | %N %V - Dialogs |
Table 14. Feed List Title Format Identifiers
Identifier | Meaning |
---|---|
Currently selected tag (empty if none selected) |
Newsboat supports the highlighting of text in the feed list, the article list and the article view, using regular expressions to describe patterns to be highlighted. The command syntax goes like this:
highlight <target> <regex> <fgcolor> [<bgcolor> [<attribute> ...]]
Valid values for <target>
are feedlist
, articlelist
, article
and all
.
When specifying all
, the matching will be done in all three views. The
<regex>
must be regular expression, which will be matched case-insensitive
against the text. <fgcolor>
and <bgcolor>
specify the foreground color resp.
the background color of the matches. You can also specify 0 or more attributes.
You can find a list of valid colors and attributes in the Section 3.2, “Configuring Colors”.
Examples for possible highlighting configurations are:
highlight all "newsboat" red highlight article "^(Feed|Title|Author|Link|Date):" default default underline highlight feedlist "https?://[^ ]+" yellow red bold
In addition to generally highlighting text, there is also a specific way to
highlight articles in the article list based on whether they match a certain
filter expression. This means that you can highlight items in the article list
based on their content. This is done using the highlight-article
configuration
command.
The syntax is similar to the highlight
configuration command, with the difference
that there’s no need to specify a target (since it only applies in the article list),
and instead of a regular expression, a filter expression is used. After the filter
expression, the colors and attributes are specified in the same way.
Example:
highlight-article "author =~ \"Andreas Krennmair\"" white red bold
Newsboat supports an advanced concept of dialogs. Previously, all dialogs (feed list, article list, article view) were internally laid out as a pure stack. In 2.0, this changed: all dialogs are managed in a list, and the user can jump to another, previously opened dialog from everywhere. This allows a user to open more than one article list, more than one article view, etc., and switch between them without closing them.
The main dialog for this feature can be reached by pressing the "v" key. This opens the list of open dialogs. From there, the user can switch to another dialog by selecting the appropriate entry and pressing "Enter", or can close open dialogs by selecting them and pressing "Ctrl-X".
Newsboat implements limited support for the XDG Base Directory Specification. It needs to be set up manually by creating the following directories:
If these directories exist or the environment variables $XDG_CONFIG_HOME
and
$XDG_DATA_HOME
are set, newsboat will use these directories, otherwise it
will default to ~/.newsboat as its configuration directory.
If you’re currently using ~/.newsboat/ but wish to migrate to XDG directories, you should move the files as follows:
A podcast is a media file distributed over the internet using syndication feeds such as RSS, for later playback on portable players or computers. Newsboat contains support for downloading and saving podcasts. This support differs a bit from other podcast aggregators or "podcatchers" in how it is done.
Podcast content is transported in RSS feeds via special tags called "enclosures". Newsboat recognizes these enclosures and stores the relevant information for every podcast item it finds in an RSS feed. Since version 2.0, it also recognizes and handles the Yahoo Media RSS extensions. What the user then can do is to add the podcast download URL to a download queue. Alternatively, newsboat can be configured to automatically do that. This queue is stored in the file $HOME/.newsboat/queue.
The user can then use the download manager podboat
to download these files
to a directory on the local filesystem. Podboat comes with the newsboat
package, and features a look and feel very close to the one of newsboat. It
also shares the same configuration file.
Podcasts that have been downloaded but haven’t been played yet remain in the queue but are marked as downloaded. You can remove them by purging them from the queue with the "P" key. After you’ve played a file and close podboat, it will be removed from the queue. The downloaded file remains on the filesystem.
Table 19. Podboat Configuration Commands
Configuration Command | Argument(s) | Default | Description | Example |
---|---|---|---|---|
<path> | ~/ | Specifies the directory where podboat shall download the files to. Optionally, placeholders can be used to place downloads in a directory structure. See "Format Strings" section of Newsboat manual for details on available formats. This setting is applied at enqueueing time; changing it won’t affect download paths of the podcasts that were already added to the queue. | download-path "~/Downloads/%h/%n" | |
<string> | "%?u?%u&%Y-%b-%d-%H%M%S.unknown?" | Specifies how podboat would name the files it downloads (see also | download-filename-format "%F-%t.%e" | |
<number> | 1 | Specifies the maximum number of parallel downloads when automatic download is enabled. | max-downloads 3 | |
<player command> | "" | Specifies the player that shall be used for playback of downloaded files. | player "mp3blaster" | |
<format> | "%4i [%6dMB/%6tMB] [%5p %%] [%7k kb/s] %-20S %u -> %F" | This variable defines the format of entries in podboat’s download list. See the respective section in the documentation for more information on format strings. | podlist-format "%i %u %-20S %F" |
Table 20. Available Operations in Podboat
Operation | Default key | Description |
---|---|---|
d | Download the currently selected URL. | |
c | Cancel the currently selected download. | |
p | Start player with currently selected download. | |
D | Delete the currently selected URL from the queue. | |
P | Remove all finished and deleted downloads from the queue and load URLs that were newly added to the queue. | |
a | Toggle the "automatic download" feature where all queued URLs are downloaded one after the other. The "max-downloads" configuration option controls how many downloads are done in parallel. | |
+ | Increase the "max-downloads" option by 1. | |
- | Decrease the "max-downloads" option by 1. If the option is already 1, no further decrease is possible. |
A usual "use case" is to configure newsboat to automatically enqueue newly found podcast download URLs. Then, the user reloads the podcast RSS feeds in newsboat, and after that, uses podboat to view the current queue, and either selectively download certain files or automatically download them all together by pressing "a" within podboat.
During development and testing, you might want to run a second copy of Newsboat, operating with different config, URLs list or cache file. This can be achieved by creative use of XDG environment variables. This approach is not beautiful, but it works.
First of all, you will need to create a directory to store the data. Let’s call it test:
$ mkdir -p test/newsboat
Note that we also create a subdirectory called newsboat; this is required to satisfy XDG specification. ATTENTION: if this subdirectory is absent, Newsboat will attempt to run on your live data!
You can now create config and urls files inside test/newsboat; you can also copy cache.db if you don’t want to start with a fresh one.
When the files are ready, you can invoke Newsboat as follows:
$ XDG_CONFIG_HOME=test XDG_DATA_HOME=test newsboat
(This will look newsboat
binary up in your PATH
; if you’ve just built
your own, use ./newsboat
instead, or provide a full path.)
By modifying the environment in which Newsboat runs you also modify
environments of all the programs that Newsboat starts; that includes filters
and external HTML renderers. If they rely on XDG_*
variables, they will look
for things in test
directory and might fail.
For filters, you should either copy the files they need to test, or invoke them in such a way that they don’t look in XDG directories at all.
For renderers, you can work around the issue by undoing the modifications to environment, e.g.:
html-renderer "XDG_CONFIG_HOME=$HOME/.config XDG_DATA_HOME=$HOME/.data w3c"
As already said: not beautiful, but gets the job done.
This section was written by Elrond, originally for Newsbeuter.
SQLite, the db used by newsboat, supports triggers. These are small snippets of SQL that get executed inside the database by the database engine. They’re stored inside the db and the normal user (including newsboat itself) doesn’t see them. Just the db seems to do some magic: Like changing some values when you change another value.
So what is this good for when looking at newsboat? Well, first off, it’s a hack. The real answer should be to use application logic (do it inside newsboat, not in the db). So: Don’t use this, unless you know, what you’re doing, and unless you have some sort of backup.
So after the "don’t use it" you still want to know, what one can do? So here’s an example.
Suppose you have a strange feed where the articles become "new" by just changing their subject, and nothing else changes. The body is just empty, and the URL keeps the same. This feed really exists. It’s the "updated software rss feed" of some major company and the title just contains the name of the driver and version number. And the URL points to the download page. newsboat considers articles only as new, when they have a new UniqueID (this is good). So those articles are never marked as new (unread) ever again.
So what can we do? We do some magic: We let the db test if newsboat changes the subject and then let itself mark the article again as unread.
sqlite3
command line tool (available via apt-get install sqlite3
on Debian) or some other tool to do direct sql on the sqlite database.
Start sqlite3
with the newsboat db:
Rivendell:~/.newsboat% sqlite3 cache.db SQLite version 3.4.2 Enter ".help" for instructions sqlite>
Create the trigger:
sqlite> create trigger update_item_title update of title on rss_item > for each row when old.title != new.title > begin > update rss_item set unread = 1 where rowid == new.rowid; > end;
sqlite3
with "Ctrl-D" or .quit
.
That’s it. newsboat (well, its db) now marks articles as unread when their title changes. And nicely enough this works all inside newsboat, no need to restart it so that it rereads the cache, that magically modifies itself. It just works.
If you want to tell us something related to newsboat, don’t hesitate to send an email to our mailing list: newsboat@googlegroups.com
Alternatively, you can reach the newsboat developers on IRC: channel #newsboat on irc.libera.chat (also accessible via webchat and via Matrix) (UPDATED on May 26th 2021 to point to Libera; we do not have a channel on Freenode anymore; UPDATED on May 28th 2021 with links to the webchat and Matrix bridge).
If you want to report newsboat bugs, please use this issue tracker: https://github.com/newsboat/newsboat/issues/
MIT License
Copyright 2006-2015 Andreas Krennmair <ak@newsbeuter.org> Copyright 2015-2019 Alexander Batischev <eual.jp@gmail.com> Copyright 2006-2017 Newsbeuter contributors Copyright 2017-2019 Newsboat contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.