home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / mail / sendmail / 3254 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.3 KB  |  37 lines

  1. Newsgroups: comp.mail.sendmail
  2. Path: sparky!uunet!timbuk.cray.com!hemlock.cray.com!andyw
  3. From: andyw@aspen32.cray.com (Andy Warner)
  4. Subject: Time dependant delivery question.
  5. Message-ID: <1993Jan22.110858.21866@hemlock.cray.com>
  6. Originator: andyw@aspen32
  7. Lines: 25
  8. Nntp-Posting-Host: aspen32
  9. Organization: Cray Research, Inc.
  10. Date: 22 Jan 93 11:08:57 CST
  11.  
  12.  
  13. I'm running a recent version of IDA sendmail on a Sun 3/50.
  14. For reasons I won't bore you with, I'd like to control the actions
  15. of sendmail according to the time-of-day. What I need to do is
  16. not initiate certain outgoing SMTP requests (even retries) for
  17. specific times. The criteria could be priority, or maybe the
  18. destination address (either host or user@host).
  19.  
  20. I was thinking of using a DBM file to map (say) "user@host"
  21. onto a string like "MoTuWeThFr0800-1600" [or whatever, that's
  22. not a problem].. Then in smtpinit() I would look up
  23. user@host (is that available from smtpinit() ?) using mapkey(),
  24. check the time (if present) against the wall clock, and defer
  25. if required.
  26.  
  27. Does this sound reasonable, am I re-inventing a wheel ?
  28.  
  29. Any ideas/suggestions would be most welcome, if there's
  30. interest, I'll summarise to the net.
  31.  
  32. Thanks.
  33. -- 
  34. andyw.    N0REN/G1XRL
  35.  
  36. andyw@aspen.cray.com    Andy Warner, Cray Research, Inc.    (612) 683-5835
  37.