Mercurial > emacs
annotate lisp/org/org-rmail.el @ 104518:78d37f6e576f
* cedet/srecode/mode.el (srecode-menu-bar): Use
semantic-menu-item.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 26 Sep 2009 19:17:02 +0000 |
parents | a2322c1160ed |
children | 2a8a3a69c1c7 |
rev | line source |
---|---|
94414
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
1 ;;; org-rmail.el --- Support for links to Rmail messages from within Org-mode |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
2 |
101394
99aed27d0256
(rmail-narrow-to-non-pruned-header): Remove declaration of deleted function.
Glenn Morris <rgm@gnu.org>
parents:
100908
diff
changeset
|
3 ;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 |
99aed27d0256
(rmail-narrow-to-non-pruned-header): Remove declaration of deleted function.
Glenn Morris <rgm@gnu.org>
parents:
100908
diff
changeset
|
4 ;; Free Software Foundation, Inc. |
94414
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
5 |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
6 ;; Author: Carsten Dominik <carsten at orgmode dot org> |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
7 ;; Keywords: outlines, hypermedia, calendar, wp |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
8 ;; Homepage: http://orgmode.org |
104200
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
9 ;; Version: 6.21b |
94414
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
10 ;; |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
11 ;; This file is part of GNU Emacs. |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
12 ;; |
94676
ba3167bc4143
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94441
diff
changeset
|
13 ;; GNU Emacs is free software: you can redistribute it and/or modify |
94414
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
14 ;; it under the terms of the GNU General Public License as published by |
94676
ba3167bc4143
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94441
diff
changeset
|
15 ;; the Free Software Foundation, either version 3 of the License, or |
ba3167bc4143
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94441
diff
changeset
|
16 ;; (at your option) any later version. |
94414
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
17 |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
18 ;; GNU Emacs is distributed in the hope that it will be useful, |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
19 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
21 ;; GNU General Public License for more details. |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
22 |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
23 ;; You should have received a copy of the GNU General Public License |
94676
ba3167bc4143
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94441
diff
changeset
|
24 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
94414
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
25 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
26 ;; |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
27 ;;; Commentary: |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
28 |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
29 ;; This file implements links to Rmail messages from within Org-mode. |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
30 ;; Org-mode loads this module by default - if this is not what you want, |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
31 ;; configure the variable `org-modules'. |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
32 |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
33 ;;; Code: |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
34 |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
35 (require 'org) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
36 |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
37 ;; Declare external functions and variables |
101996
bf06adf07c74
(rmail-show-message): Restore argument list to the declaration now
Glenn Morris <rgm@gnu.org>
parents:
101811
diff
changeset
|
38 (declare-function rmail-show-message "rmail" (&optional n no-summary)) |
104200
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
39 (declare-function rmail-get-header "rmail" (name &optional msgnum)) |
94414
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
40 (declare-function rmail-what-message "rmail" ()) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
41 (defvar rmail-current-message) |
104200
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
42 (defvar rmail-buffer) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
43 (defvar rmail-view-buffer) |
94414
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
44 |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
45 ;; Install the link type |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
46 (org-add-link-type "rmail" 'org-rmail-open) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
47 (add-hook 'org-store-link-functions 'org-rmail-store-link) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
48 |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
49 ;; Implementation |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
50 (defun org-rmail-store-link () |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
51 "Store a link to an Rmail folder or message." |
104200
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
52 (when (memq major-mode '(rmail-mode rmail-summary-mode)) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
53 (let (message-id from to subject desc link) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
54 (if (fboundp 'rmail-get-header) ; Emacs 23 |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
55 (setq message-id (rmail-get-header "message-id") |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
56 from (rmail-get-header "from") |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
57 to (rmail-get-header "to") |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
58 subject (rmail-get-header "subject")) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
59 (save-window-excursion ; Emacs 22 |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
60 (save-restriction |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
61 (when (eq major-mode 'rmail-summary-mode) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
62 (rmail-show-message rmail-current-message)) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
63 (with-no-warnings ; don't warn when compiling Emacs 23 |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
64 (rmail-narrow-to-non-pruned-header)) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
65 (setq message-id (mail-fetch-field "message-id") |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
66 from (mail-fetch-field "from") |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
67 to (mail-fetch-field "to") |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
68 subject (mail-fetch-field "subject")) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
69 (rmail-show-message rmail-current-message)))) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
70 (org-store-link-props |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
71 :type "rmail" :from from :to to |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
72 :subject subject :message-id message-id) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
73 (setq message-id (org-remove-angle-brackets message-id)) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
74 (setq desc (org-email-link-description)) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
75 (setq link (org-make-link "rmail:" |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
76 (with-current-buffer rmail-buffer |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
77 buffer-file-name) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
78 "#" message-id)) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
79 (org-add-link-props :link link :description desc) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
80 link))) |
94414
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
81 |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
82 (defun org-rmail-open (path) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
83 "Follow an Rmail message link to the specified PATH." |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
84 (let (folder article) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
85 (if (not (string-match "\\`\\([^#]+\\)\\(#\\(.*\\)\\)?" path)) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
86 (error "Error in Rmail link")) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
87 (setq folder (match-string 1 path) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
88 article (match-string 3 path)) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
89 (org-rmail-follow-link folder article))) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
90 |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
91 (defun org-rmail-follow-link (folder article) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
92 "Follow an Rmail link to FOLDER and ARTICLE." |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
93 (require 'rmail) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
94 (setq article (org-add-angle-brackets article)) |
104200
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
95 (let (message-number buff) |
94414
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
96 (save-excursion |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
97 (save-window-excursion |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
98 (rmail (if (string= folder "RMAIL") rmail-file-name folder)) |
104200
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
99 (setq buff (current-buffer) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
100 message-number |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
101 (with-current-buffer |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
102 (if (and (fboundp 'rmail-buffers-swapped-p) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
103 (rmail-buffers-swapped-p)) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
104 rmail-view-buffer |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
105 (current-buffer)) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
106 (save-restriction |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
107 (widen) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
108 (goto-char (point-max)) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
109 (if (re-search-backward |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
110 (concat "^Message-ID:\\s-+" (regexp-quote |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
111 (or article ""))) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
112 nil t) |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
113 ;; This is an rmail "debugging" function. :( |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
114 (with-current-buffer buff |
a2322c1160ed
Revert clobbered changes to org-rmail.el
Carsten Dominik <dominik@science.uva.nl>
parents:
104164
diff
changeset
|
115 (rmail-what-message)))))))) |
94414
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
116 (if message-number |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
117 (progn |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
118 (rmail (if (string= folder "RMAIL") rmail-file-name folder)) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
119 (rmail-show-message message-number) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
120 message-number) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
121 (error "Message not found")))) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
122 |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
123 (provide 'org-rmail) |
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
124 |
94441 | 125 ;; arch-tag: c6cf4a8b-6639-4b7f-821f-bdf10746b173 |
96044
c1ef445563bb
2008-06-17 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
94676
diff
changeset
|
126 |
94414
d86cb59eea9f
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
Carsten Dominik <dominik@science.uva.nl>
parents:
diff
changeset
|
127 ;;; org-rmail.el ends here |