2021-06-25 09:59:50 +02:00
|
|
|
(configuration
|
|
|
|
(post-hook
|
|
|
|
(hook-cons
|
2021-06-27 21:55:20 +02:00
|
|
|
(lambda (_)
|
|
|
|
(use-modules (srfi srfi-19))
|
|
|
|
(format #t "started processing: ~a\n"
|
|
|
|
(date->string (current-date))))
|
2021-06-25 09:59:50 +02:00
|
|
|
(hook-gen make-printer-hook)
|
|
|
|
(hook-gen
|
|
|
|
make-each-script-hook
|
2021-06-27 22:03:36 +02:00
|
|
|
"cat '~~CONTENT~~' > \"/tmp/mailtest/~~OPT(newsgroup)~~.~~TITLE~~.~~DATE~~.txt\""
|
2021-06-25 09:59:50 +02:00
|
|
|
'("Dear User,\n"
|
|
|
|
"You are decent. Here are your news: \n\n"
|
|
|
|
"Title: ~~TITLE~~\nDate: ~~DATE~~\n"
|
|
|
|
"URL: ~~LINK~~\n\n"
|
2021-06-27 21:55:20 +02:00
|
|
|
"~~DESCRIPTION~~\n"))))
|
2021-06-25 09:59:50 +02:00
|
|
|
(store-size 250)
|
|
|
|
(entry
|
|
|
|
(name "guix ci")
|
2021-06-27 22:03:36 +02:00
|
|
|
(url "http://ci.guix.gnu.org/events/rss/")
|
2021-06-30 18:38:03 +02:00
|
|
|
(type rss)
|
2021-06-27 22:03:36 +02:00
|
|
|
(opts (("newsgroup" . "org.gnu.guix.ci"))))
|
2021-06-25 09:59:50 +02:00
|
|
|
(entry
|
|
|
|
(name "gentoo news")
|
2021-06-27 22:03:36 +02:00
|
|
|
(url "https://planet.gentoo.org/universe/rss20.xml")
|
2021-06-30 18:38:03 +02:00
|
|
|
(type rss)
|
2021-06-27 22:03:36 +02:00
|
|
|
(opts (("newsgroup" . "org.gentoo.planet"))))
|
2021-06-25 09:59:50 +02:00
|
|
|
(entry
|
|
|
|
(name "arch news")
|
2021-06-27 22:03:36 +02:00
|
|
|
(url "https://archlinux.org/feeds/news/")
|
2021-06-30 18:38:03 +02:00
|
|
|
(type rss)
|
2021-06-27 22:03:36 +02:00
|
|
|
(opts (("newsgroup" . "org.arch.news")))))
|