Automatic Processing
Apart from automatic marking of headlines (by means of filters) Newsticker provides the possibility to fully process newly arrived headlines. Instead of reading headlines yourself you can tell Newsticker to do that for you.
In order to do so write a function which takes two arguments
FEEDNAME
the name of the corresponding news feed,
ITEM
the decoded headline.
and add it to newsticker-new-item-functions. Each function contained in this list is called once for each new headline. Depending on the feed name and the contents of the new headline you can
- automatically download images referenced in HTML-formatted descriptions (for which a function already exists, see
newsticker-download-images), - automatically save enclosed audio and video files (for which another function exists as well, see
newsticker-download-enclosures), - flash the screen while playing some sound,
- whatever you want.