1 |
Neil Bothwick <neil@××××××××××.uk> writes: |
2 |
|
3 |
> On Wed, 28 Dec 2016 17:20:50 +0100, lee wrote: |
4 |
> |
5 |
>> > #!/bin/sh |
6 |
>> > |
7 |
>> > if [ $( eselect news count new ) != "0" ]; then |
8 |
>> > eselect news list | mail you@××××××××××××.are |
9 |
>> > fi |
10 |
>> |
11 |
>> Thanks! To actually read the news as email, I wrote this: |
12 |
>> |
13 |
>> #!/usr/bin/perl |
14 |
> [massive snip] |
15 |
> |
16 |
> What does this actually do? Does it separate each news item into a |
17 |
> separate mail, which sounds a neat idea. If you just want all the news |
18 |
> news items, you could replace "list" with "read new" in my |
19 |
> script^H^H^H^H^^Hhack. |
20 |
|
21 |
You can set it up either way, i. e. all in one email, or each item in |
22 |
one, or several items in several mails, by setting $msglen. I didn't |
23 |
know there is 'read new' ... |