home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / sys / amiga / uucp / 3078 < prev    next >
Encoding:
Text File  |  1992-12-29  |  3.6 KB  |  96 lines

  1. Path: sparky!uunet!math.fu-berlin.de!unidui!rrz.uni-koeln.de!Germany.EU.net!news.Hamburg.Germany.EU.net!hactar!news
  2. From: wusel@hactar.hanse.de (Kai 'wusel' Siering)
  3. Newsgroups: alt.sys.amiga.uucp
  4. Subject: Re: uucico sd.1 Part 1/1 (repost)
  5. Message-ID: <291292u1316@hamburg.uucp>
  6. Date: Tue, 29 Dec 1992 12:48:18 +0100
  7. Reply-To: Kai 'wusel' Siering <wusel@hactar.hanse.de>
  8. References: <9212281813.AA21761@enet-gw.pa.dec.com>
  9. Organization: Villa Straylight, Hamburg, FRG
  10. MIME-Version: 1.0
  11. Content-Type: text/plain; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Newsreader: Arn V1.00
  14. Sender: news@hamburg.uucp (Where No News Have Gone Before)
  15. Lines: 79
  16.  
  17. In article <9212281813.AA21761@enet-gw.pa.dec.com>, Steve Drew writes:
  18.  
  19. %
  20. % This contains source and binary. See README in archive.
  21. %
  22. % begin 666 uucico_sd.lha
  23. [...]
  24.  
  25. Thank you! (Wrong group, but at least it arrived =:->)
  26.  
  27.      But there is something really unwise (in my opinion) regarding the
  28. notification stuff:
  29.  
  30. uucico.c
  31. ---------------------------------------8<---------------------------------------
  32. [...]
  33. mail_notify(from,real,subject)
  34. char *from;
  35. char *real;
  36. char *subject;
  37. {
  38.     char mailcmd[NAMESIZE+100];
  39.     char *to = "postmaster";
  40.     /*
  41.      * should really inquire on SENDMAIL variable in config file
  42.      */
  43.     char *sendmail = "sendmail";
  44.  
  45.     if (strlen(subject) > 200) subject[200] = '\0';  /* cli input limits */
  46.  
  47.     sprintf(mailcmd, "%s <nil: >nil: -f %s -R \"%s\" -t %s -s \"%s\"",
  48.         sendmail,from,real,to,subject);
  49.  
  50.     Execute(mailcmd,NULL,NULL);
  51. }
  52. --------------------------------------->8---------------------------------------
  53.  
  54.      First, this doesn't work with my sendmail (it expects a mail
  55. (including headers) on stdin -- adding `-raw' would help (just checked));
  56. but even if it would, starting the mailer synchronously isn't a wise move:
  57. just think of another mail arriving at the same time or, even worse, the
  58. user started a mailreader (e. g.  AmiELM) to read postmaster's folder. The
  59. result would be a uucico waiting for sendmail to return, which itself waits
  60. for an UnLockFile("uumail:postmaster") to happen -- quite expensive in case
  61. of long distance calls =:-<
  62.  
  63. Would you please be so kind and change this to
  64.  
  65.     sprintf(mailcmd, "run %s <nil: >nil: -f %s -R \"%s\" -t %s -s \"%s\" -raw",
  66.         sendmail, from, real, to, subject);
  67.  
  68. I assume this should work with the AmigaUUCP sendmail, too (can someone
  69. please check this out?). [I would do this myself but neither have the time
  70. nor the compiler to do this -- and to cut down the number of different
  71. uucicos floading around, I really would prefer Steve to release a new
  72. version.]
  73.  
  74. Happy new year,
  75.             kai
  76.  
  77. P.S.: Steve, don't get me wrong! I appreciate your improvements, but I'm
  78.       in a terrible hurry (have to leave town in 5 hours), otherwise I
  79.       would have tried to recompile it myself (which means I will have
  80.       to unpack the 1.16 sources and start running into problems because
  81.       of using SAS instead of DICE. Well, I intend to take this uucico
  82.       and add the `uuspool:system/' scheme by February '93 unless some-
  83.       one els is willing to do this =:->).
  84.  
  85. --  _
  86.  _ //   Kai 'wusel' Siering, Villa Straylight, Hamburg, Germany. Go for MIME!
  87.  \X/: <wusel@hactar.hanse.de>  Exile: <wusel@wolfhh.hanse.de>  iso-8859-1: Σ÷ⁿ▀
  88.  
  89.               /away 18.12.1992 - 04.01.1993 (Phone: +49-4755-648)
  90.  
  91. "Ich    weiss,    ich   bin   ein   archaischer   Verfechter   von   heidnischen
  92. Stammtischbraeuchen  in Zeiten weltweiter Vernetzung, aber ich lamentiere lieber
  93. bei  einer guten Pizza und einem Donnergurgler (fuer Puristen Gargleblaster - Hi
  94. mw :-) /Kaffee/etc. als elektronisch."
  95.                       -- Bjoern Kriews in <1992Jun17.231852.4074@drdhh.hanse.de>
  96.