home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.elm
- Path: sparky!uunet!ftpbox!motsrd!mothost!lmpsbbs!mcil.comm.mot.com!gordonb
- From: gordonb@mcil.comm.mot.com (Gordon Berkley)
- Subject: Re: Filing by date
- Organization: Motorola Communications Israel Ltd., Tel Aviv
- Distribution: na
- Date: Sun, 23 Aug 1992 07:01:42 GMT
- Message-ID: <1992Aug23.070142.21856@lmpsbbs.comm.mot.com>
- References: <1992Aug17.225725.19137@awdprime.austin.ibm.com>
- Sender: news@lmpsbbs.comm.mot.com (Net News)
- Nntp-Posting-Host: 145.9.18.23
- Lines: 26
-
- In article <1992Aug17.225725.19137@awdprime.austin.ibm.com>, woan@exeter.austin.ibm.com (Ronald S. Woan) writes:
- |> Is there an easy way to file your mail by month?
-
- What I do, (not the greatest, but it works!) is to store my incoming and
- outgoing mail in the same folder where the folder name contains the
- date (eg., "mbox.9208"). The trick is to do this *without* having to
- touch the ELMRC file. To effect this, I actually set the folder to
- be "mbox" and then create a link from the "real" folder to the "dummy".
-
- The following is the portion of my ".profile" that creates the folders.
- [Note: this can - and is, by me - repeated for several time-dated folders
- which can be located elsewhere in my project-specific hierarchies.]
-
- MBOX_DATE=`date +%y%m`
- if [ ! -f ${HOME}/mail/mbox.${MBOX_DATE} ]
- then
- touch ${HOME}/mail/mbox.${MBOX_DATE}
- ln ${HOME}/mail/mbox.${MBOX_DATE} ${HOME}/mail/mbox
- fi
-
- The reason that this has to be done in such a kludgy fashion is that
- when you "edit" or otherwise change a folder, ELM scraps the old one
- and re-creates it. This would normally result in out-of-sync folders.
- --
- [ Gordon D. Berkley INTERNET: gordonb@mcil.comm.mot.com POST: cgb001 ]
- [ PHONE: +972 (3) 565-8727 FAX: +972 (3) 565-8754 (UTC-2) ]
-