Muli Ben-Yehuda's journal

February 26, 2005

shared calendaring

Filed under: Uncategorized — Muli Ben-Yehuda @ 12:54 AM

Orna and me decided we need a shared calendar. Most
families keep one on the wall, usually in the kitchen area. We now
keep a shared file on the local server. The file is in emacs’s diary
format and email reminders are sent nightly via the wonders of cron
and emacs -eval.

#!/bin/sh
# email.sh -- repeatedly run the Emacs diary-reminder
xemacs -batch \
-l diary-lib \
-eval "(let \
    ((diary-mail-days 3) \
     (european-calendar-style t) \
     (diary-file \"/path/to/diary\") \
     (rcpts '(\"muli@localhost\" \"ladypine@localhost\"))) \
  (mapcar \
   (lambda (addr) \
     (let \
         ((diary-mail-addr addr)) \
       (diary-mail-entries))) \
   rcpts))"

8 Comments »

  1. LOL, that’s a nice solution!
    I would have used iCal format, probably. Mozilla Sunbird with WebDav?

    Comment by reverius42 — February 26, 2005 @ 2:05 AM | Reply

    • Too much graphical goodness hurts my eyes. I like plain, simple and accessible over ssh.

      Comment by mulix — February 26, 2005 @ 6:51 AM | Reply

      • You would so not like the solution ‘s and I are going to choose. We are using shared calenders in iCal.
        On the other hand, I figure it would take me about an hour to hack up a perl-curses app to show the calenders.
        I, also, ❤ ssh.

        Comment by the_p0pe — February 26, 2005 @ 1:43 PM

      • Hey, I’m a live and let live kind of guy, whatever works for you… Since I don’t know much (anything) about iCal, I can’t comment further.

        Comment by mulix — February 26, 2005 @ 2:45 PM

      • iCal is the very GUI calender component for osX.
        I’ve ceased to get headaches related to graphics ever since I started using osX regularly. Candy coated unix is good for you !

        Comment by the_p0pe — February 26, 2005 @ 6:27 PM

  2. I’ve heard good stuff about Planner mode though I do not use it (I’m spartan about these things).

    Comment by yrk — February 26, 2005 @ 10:55 AM | Reply

    • Looks pretty interesting, I’ll check it out (I think you might’ve mentioned it in the past, too). Re spartan – what do you use?

      Comment by mulix — February 26, 2005 @ 2:42 PM | Reply

      • A tiny mode I wrote with: Font-locking for completed vs. uncompleted tasks based on whether they have an asterix or minus sign in front of them. Add a number of key-bindings to sort the uncompleted task at the bottom of a list of tasks and other brick-a-brack.
        The buffer ends up looking like:

        ;;; Deadlines
        -) Go to brith for JC at 8/1/0000.
        *) More furniture into GNU/Emacs, 12/12/2005 at the latest.
        
        ;;; Long range goals
        -) Peace with Jordan.
        *) Become insanly rich.
        

        Etc.

        Comment by yrk — February 26, 2005 @ 4:57 PM


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: