[comp.os.vms] Dcl & mail questions

CS_4313_12@uta.EDU (HERBASA KHAN) (04/26/88)

Hi,

I an thinking of writing a DCL procedure that will,

1- Run from batch
2- Determine the number of old messages.
3- Extract and delete only the old messages leaving the new ones.
4- Copy the extracted files to tape

The problem is in determining how may old messges exist. Is there
any way the program can determine this with out it being entered by a user?

Since my knowledge of DCL is limited I will be thankful for any information
regarding other problems I may encounter.

Thanks in advance

(*)=(*)=(*)=(*)=(*)=(*)=(*)=(*)=(*)=(*)=(*)=(*)=(*)=(*)=(*)=(*)=(*)=(*)=(*)=(*)

fsinf@iravcl.ira.uka.de (05/02/88)

In article <8805011318.AA25660@ucbvax.Berkeley.EDU>, CS_4313_12@uta.EDU (HERBASA KHAN) writes:
> 2- Determine the number of old messages.
> 3- Extract and delete only the old messages leaving the new ones.
> 
> The problem is in determining how many old messges exist. Is there
> any way the program can determine this without it being entered by a user?

Don't count your messeges, just try
!------------------------------- cut here ------------------------
$ mail					! ** don't use empty lines within **
  select mail
  extract/all [<dir>]<file.name>
  delete/all				! delete the old messeges
  select newmail
  move/all/noconfirm mail		! save all the new one
  exit
$ <other commands>
$ exit
!------------------------------- cut here ------------------------

I hope this helps ...

Best regards, Elmar Schuetz
--
Some call me an expert - but I think I'm not.