From: Bastien <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: Re: Integration of Org mode and Gnus
Date: Wed, 18 Jul 2007 02:55:01 +0200 [thread overview]
Message-ID: <87myxupm3e.fsf@bzg.ath.cx> (raw)
In-Reply-To: <m37ioyj0n4.fsf@cerebro.fsfeurope.org> (Georg C. F. Greve's message of "Tue\, 17 Jul 2007 21\:22\:39 +0200")
"Georg C. F. Greve" <greve@fsfeurope.org> writes:
> Ideally, I'd like to make a decision on email when I find them in the
> inboxes, and either archive them without a link, or archive them with a
> link for my Org mode files. The same goes for mail I send.
Alain Picard suggested something on this list earlier:
http://article.gmane.org/gmane.emacs.orgmode/1771
It allows you to quickly store Gnus mails in a section of your org file.
Just press ">" when on the mail you want to store.
------------------------------------------------------------------------
(setq *org-email-todo-tree-header* "* Email TODOS")
(setq *org-email-todo-list-buffer* "~/org/bzg.org")
(defun org-insert-email-as-current-todo (&optional kw)
"Save a Gnus email into `*org-email-todo-list-buffer*' as a headline.
If prefix is non-nil, ask for a specific state."
(interactive "P")
(let ((link (org-store-link nil)))
(save-window-excursion
(find-file *org-email-todo-list-buffer*)
(goto-char (point-min))
(let ((state (if kw (completing-read "State: "
(mapcar (lambda(x) (list x))
org-not-done-keywords)
nil t "TODO") "TODO"))
(point (re-search-forward *org-email-todo-tree-header*
(point-max) nil)))
(org-end-of-subtree t)
(insert "\n** " state " " link))))
(message "Email saved in %s" *org-email-todo-list-buffer*))
(define-key gnus-summary-mode-map ">" 'org-insert-email-as-current-todo)
------------------------------------------------------------------------
You might be also interested by the "bookmark" facility that comes with
Gnus:
,----[ gnus-bookmark.el ]
| Set a Gnus bookmark (from the summary buffer):
| M-x gnus-bookmark-set
|
| Jump to a Gnus bookmark:
| M-x gnus-bookmark-jump
|
| Display a list of bookmarks:
| M-x gnus-bookmark-bmenu-list
`----
> So for sending mail and for moving mail to archive folders, I would
> like to be able to memorise a link for the email in its *final
> storage* location.
If you want the links to your mails being always up-to-date, either
create links when mails are at their final place or use nnir.el (as
proposed by Jason). I'm afraid there is no easy way otherwise...
> Does anyone have an idea of the "right" solution to this?
I think the easiest solution is to use Gnus native bookmarks, except if
your emails are part of something you have to do.
Hope this helps!
--
Bastien
next prev parent reply other threads:[~2007-07-18 0:55 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-17 19:22 Integration of Org mode and Gnus Georg C. F. Greve
2007-07-18 0:22 ` Jason F. McBrayer
2007-07-18 8:03 ` Georg C. F. Greve
2007-07-18 10:04 ` Bastien
2007-07-18 10:29 ` Georg C. F. Greve
2007-07-20 16:08 ` Integration of Org mode and mairix (was: ... and Gnus) Adam Spiers
2007-07-22 23:15 ` Integration of Org mode and mairix Georg C. F. Greve
2007-07-23 2:24 ` Is it any function similar to appoinment alert in the planner mode? brianjiang
2007-07-23 12:38 ` Bernt Hansen
2007-07-25 19:15 ` Bastien Guerry
2007-07-26 7:23 ` Bastien
2007-07-27 5:17 ` brianjiang
2007-08-07 0:05 ` Bastien
2007-08-07 17:13 ` Bastien
2007-08-21 2:37 ` william
2007-07-24 14:38 ` Integration of Org mode and mairix Bastien
2007-07-30 14:02 ` Georg C. F. Greve
2007-07-30 16:02 ` Bastien
2007-07-30 16:31 ` Leo
2007-07-30 17:26 ` Bastien
2007-08-05 1:32 ` Xiao-Yong Jin
2007-07-31 15:52 ` Jason F. McBrayer
2007-07-31 16:56 ` Xiao-Yong Jin
2007-07-31 17:19 ` Georg C. F. Greve
2007-08-05 1:40 ` Xiao-Yong Jin
2007-07-31 18:43 ` Bastien
2007-08-01 14:52 ` Jason F. McBrayer
2007-08-01 16:59 ` Bastien
2007-08-05 1:44 ` Xiao-Yong Jin
2007-08-05 10:20 ` Georg C. F. Greve
2007-08-07 17:54 ` Bastien
2007-08-10 6:56 ` Carsten Dominik
2007-08-14 11:29 ` Adam Spiers
2007-08-15 17:46 ` Carsten Dominik
2007-08-21 12:38 ` Carsten Dominik
2007-08-14 22:54 ` Steven Lumos
2007-08-15 17:46 ` Carsten Dominik
2007-08-16 18:48 ` Steven Lumos
2007-09-23 15:44 ` Georg C. F. Greve
2007-09-23 18:12 ` Carsten Dominik
2007-09-23 21:50 ` Georg C. F. Greve
2007-09-23 22:05 ` Carsten Dominik
2007-09-24 17:38 ` Georg C. F. Greve
2007-09-25 14:41 ` Carsten Dominik
2007-09-25 22:25 ` Georg C. F. Greve
2007-09-25 22:38 ` Carsten Dominik
2007-07-18 11:04 ` Integration of Org mode and Gnus Jason F. McBrayer
2007-07-18 12:01 ` Bastien
2007-07-18 12:57 ` Jason F. McBrayer
2007-07-18 13:08 ` Georg C. F. Greve
2007-07-18 15:39 ` Bastien
2007-07-18 19:39 ` Georg C. F. Greve
2007-07-18 22:06 ` Bastien
2007-07-19 15:29 ` Georg C. F. Greve
2007-07-18 21:54 ` Carsten Dominik
2007-07-19 15:41 ` Bastien
2007-07-18 10:20 ` Tassilo Horn
2007-07-18 10:35 ` Georg C. F. Greve
2007-07-18 11:55 ` Tassilo Horn
2007-07-18 12:25 ` Georg C. F. Greve
2007-07-18 12:54 ` Tassilo Horn
2007-07-18 13:18 ` Georg C. F. Greve
2007-07-18 13:32 ` Tassilo Horn
2007-07-18 0:55 ` Bastien [this message]
2007-07-18 7:53 ` Georg C. F. Greve
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=87myxupm3e.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
/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).