home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / vmsnet / mail / pmdf / 2156 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  3.9 KB

  1. Path: sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!mips!swrinde!elroy.jpl.nasa.gov!decwrl!decwrl!infopiz!mccall!ipmdf-newsgate!list
  2. From: dan@innosoft.com (Daniel C. Newman)
  3. Newsgroups: vmsnet.mail.pmdf
  4. Subject: RE: deliver and 'vacation' processing
  5. Message-ID: <01GNSXW40UWI94E0VK@INNOSOFT.COM>
  6. Date: 20 Aug 92 19:53:54 GMT
  7. Organization: The Internet
  8. Lines: 86
  9. Return-Path: <epmdf@YMIR.CLAREMONT.EDU>
  10. Resent-Date: 20 Aug 1992 11:53:54 -0800 (PST)
  11. Resent-From: epmdf@YMIR.CLAREMONT.EDU
  12. Errors-To: epmdf@YMIR.CLAREMONT.EDU
  13. Resent-Message-ID: <01GNSXX5GOB695NS4E@YMIR.CLAREMONT.EDU>
  14. X-Vms-To: IN%"robin_goldstone@macgate.csuchico.edu"
  15. X-Vms-Cc: IPMDF
  16. Mime-Version: 1.0
  17. Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
  18. Content-Transfer-Encoding: 7BIT
  19.  
  20. > I have never used DELIVER before and I though I would experiment around with it
  21. > to set up a simple "vacation" process, such that whenever anyone sends mail to
  22. > my account, they would get a message back saying I am on vacation.  My
  23. > MAIL.DELIVERY looks like this:
  24.  
  25. > * * * A L DELIVER.LOG
  26. > * * * A E @VACATION.COM
  27. > * * * A D
  28. >
  29. > The first line is for debugging purposes. The second line invokes a DCL program
  30. > which sends the vacation message back to the user.  The third line delivers the
  31. > message to the mailbox.
  32. >
  33. > I am having trouble with my VACATION.COM procedure.  All I want it to do is
  34. > send a message back to the user.  It looks like this:
  35. >
  36. > $ MAIL VACATION.TXT 'FROM'
  37. >
  38. > The problem is the value of the symbol 'FROM' which DELIVER creates.  According
  39. > to the DELIVER.LOG file, the symbol looks like this:
  40. > $ FROM == "IN%""RGOLDSTONE@oavax.csuchico.edu""  ""Robin Goldstone"""
  41. >
  42. > When I try to do:
  43. > $ MAIL VACATION.TXT 'FROM'
  44. > I get the error:
  45. > %DCL-W-MAXPARM, too many parameters - reenter command with fewer parameters
  46. >  \"Robin Goldstone"\
  47. >
  48. > I know this is a quote problem.  If I do:
  49. > $ mail vacation.txt "IN%""RGOLDSTONE@oavax.csuchico.edu""  ""Robin Goldstone"""
  50. > it works fine.  So somewhere some quotes are getting stripped.  DCL and quotes
  51. > always gives me fits.  Can someone tell me what is happening and how I can fix
  52. > it?
  53.  
  54. You have to keep in mind that when a symbol is defined,
  55.  
  56.     $ from == "xxxx"
  57.  
  58. the outer set of quotes are not part of the symbol definition -- they're there
  59. to quote the stuff being defined.  For example, in
  60.  
  61.     $ from = "abcd efg"
  62.  
  63. the actual vaue of the symbol is
  64.  
  65.       abcd efg
  66.  
  67. and not
  68.  
  69.       "abcd efg"
  70.  
  71. This is what is different between the commands
  72.  
  73.       $ MAIL VACATION.TXT 'FROM'
  74.  
  75. and
  76.       $ MAIL VACATION.TXT "IN%""....."""
  77.  
  78.  
  79. Now, what you actually want to use is the command
  80.  
  81.       $ MAIL VACATION.TXT "''QFROM'"
  82.  
  83. > Also, another problem.  The last line of MAIL.DELIVERY is:
  84. > * * * A D
  85. > which causes the message to be delivered "normally."  However, I noticed that
  86. > the delivered message has a header on it.  I have the 'headeromit' keyword on
  87. > my 'l' channel, but DELIVER seems to be ignoring this.  Is this a bug?
  88.  
  89. No, this is an intentional feature.  When DELIVER is invoked, the l channel
  90. setting for headeromit / headerbottom is ignored.  This gives individual
  91. users some say in how their message headers are handled.  If you want to
  92. strip them, use the "O" action instead of "D".  (I think that is the correct
  93. action; I'm on the road right now and will leave the checking to you.)
  94.  
  95. This is an important feature and is the only mechanism which allows users
  96. to override the system management's decision to strip message headers.  It
  97. also provides a means for indivudual users to strip headers if they wish to and
  98. their system management doesn't want to.
  99.  
  100. By the way, be sure that your VACATION.COM keeps a record of addresses that
  101. have been sent a vacation message to.  Use this list to then prevent sending
  102. repeated messages to.  If you don't do this, then you can create some nasty
  103. mailing loops whereby you keep on sending mail to a mailing list....
  104.  
  105. Dan
  106.