home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / mail / elm / 2193 < prev    next >
Encoding:
Text File  |  1992-08-22  |  1.7 KB  |  40 lines

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