newsticker: Automatic Processing
6 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 three arguments
FEED
the name of the corresponding news feed,
TITLE
the title of the headline,
DESC
the decoded description of the 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, the title and the description of a 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-images’),
• flash the screen while playing some sound,
• whatever you want.