home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 22215 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  3.5 KB

  1. Path: sparky!uunet!charon.amdahl.com!amdahl!rtech!pacbell.com!sgiblab!spool.mu.edu!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
  2. From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: ?modifying mail profile?
  5. Date: 28 Jan 1993 02:45:10 GMT
  6. Organization: HST Wide Field/Planetary Camera
  7. Lines: 71
  8. Distribution: world
  9. Message-ID: <1k7hbmINNn40@gap.caltech.edu>
  10. References: <andrea.728156651@pX1.stfx.ca>
  11. Reply-To: carl@SOL1.GPS.CALTECH.EDU
  12. NNTP-Posting-Host: sol1.gps.caltech.edu
  13.  
  14. In article <andrea.728156651@pX1.stfx.ca>, andrea@pX1.stfx.ca (John Andrea) writes:
  15. >I'm pretty sure that I want to set all my users mail profiles to have
  16. >auto_purge set on. Mostly students as users, but everyone is eating up
  17. >disk/quota with deleted mail messages and few people set it on for
  18. >themselves.
  19. >
  20. >But is seems that MAIL will only let system users modify forwarding
  21. >addresses (for VMS 5.4-2). And not modify any other options.
  22. >
  23. >Thanks to Bob Marshall for sending me a copy of MAILUAF.COM for
  24. >modifying the profile data. But that procedure doesn't seem to know
  25. >about the auto_purge flag.
  26. >
  27. >So my questions
  28. >
  29. >1. Does anyone have a small procedure for doing exactly what i want ?
  30. >   To turn on auto_purge for any or all users listed in the mail
  31. >   profile.
  32.  
  33. You could submit a batch job for each of them that does that.
  34.     $    SET NOON
  35.     $    CREATE AUTOPURGE.COM
  36.     $    DECK
  37.     $    MAIL
  38.     SET AUTO_PURGE
  39.     $    EOD
  40.     $    OPEN/READ/SHARE=WRITE FILE SYS$SYSTEM:VMSMAIL_PROFILE.DATA
  41.     $ LOOP:    READ/END=DONE FILE REC
  42.     $    USER = F$EDIT(F$EXTRACT(0, 31, REC), "TRIM")
  43.     $    SUBMIT/USER='USER'/NOLOG AUTO_PURGE
  44.     $    GOTO LOOP
  45.     $ DONE:    CLOSE FILE
  46.  
  47. >3. How does one get listed in the mail profile ?
  48.  
  49. As soon as you receive mail (thus causing MAIL to set the new mail count) or
  50. set any of things defined in VMSMAIL_PROFILE.DATA, a record is created.
  51.  
  52. >   I'll want to set auto_purge to on for any new users that i add from
  53. >   now on, and so will use that small procedure (see 1 & 2 above) for
  54. >   the setting from inside my add_user procedure.
  55. >   But i've looked at the existing mail profile data file and see that
  56. >   not all users have a mail profile record.
  57. >   Do you not get a record until you have mail ?
  58.  
  59. Right.
  60.  
  61. >     If thats true then my add_user could send mail to the new user then
  62. >     make the setting for auto_purge right away.
  63. >   But some users who have logged on don't have a record. Is it bacause
  64. >   they don't have any mail ?
  65.  
  66. Right.
  67.  
  68. >     This seems to be true for anyone who has set forwarding to a
  69. >     different system.
  70.  
  71. When creating a new account, it's probably a good idea to send a mail message
  72. introducing them to the peculiarities of your system.  This also helps to
  73. confirm that you've set up the account properly.  If you don't want to send
  74. them mail, but want to make sure they've got a record in VMSMAIL_PROFILE.DATA,
  75. you could, as part of your account-creation procedure, have it first set then
  76. remove a forwarding address for them.
  77. --------------------------------------------------------------------------------
  78. Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
  79.  
  80. Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
  81. understanding of astronomy is purely at the amateur level (or below).  So
  82. unless what I'm saying is directly related to VAX/VMS, don't hold me or my
  83. organization responsible for it.  If it IS related to VAX/VMS, you can try to
  84. hold me responsible for it, but my organization had nothing to do with it.
  85.