On 22-May-07 09:26:57, Chris G wrote:
On Mon, May 21, 2007 at 11:00:28PM +0100, Ted Harding wrote:
[...] Possibly a bit off-target for your purposes, but you could consider 'plan'. See:
That looks quite interesting, thank you, I'll have a play with it. A bonus is the fact that it can interface with a Palm PDA.
-- Chris Green
I should add that the data file (by default ~/.dayplan) is a plain text file and is parseable. Some examples from mine:
10/8/1998 10:0:0 0:0:0 0:0:0 0:0:0 ---------- 0 0 N Monday is Payroll Deadline S elm -s "Payroll Deadline" efh << EOT S Monday is Payroll Deadline S EOT 10/12/1998 10:0:0 0:0:0 0:0:0 0:0:0 ---------- 0 0 N Payroll Deadline 10/12/1998 10:30:0 2:0:0 0:0:0 0:0:0 ---------- 0 0 N J Logsdon may call 10/14/1998 13:30:0 3:0:0 23:0:0 1:0:0 ---------- 0 0 N Maths DAB 10/17/1998 14:0:0 8:0:0 0:0:0 0:0:0 ---------- 0 0 N ManLUG Meeting
(NB US-style date format).
Thus on 8 Oct 1998 it has a calendar entry ("N") and executes a script "S" to send me an email as well. On 12 Oct 1998 it has 2 calendar entries ("N"), and one each on 14 and 17 Oct.
The text on an "N" line is what appears in the Calendar display.
Here's an example of a calendar entry "N" with a "message" ("M"):
3/9/2002 20:0:0 0:0:0 0:0:0 0:0:0 ---------- 0 0 N CONCERT M Saturday March 9 M Anglia Chorus and Anglia Chamber M Music by Haydn, Weber & Kevin Flanagan M Emmanuel United Reform Church M Trumpington St, CB M £7/£5 from (01223) 503 333 8pm
(and of course the "message" can be as long as you like). The "message" is what appears in the xterm, or is emailed to you, if you have flagged the entry to forewarn you, and is readable at any time by opening that calendar entry and clicking on the "Message" button.
Anyway, the point is that since it's a structured text file you could write a little search engine in (say) awk, which would throw up dates when references to something occurred, etc.
Hoping this helps, Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 22-May-07 Time: 11:38:17 ------------------------------ XFMail ------------------------------