🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #2685

Time dependant delivery question.

#2685
From: Andy Warner
Date: Fri, 22 Jan 1993 17:08
25 lines
1322 bytes
I'm running a recent version of IDA sendmail on a Sun 3/50.
For reasons I won't bore you with, I'd like to control the actions
of sendmail according to the time-of-day. What I need to do is
not initiate certain outgoing SMTP requests (even retries) for
specific times. The criteria could be priority, or maybe the
destination address (either host or user@host).

I was thinking of using a DBM file to map (say) "user@host"
onto a string like "MoTuWeThFr0800-1600" [or whatever, that's
not a problem].. Then in smtpinit() I would look up
user@host (is that available from smtpinit() ?) using mapkey(),
check the time (if present) against the wall clock, and defer
if required.

Does this sound reasonable, am I re-inventing a wheel ?

Any ideas/suggestions would be most welcome, if there's
interest, I'll summarise to the net.

Thanks.
-- 
andyw.	N0REN/G1XRL

andyw@aspen.cray.com	Andy Warner, Cray Research, Inc.	(612) 683-5835
Technical Details
Message-ID: <1993Jan22.110858.21866@hemlock.cray.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!timbuk.cray.com!hemlock.cray.com!andyw

Show Full Headers
Complete Article Headers
Newsgroups: comp.mail.sendmail
Path: arc1-ca.pugleaf.net!sparky!uunet!timbuk.cray.com!hemlock.cray.com!andyw
From: andyw@aspen32.cray.com (Andy Warner)
Subject: Time dependant delivery question.
Message-ID: <1993Jan22.110858.21866@hemlock.cray.com>
Originator: andyw@aspen32
Lines: 25
Nntp-Posting-Host: aspen32
Organization: Cray Research, Inc.
Date: 22 Jan 93 11:08:57 CST