Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Only God can make random selections.


computers / news.software.readers / [dialog] Is there a script to empty the outbox at a given system time

SubjectAuthor
* [dialog] Is there a script to empty the outbox at a given system timeRudolph Rhein
`- Re: [dialog] Is there a script to empty the outbox at a given system timeBernd Rose

1
[dialog] Is there a script to empty the outbox at a given system time

<tktr9g$44p$1@gioia.aioe.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=721&group=news.software.readers#721

  copy link   Newsgroups: news.software.readers
Path: i2pn2.org!i2pn.org!aioe.org!QY8lqxVz8w3yLUQGRtxgbg.user.46.165.242.75.POSTED!not-for-mail
From: RudolphRhein@nospam.net (Rudolph Rhein)
Newsgroups: news.software.readers
Subject: [dialog] Is there a script to empty the outbox at a given system time
Date: Mon, 14 Nov 2022 18:44:44 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tktr9g$44p$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="4249"; posting-host="QY8lqxVz8w3yLUQGRtxgbg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: 40tude_Dialog/2.0.15.41 (Beta 38)
X-Notice: Filtered by postfilter v. 0.9.2
 by: Rudolph Rhein - Mon, 14 Nov 2022 16:44 UTC

Sometimes I want to send articles at a certain time, such as timed
announcements.

I have to set an alarm on my phone to remember to send them.

Is there any known script that will send all the messages in the dialog
outbox at a given system time?

Re: [dialog] Is there a script to empty the outbox at a given system time

<17zx2b0fez0xj$.dlg@b.rose.tmpbox.news.arcor.de>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=724&group=news.software.readers#724

  copy link   Newsgroups: news.software.readers
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: b.rose.tmpbox@arcor.de (Bernd Rose)
Newsgroups: news.software.readers
Subject: Re: [dialog] Is there a script to empty the outbox at a given system time
Date: Mon, 14 Nov 2022 23:21:59 +0100
Message-ID: <17zx2b0fez0xj$.dlg@b.rose.tmpbox.news.arcor.de>
References: <tktr9g$44p$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: solani.org;
logging-data="908627"; mail-complaints-to="abuse@news.solani.org"
User-Agent: 40tude_Dialog/2.0.15.41 (1e110686.76.317)
Cancel-Lock: sha1:FPGFJxvTMd7nT0b+qJzdNVTq44c=
X-User-ID: eJwNyckBwCAMA7CVcuCYjENNs/8Irb5Clpe4CrUwGPP2NNsLEi0YTrXd592htGWjUlApNoDyvtGxD/fo3JyX/014gn7Aqw+FYBjS
 by: Bernd Rose - Mon, 14 Nov 2022 22:21 UTC

On Mon, 14th Nov 2022 18:44:44 +0200, Rudolph Rhein wrote:

> Is there any known script that will send all the messages in the dialog
> outbox at a given system time?

Actually, you need 2 scripts.

One is an Event script, that will send all messages, when a timer triggers.
Which timer of the two predefined ones you use depends on, which isn't used
for anything else during the time span, your send-timer runs.

------------------------------------------------------------------------------
Program OnTimer1;
Procedure OnTimer1;
Begin
ADo('SendAllInOutbox');
// You probably want to execute SendAll only once
timer1.enabled := false;
End;
Begin
End.
------------------------------------------------------------------------------

The second script is necessary to initiate and start the timer. It can be
part of a larger script, that executes other tasks, as well. (For instance
OnStartup.) Or it can be a small Custom script. Question is, how to initiate
the timer: You can hard-code a time-span or a certain time, use a time value
written in a text file, query the value runtime as input,... Some of these
approaches are fairly simple, some quite sophisticated. I'll show the most
simple one, using a hard-coded time span of 2 hours in a Custom script. This
script could be assigned to a button or a hotkey.

------------------------------------------------------------------------------
Program SetSendAllTimer;
Const
TimeHours = 2;
Begin
With Timer1 Do
Begin
// Timer expects value in ms
Interval := 1000 * 60 * 60 * TimeHours;
Enabled := True;
End;
End.
------------------------------------------------------------------------------

If you know, what approach you need, we can discuss changes or alternative
methods.

HTH.
Bernd

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor