home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / pascal / 4913 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  2.2 KB

  1. Path: sparky!uunet!dtix!mimsy!afterlife!adm!news
  2. From: det15wx@osan-emh.af.mil (DETACHMENT 15 WEATHER)
  3. Newsgroups: comp.lang.pascal
  4. Subject: re: reading News Date headers
  5. Message-ID: <32119@adm.brl.mil>
  6. Date: 19 Aug 92 23:56:16 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 42
  9.  
  10.  
  11.                    I N T E R O F F I C E   M E M O R A N D U M
  12.  
  13.                                         Date:      20-Aug-1992 08:42am KST
  14.                                         From:      Maj Ken Waters 
  15.                                                    DET15WX 
  16.                                         Dept:      CC
  17.                                         Tel No:    784-6332
  18.  
  19. TO:  Remote Addressee                     ( _INFO-PASCAL@BRL.MIL )
  20.  
  21.  
  22. Subject: re: reading News Date headers
  23.  
  24. >  I'm looking for a Turbo Pascal function or procedure that can be passed
  25. >  the contents of a news posting or mail message's Date: header and return
  26. >  data suitable for use by a SetFTime call.
  27. >  I'm trying to automate archiving of saved articles and especially of
  28. >  some mailing lists I'm on, and I need to make the file date/time stamp
  29. >  match the posting date. I can do it by hand with touch, but that's
  30. >  a *major* pain!
  31. >  I'll write it myself if I have to, but I'm hoping someone else has
  32. >  written it.
  33.  
  34. Leonard,
  35.  
  36.    I had a similar problem (40-60 messages a day) and didn't have the
  37. time to manually manipulate them all.  Let me tell you what I did.  First
  38. of all, all my messages are captured using an automated script into one
  39. file.  Then I use a splitting/parsing program which extracts the date/from/
  40. subj info, it then writes the message out to a separate file, named from
  41. the date/time (MMDDHHMM.).  In addition, an index file is created so that
  42. I can see at a glance what all came in.  I know that's not exactly what
  43. you were asking but it may be a solution to your dilemma.  The second part
  44. of my way of dealing with this is a -simple- file viewing program which
  45. allows the option to 'zip' files into appropriate cubby holes depending
  46. on the subject.  I use the EXEC function for that.  If you are interested
  47. in either file let me know and I'll be glad to post.
  48.  
  49.      Ken
  50. --- Ken Waters/N4PBY ---------- Internet: det15wx@osan-emh.af.mil ---------
  51.     Tachikawa, Japan
  52.