🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.misc
Article #1373

Re: Handling old mail

#1373
From: Barton E. Schaefer
Date: Thu, 05 Jul 1990 01:57
27 lines
1391 bytes
In article <1990Jul3.130104.18250@dircon.uucp> sys0001@dircon.uucp () writes:
} Can anyone suggest a program which will handle the ageing of mail?
} 
} What I'm looking for is a program which looks at a user's mailbox file
} (in /usr/spool/mail) and transfers all messages older than, say, a month
} to a specified file in the user's own home directory. 

If you have Mush, you write a script:

    # Change home directory to match spool file
    set home = "~$thisfolder:t"
    # Collect the mail and save it to AGEDMAIL file
    pick -ago -1 month | save $home/AGEDMAIL
    # Update the folder and exit
    quit

And then you invoke it thus:

    mush -n! -u username -F agedmail-script

(or verbosely:

    mush -noinit! -user username -source agedmail-script

for you Sun folks).  This must be run by root to work successfully.
-- 
Bart Schaefer						schaefer@cse.ogi.edu
Technical Details
Message-ID: <10338@ogicse.ogc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!cs.uoregon.edu!ogicse!schaefer
References: <1990Jul3.130104.18250@dircon.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!cs.uoregon.edu!ogicse!schaefer
From: schaefer@ogicse.ogc.edu (Barton E. Schaefer)
Newsgroups: comp.mail.misc,comp.unix.questions
Subject: Re: Handling old mail
Message-ID: <10338@ogicse.ogc.edu>
Date: 5 Jul 90 01:57:12 GMT
References: <1990Jul3.130104.18250@dircon.uucp>
Organization: Oregon Graduate Institute (formerly OGC), Beaverton, OR
Lines: 27