🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
7 messages
7 total messages Started by David Pashley Wed, 08 Sep 1999 00:00
[slrn] new feature suggestions
#51696
Author: David Pashley
Date: Wed, 08 Sep 1999 00:00
24 lines
1440 bytes
Would anyone be interested in the following features being added to
slrn:

When posting and you do not make any modifications to the article, slrn
will cancel posting that article, ala mutt. 

When adding rules to the score file with K, adding the option of
specifying the number of days that you want the score for. Currently you
can choose a date, but often I want to flag a article's subject so I can
read any follow ups. I would only like to have that rule for 10 days. I
would rather say I want to follow that subject for the next 10 days than
work out when 10 days from now is.

If anyone is interested in these features, I'll have a go at adding
them. If anyone knows of that feature already existing or of any
patches, I'll not bother.

-- 
David Pashley
david@davidpashley.com
http://www.davidpashley.com
Now he understood - "If it ain't broken, don't fix it"

Re: [slrn] new feature suggestions
#51667
Author: Andreas Barth
Date: Wed, 08 Sep 1999 00:00
27 lines
1620 bytes
On Wed, 8 Sep 1999 11:36:21 +0100 (BST), David Pashley <cszdp@scs.leeds.ac.uk> wrote:
> When posting and you do not make any modifications to the article, slrn
> will cancel posting that article, ala mutt. 

Exists. Use
| % If non-zero, abort posting or email operation if the file was not modified
| % by the editor.
| set abort_unmodified_edits 1


> When adding rules to the score file with K, adding the option of
> specifying the number of days that you want the score for. Currently you
> can choose a date, but often I want to flag a article's subject so I can
> read any follow ups. I would only like to have that rule for 10 days. I
> would rather say I want to follow that subject for the next 10 days than
> work out when 10 days from now is.

That seems interessting. It would be nice to have a default
value, so that normally all I have to do ist to acceppt.



Andi
-- 
sig lost

Re: [slrn] new feature suggestions
#51689
Author: Remco Gerlich
Date: Wed, 08 Sep 1999 00:00
20 lines
1376 bytes
David Pashley <cszdp@scs.leeds.ac.uk> wrote:
> Would anyone be interested in the following features being added to
> slrn:
> 
> When posting and you do not make any modifications to the article, slrn
> will cancel posting that article, ala mutt. 

From slrn.rc:

% If non-zero, abort posting or email operation if the file was not modified
% by the editor.
set abort_unmodified_edits 0



-- 
Remco Gerlich,  scarblac@pino.selwerd.cx
  1:47pm  up 21 days, 20:13,  5 users,  load average: 0.09, 0.05, 0.05

Re: [slrn] new feature suggestions
#51704
Author: David Pashley
Date: Wed, 08 Sep 1999 00:00
23 lines
1334 bytes
Remco Gerlich's words, in praise for the llamas, were:
> David Pashley <cszdp@scs.leeds.ac.uk> wrote:
> > Would anyone be interested in the following features being added to
> > slrn:
> > 
> > When posting and you do not make any modifications to the article, slrn
> > will cancel posting that article, ala mutt. 
> 
> From slrn.rc:
> 
> % If non-zero, abort posting or email operation if the file was not modified
> % by the editor.
> set abort_unmodified_edits 0

Damn, its about time I reread /usr/doc/slrn/slrn.rc

-- 
David Pashley
david@davidpashley.com
http://www.davidpashley.com
Now he understood - "If it ain't broken, don't fix it"

Re: [slrn] new feature suggestions
#51720
Author: 0x0000
Date: Thu, 09 Sep 1999 00:00
33 lines
1810 bytes
On Wed, 8 Sep 1999 11:36:21 +0100 (BST), 
David Pashley <cszdp@scs.leeds.ac.uk> wrote:
>Would anyone be interested in the following features being added to
>slrn:
>
>When posting and you do not make any modifications to the article, slrn
>will cancel posting that article, ala mutt. 
>
>When adding rules to the score file with K, adding the option of
>specifying the number of days that you want the score for. Currently you
>can choose a date, but often I want to flag a article's subject so I can
>read any follow ups. I would only like to have that rule for 10 days. I
>would rather say I want to follow that subject for the next 10 days than
>work out when 10 days from now is.

This one sounds particularly useful to me.

>
>If anyone is interested in these features, I'll have a go at adding
>them. If anyone knows of that feature already existing or of any
>patches, I'll not bother.
>
>-- 
>David Pashley
>david@davidpashley.com
>http://www.davidpashley.com
>Now he understood - "If it ain't broken, don't fix it"


-- 
0x0000

Re: [slrn] new feature suggestions
#51735
Author: David Pashley
Date: Thu, 09 Sep 1999 00:00
72 lines
3147 bytes
Andreas Barth's words, in praise for the llamas, were:
> On Wed, 8 Sep 1999 11:36:21 +0100 (BST), David Pashley <cszdp@scs.leeds.ac.uk> wrote:
[snip me not reading the manual]
> 
> > When adding rules to the score file with K, adding the option of
> > specifying the number of days that you want the score for. Currently you
> > can choose a date, but often I want to flag a article's subject so I can
> > read any follow ups. I would only like to have that rule for 10 days. I
> > would rather say I want to follow that subject for the next 10 days than
> > work out when 10 days from now is.
> 
> That seems interessting. It would be nice to have a default
> value, so that normally all I have to do ist to acceppt.
> 
The default is to not expire the score, so it wouldn't really be
possible to do that.

Below is a patch I worked on last night against 0.9.5.7. There could be
a memory leak caused by localtime allocating memory to the tm struct.

--- slrn-0.9.5.7/src/editscore.c.old	Wed Sep  8 19:16:48 1999
+++ slrn-0.9.5.7/src/editscore.c	Thu Sep  9 09:41:56 1999
@@ -45,7 +45,7 @@
    int ich;
    char file[256];
    char qregexp[512];
-   unsigned int mm = 0, dd = 0, yy = 0;
+   unsigned int mm = 0, dd = 0, yy = 0, d = 0;
    int use_expired = 0;
    unsigned int linenum = 0;
    char *q, *ng = newsgroup;
@@ -78,16 +78,29 @@
 	while (1)
 	  {
 	     *qregexp = 0;
-	     if (-1 == slrn_read_input ("Expires (MM/DD/YYYY or DD-MM-YYYY or leave blank)", NULL, qregexp, 1, 0))
+	     if (-1 == slrn_read_input ("Expires (MM/DD/YYYY or DD-MM-YYYY or DDdays or leave blank)", NULL, qregexp, 1, 0))
 	       return -1;
 	     if (*qregexp)
 	       {
-		  if (((3 != sscanf (qregexp, "%u/%u/%u", &mm, &dd, &yy))
+		  if ((((3 != sscanf (qregexp, "%u/%u/%u", &mm, &dd, &yy))
 		       && (3 != sscanf (qregexp, "%u-%u-%u", &dd, &mm, &yy)))
 		      || (dd > 31)
 		      || (mm > 12)
 		      || (yy < 1900))
+		      &&((1 != sscanf (qregexp, "%udays", &d))
+		      || (d < 0)))
 		    continue;
+
+		 if (d>0) {
+			 struct tm *date;
+			 myclock = time ((time_t *) 0);
+			 myclock = myclock + (d * 86400);
+			 date = localtime (&myclock);
+			 dd = date->tm_mday;
+			 mm = date->tm_mon + 1;
+			 yy = date->tm_year + 1900;
+		 }
+
 		  use_expired = 1;
 		  break;
 	       }


-- 
David Pashley
david@davidpashley.com
http://www.davidpashley.com
Now he understood - "If it ain't broken, don't fix it"

Re: [slrn] new feature suggestions
#51751
Author: Christian Perrier
Date: Thu, 09 Sep 1999 00:00
11 lines
1077 bytes
Andreas Barth <aba@muenchen.pro-bahn.de> wrote :

>That seems interessting. It would be nice to have a default
>value, so that normally all I have to do ist to acceppt.

Supported.

-- 


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads