From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Heller Subject: Contracts in Orgmode Date: Mon, 21 Dec 2009 11:16:40 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NMnkq-0006Uu-Os for emacs-orgmode@gnu.org; Mon, 21 Dec 2009 14:17:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NMnkl-0006RU-Tn for emacs-orgmode@gnu.org; Mon, 21 Dec 2009 14:17:15 -0500 Received: from [199.232.76.173] (port=50260 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMnkl-0006RD-98 for emacs-orgmode@gnu.org; Mon, 21 Dec 2009 14:17:11 -0500 Received: from lo.gmane.org ([80.91.229.12]:37333) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NMnkl-0006Df-2O for emacs-orgmode@gnu.org; Mon, 21 Dec 2009 14:17:11 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NMnkg-00053S-KB for emacs-orgmode@gnu.org; Mon, 21 Dec 2009 20:17:06 +0100 Received: from mail.cdrd.ca ([142.103.191.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Dec 2009 20:17:06 +0100 Received: from hellerm2 by mail.cdrd.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Dec 2009 20:17:06 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello all, please consider the following scenario: I have a contract with Client A; the contract is valid from January 1, 2010 until March 31, 2010. I want to clock all my work on tasks under this contract, and of course *only* while the contract is valid. 30 days before the expiry date, I'd like to get a reminder. After some googling and reading, I came up with the following for my org file Client.org: * Contract A <%%(diary-block 01 01 2010 03 31 2010)> ** TODO Renew Contract DEADLINE: <2010-03-31 Wed> ** Task A :LOGBOOK: ** Task B :LOGBOOK: I want to log the hours I spend on Task A and Task B, but as mentioned before, *only* while the contract is valid. How can I get orgmode to pop up a message in the status line (or whatever it's called :)) when I'm trying to clock in Task A or Task B before January 1, 2010 or after March 31, 2010? Any hints appreciated :) Thanks and Cheers Markus