home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / bit / listserv / pmdfl / 1796 < prev    next >
Encoding:
Text File  |  1992-08-16  |  5.7 KB  |  157 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!INNOSOFT.COM!DAN
  3. Errors-to: epmdf@YMIR.BITNET
  4. X-Envelope-to: PMDF-L@IRLEARN.BITNET
  5. X-VMS-To: IN%"C.Chaundy@its.unimelb.EDU.AU"
  6. X-VMS-Cc: IPMDF
  7. MIME-version: 1.0
  8. Content-type: TEXT/PLAIN; CHARSET=US-ASCII
  9. Content-transfer-encoding: 7BIT
  10. Message-ID: <01GNN6FFPZJM95NC68@YMIR.CLAREMONT.EDU>
  11. Date:         Mon, 17 Aug 92 10:23:38 GMT
  12. Sender:       PMDF Distribution List <PMDF-L@IRLEARN>
  13. From:         "Daniel C. Newman" <DAN@INNOSOFT.COM>
  14. Subject:      RE: Problem with printer channel?
  15. X-To:         C.Chaundy@its.unimelb.EDU.AU, IPMDF@YMIR
  16. Newsgroups: bit.listserv.pmdf-l
  17. Lines: 138
  18.  
  19. > With V4.1, I want to upgrade to use the standard PMDF printer channel and
  20. > wondered how it reacted if the mailbox part of the 'to' address was not a
  21. > AVPL to avoid having to re-educate users and make bulk changes to a huge
  22. > number of directory channel files - I got the answer - *badly*.  But what
  23. > was worse was instead of generating a bounce message to the postmaster and
  24. > the originator, it generated a message to the postmaster and the recipient!
  25. > Of course, the recipient address was illegal (no AVPL) so a groovy little
  26. > mail loop started up :-).
  27.  
  28. A patch for this (in the 4.1-8 timeframe) was posted to info-pmdf on 26 June.
  29. I've included the patch below.
  30.  
  31. > Apart from the fact that I will have to move to AVPL pairs (it would have
  32. > been nice to default mailboxes that are not AVPL pairs to just 'Attention:'),
  33.  
  34. No, the mail should just bounce.  Doing otherwiise makes an assumption: it
  35. assumes that the rest of the address is correct.  For instance, maybe I just
  36. sent mail to /.../@printer.innosoft.com and now I'm sending mail to Ned which
  37. and I accidentally send it to ned@printer.innosoft.com.  Now it prints over
  38. on the admin. side of the Innosoft office and the wrong people have a chance
  39. to read it....  Anyhow, maybe this sounds like a weak argument but my point is
  40. that making assumptions about mailboxes is always fraught with peril and best
  41. avoided whenever possible.
  42.  
  43. > I assume this other behaviour is most definitely a bug in the printer channel.
  44.  
  45. It was.
  46.  
  47. Dan
  48. ------------
  49.  
  50. Date: 26 Jun 1992 09:36 -0800 (PST)
  51. From: "Daniel C. Newman" <DAN@HMCVAX.CLAREMONT.EDU>
  52. Subject: RE: Delivery failure on the Printer channel....
  53. To: SMITH%NYUMED.BITNET@ymir.claremont.edu, INFO-PMDF@YMIR.CLAREMONT.EDU
  54. Errors-to: epmdf@YMIR.CLAREMONT.EDU
  55. Resent-message-id: <01GLNZ343T428ZDYVD@YMIR.CLAREMONT.EDU>
  56. Message-id: <01GLNZ2EFH688WVYOD@HMCVAX.CLAREMONT.EDU>
  57. X-Envelope-to: ned+info-pmdf, portia
  58. X-VMS-To: IN%"SMITH@NYUMED.BITNET"
  59. X-VMS-Cc: IPMDF
  60. Content-type: TEXT/PLAIN; CHARSET=US-ASCII
  61. Content-transfer-encoding: 7BIT
  62.  
  63. > I tried to use All-in-fun mail to create a message to send to the printer
  64. > channel.  To make it more interesting, I put an attachment on it (Ultimately
  65. > it would be good to have PostScript attachments, since this is a LaserWriter
  66. > being driven by PacerPrint).
  67.  
  68. Attachments won't buy you anything special.  The printer channel merely prints
  69. verbatim the contents of the message body.  If there's PostScript in it, it
  70. prints as text the PostScript.  If there's an encoded binary attachment, it
  71. prints the encoded data.
  72.  
  73. > What happened was that PMDF-MR and the pronter channel kept kicking the thing
  74. > back and forth: no printing though....  I then tried to kill it, whcih was
  75. > not at all easy (wait until the printer channel was working, stop the queue,
  76. > delete the job, delete the queued files).
  77.  
  78. Well, if there is some sort of error ($SNDJBC call fails, attribute-value pairs
  79. in the printer address are malformed, etc.) the printer channel will bounce
  80. the message back to the address specified by the Errors-To: header.  If no
  81. such header is present, the message is bounced to the envelope From: address
  82.  
  83. Now, the problems turns out to be that the envelope To: address is accidentally
  84. being used in place of the envelope From: address and thereby generating the
  85. loop you're seeing.
  86.  
  87. Dan
  88.  
  89. Here's the VMS DIFFerences
  90.  
  91. ************
  92. File PMDF_ROOT:[SRC]PRINTER.PAS;60
  93.   414     procedure add_bad (var env_to, why : vstring);
  94.   415
  95. ******
  96. File PMDF_ROOT:[SRC]PRINTER.PAS;59
  97.   414     procedure add_bad (var from, why : vstring);
  98.   415
  99. ************
  100. ************
  101. File PMDF_ROOT:[SRC]PRINTER.PAS;60
  102.   425           envelope_to := env_to;
  103.   426           reason      := why;
  104.   427           next        := nil;
  105.   428         end; (* with *)
  106. ******
  107. File PMDF_ROOT:[SRC]PRINTER.PAS;59
  108.   425           envelope_from := from;
  109.   426           reason        := why;
  110.   427           next          := nil;
  111.   428         end; (* with *)
  112. ************
  113.  
  114.  
  115. and here's the context differences
  116.  
  117. *** PRINTER.PAS;60
  118. --- PRINTER.PAS;59
  119. **************
  120. *** 411,417
  121.       printer_file                           : text;
  122.       to_address_list, to_address_list_root  : address_list_ptr;
  123.  
  124. !   procedure add_bad (var env_to, why : vstring);
  125.  
  126.       begin (* add_bad *)
  127.         if bad_addresses = nil then begin
  128. --- 411,417 -----
  129.       printer_file                           : text;
  130.       to_address_list, to_address_list_root  : address_list_ptr;
  131.  
  132. !   procedure add_bad (var from, why : vstring);
  133.  
  134.       begin (* add_bad *)
  135.         if bad_addresses = nil then begin
  136. **************
  137. *** 422,430
  138.           bad_addresses := bad_addresses^.next;
  139.         end; (* if *)
  140.         with bad_addresses^ do begin
  141. !         envelope_to := env_to;
  142. !         reason      := why;
  143. !         next        := nil;
  144.         end; (* with *)
  145.       end; (* add_bad *)
  146.  
  147. --- 422,430 -----
  148.           bad_addresses := bad_addresses^.next;
  149.         end; (* if *)
  150.         with bad_addresses^ do begin
  151. !         envelope_from := from;
  152. !         reason        := why;
  153. !         next          := nil;
  154.         end; (* with *)
  155.       end; (* add_bad *)
  156.  
  157.