Untested:

emacs -batch -l ~/.emacs -eval '(org-batch-agenda "a")' \
       | mail [EMAIL PROTECTED]


With (setq org-agenda-include-diary t), the diary will
be part of the mailing automatically.

- Carsten

On May 15, 2007, at 14:50, Patrick Drechsler wrote:

Hi,

is it possible to mail the agenda using a cron job similar to the
diary function `diary-mail-entries'?

Currently I have this shell script for mailing the diary entries to
myself:

--8<---------------cut here---------------start------------->8---
#!/bin/bash
## send diary entries by mail
emacs \
    --batch \
    --load ~/.emacs \
    --load ~/.gnus \
    --funcall diary-mail-entries \
    --eval "(setq diary-mail-days 7)"
--8<---------------cut here---------------end--------------->8---

It would be nice to also include the agenda in this setup.

Any ideas?

Cheers,

Patrick
--
"You know the world is going crazy when the best rapper is a white
guy, the best golfer is a black guy, the Swiss hold the America's Cup,
France is accusing the US of arrogance, and Germany doesn't want to go
to war."          -- Charles Barkley




_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to