From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sven.bretfeld@gmx.ch Newsgroups: gmane.emacs.help Subject: diary-mail-entries Date: Tue, 20 Mar 2007 22:49:22 +0100 Message-ID: <20070320214922.GD16535@relwi.unibe.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1174427389 23680 80.91.229.12 (20 Mar 2007 21:49:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Mar 2007 21:49:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 20 22:49:43 2007 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 1HTmD6-0002vh-Sg for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Mar 2007 22:49:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HTmEi-0001I2-6P for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Mar 2007 16:51:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HTmEW-0001Hx-OS for help-gnu-emacs@gnu.org; Tue, 20 Mar 2007 17:51:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HTmEV-0001Hl-8F for help-gnu-emacs@gnu.org; Tue, 20 Mar 2007 17:51:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HTmEV-0001Hi-4D for help-gnu-emacs@gnu.org; Tue, 20 Mar 2007 16:51:07 -0500 Original-Received: from mxout.hispeed.ch ([62.2.95.247] helo=smtp.hispeed.ch) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HTmCs-0007W0-8C for help-gnu-emacs@gnu.org; Tue, 20 Mar 2007 17:49:26 -0400 Original-Received: from kamaloka.dhatu (80-219-144-82.dclient.hispeed.ch [80.219.144.82]) by smtp.hispeed.ch (8.12.11.20060308/8.12.11/taifun-1.0) with ESMTP id l2KLnNAg004221 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 20 Mar 2007 22:49:23 +0100 Original-Received: from sven by kamaloka.dhatu with local (Exim 4.63) (envelope-from ) id 1HTmCo-0003b8-Og for help-gnu-emacs@gnu.org; Tue, 20 Mar 2007 22:49:22 +0100 Content-Disposition: inline X-Operating-System: Debian GNU/Linux 4.0 Kernel 2.6.18-4-486 User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on smtp-07.tornado.cablecom.ch X-Virus-Status: Clean X-DCC-spamcheck-02.tornado.cablecom.ch-Metrics: smtp-07.tornado.cablecom.ch 1378; Body=1 Fuz1=1 Fuz2=1 X-detected-kernel: Linux 2.4-2.6 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:42069 Archived-At: Hello list I'm trying to set up a cron job sending me the entries of the Emacs diary every morning, just as described in http://www.emacswiki.org/cgi-bin/wiki/DiaryMode#DiaryMode3 It's not working, since the mail sent by the script doesn't contain all of the entries of my diary file. It contains almost only automatical entries like holidays. A few personal entries are included, however, about two out of 20. Does anybody have an idea what's going wrong here? I add the script and my settings below. Thanks for help Sven ------------ Here is the script (it's one line in the original; I tried 50 days just to see if any entry is caught at all, it should be 7 or less after I got it working): #!/bin/bash emacs --batch --eval "(setq diary-mail-days 50 european-calendar-style t diary-file \"~/aktuell/myconf/diary\" diary-mail-addr \"sven.bretfeld@relwi.unibe.ch\")" -l diary-lib -f diary-mail-entries And here are the diary-settings of my .emacs: (setq diary-file "~/aktuell/myconf/diary") ;; Europ=E4isch (setq european-calendar-style 't) (setq calendar-week-start-day 1 calendar-day-name-array ["Sonntag" "Montag" "Dienstag" "Mittwoch"=20 "Donnerstag" "Freitag" "Samstag"] calendar-month-name-array ["Januar" "Februar" "M=E4rz" "April" "Mai"=20 "Juni" "Juli" "August" "September"=20 "Oktober" "November" "Dezember"]) ;; Start with diary (if there is an entry today) (diary) ;; Timer (display-time) (add-hook 'diary-hook 'appt-make-list) (diary 0) ;; LaTeX output des Kalenders (setq cal-tex-diary 't)