From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: reader@newsguy.com Newsgroups: gmane.emacs.help Subject: Re: create emails from dairy entries Date: Wed, 11 Jun 2008 09:02:22 -0500 Organization: Still searching... Message-ID: <87zlpsf4sx.fsf@newsguy.com> References: <87tzg1754v.fsf@newsguy.com> <87tzg0mpoa.fsf@bzg.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213193283 9676 80.91.229.12 (11 Jun 2008 14:08:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2008 14:08:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 11 16:08:43 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K6QvJ-0006MD-1r for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jun 2008 16:03:37 +0200 Original-Received: from localhost ([127.0.0.1]:55419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6QuV-0004WE-OQ for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jun 2008 10:02:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6QuH-0004W6-St for help-gnu-emacs@gnu.org; Wed, 11 Jun 2008 10:02:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6QuG-0004Vu-DZ for help-gnu-emacs@gnu.org; Wed, 11 Jun 2008 10:02:33 -0400 Original-Received: from [199.232.76.173] (port=35598 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6QuG-0004Vr-Ax for help-gnu-emacs@gnu.org; Wed, 11 Jun 2008 10:02:32 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:53302 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K6QuF-0005yb-Im for help-gnu-emacs@gnu.org; Wed, 11 Jun 2008 10:02:31 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K6QuD-00063U-9b for help-gnu-emacs@gnu.org; Wed, 11 Jun 2008 14:02:29 +0000 Original-Received: from c-67-162-73-42.hsd1.il.comcast.net ([67.162.73.42]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Jun 2008 14:02:29 +0000 Original-Received: from reader by c-67-162-73-42.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Jun 2008 14:02:29 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-67-162-73-42.hsd1.il.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:7NsOB2VCrz5uorI34GhQuWvB/Xo= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54736 Archived-At: Bastien writes: > reader@newsguy.com writes: > >> I didn't do any research on this ... mainly because I drew a blank >> trying to think where or how to start. >> >> It may be old hat to someone here: >> >> Can I cause an email to be sent from the Emacs Diary when Appts or >> other events roll around? >> >> Are there examples of doing this posted somewhere? > > I've been using such a script: > > ,---- > | #!/bin/sh > | > | /usr/local/bin/emacs -batch -l ~/.emacs.el -eval '(org-batch-agenda ":")' \ > | | mail you@erewhon.org > `---- > > Please refer to `org-batch-agenda' for details. If you don't use Org, > you can use a diary function instead of `org-batch-agenda'. So are you using cron to read that function every few hours then? Or does the script get run from emacs diary somehow? I guess `diary-mail-entries' only sends all diary entries for a specific number of days... so not usefull for getting a mail alert about a specific event?