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