Gentoo Archives: gentoo-user

From: lee <lee@××××××××.de>
To: gentoo-user@l.g.o
Subject: mailer "module" for 'eselect news' (Re: [gentoo-user] from Firefox52: NO pure ALSA?, WAS: Firefox 49.0 & Youtube... Audio: No)
Date: Wed, 28 Dec 2016 16:23:42
Message-Id: 87pokcrsga.fsf_-_@heimdali.yagibdah.de
In Reply to: Re: [gentoo-user] from Firefox52: NO pure ALSA?, WAS: Firefox 49.0 & Youtube... Audio: No by Neil Bothwick
1 Neil Bothwick <neil@××××××××××.uk> writes:
2
3 > On Tue, 27 Dec 2016 20:21:19 +0100, lee wrote:
4 >
5 >> > Even more reasonable:
6 >> >
7 >> > eselect news read new
8 >> >
9 >> > will only come up with the latest as yet unread news, rather than a
10 >> > long list which could have accumulated over the years.
11 >>
12 >> It seems to be clearing out the list automatically.
13 >>
14 >> [1] says the mailer module of eselect was removed. Is there a better
15 >> way to read them than with eselect?
16 >
17 > Put this script in /etc/portage/postsync.d and make it executable
18 >
19 > #!/bin/sh
20 >
21 > if [ $( eselect news count new ) != "0" ]; then
22 > eselect news list | mail you@××××××××××××.are
23 > fi
24
25 Thanks! To actually read the news as email, I wrote this:

Attachments

File name MIME type
eselect-news-mail.pl text/x-perl

Replies