emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Patrick Drechsler <patrick@pdrechsler.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: mail agenda similar to `diary-mail-entries'
Date: Tue, 15 May 2007 20:47:11 +0200	[thread overview]
Message-ID: <34aed42135ad4a217118ca0168898606@science.uva.nl> (raw)
In-Reply-To: <87mz0645e7.fsf@pdrechsler.de>

Untested:

emacs -batch -l ~/.emacs -eval '(org-batch-agenda "a")' \
        | mail user@address.com


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

  reply	other threads:[~2007-05-15 18:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-15 12:50 mail agenda similar to `diary-mail-entries' Patrick Drechsler
2007-05-15 18:47 ` Carsten Dominik [this message]
2007-06-09 23:36   ` Patrick Drechsler
2007-06-10  4:37     ` Carsten Dominik
2007-06-10  5:13       ` Eddward DeVilla
2007-06-11 11:10       ` Patrick Drechsler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=34aed42135ad4a217118ca0168898606@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=patrick@pdrechsler.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).