Mercurial > emacs
annotate lisp/mail/undigest.el @ 48871:0d1bd8730873
(rmail-digest-methods, rmail-digest-mail-separator): New variables.
(rmail-digest-parse-mime, rmail-digest-parse-rfc1153strict)
(rmail-digest-parse-rfc1153sloppy, rmail-digest-rfc1153)
(rmail-digest-parse-rfc934): New functions.
(undigestify-rmail-message): Completely rewritten.
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Mon, 16 Dec 2002 17:05:59 +0000 |
parents | 3395df62dc04 |
children | 6f912a2e94c1 |
rev | line source |
---|---|
657
fec3f9a1e3e5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
35
diff
changeset
|
1 ;;; undigest.el --- digest-cracking support for the RMAIL mail reader |
fec3f9a1e3e5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
35
diff
changeset
|
2 |
48868 | 3 ;; Copyright (C) 1985, 1986, 1994, 1996, 2002 |
4 ;; Free Software Foundation, Inc. | |
841 | 5 |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
657
diff
changeset
|
6 ;; Maintainer: FSF |
814
38b2499cb3e9
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
807
diff
changeset
|
7 ;; Keywords: mail |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
657
diff
changeset
|
8 |
35 | 9 ;; This file is part of GNU Emacs. |
10 | |
11 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
12 ;; it under the terms of the GNU General Public License as published by | |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
657
diff
changeset
|
13 ;; the Free Software Foundation; either version 2, or (at your option) |
35 | 14 ;; any later version. |
15 | |
16 ;; GNU Emacs is distributed in the hope that it will be useful, | |
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 ;; GNU General Public License for more details. | |
20 | |
21 ;; You should have received a copy of the GNU General Public License | |
14169 | 22 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
24 ;; Boston, MA 02111-1307, USA. | |
35 | 25 |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
657
diff
changeset
|
26 ;;; Commentary: |
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
657
diff
changeset
|
27 |
48868 | 28 ;; See Internet RFC 934 and RFC 1153 |
48871
0d1bd8730873
(rmail-digest-methods, rmail-digest-mail-separator): New variables.
Francesco Potortì <pot@gnu.org>
parents:
48868
diff
changeset
|
29 ;; Also limited support for MIME digest encapsulation |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
657
diff
changeset
|
30 |
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
657
diff
changeset
|
31 ;;; Code: |
35 | 32 |
7038
e640d438df9a
(undigestify-rmail-message): Update summary buffer.
Karl Heuer <kwzh@gnu.org>
parents:
841
diff
changeset
|
33 (require 'rmail) |
e640d438df9a
(undigestify-rmail-message): Update summary buffer.
Karl Heuer <kwzh@gnu.org>
parents:
841
diff
changeset
|
34 |
48868 | 35 (defconst rmail-digest-methods |
36 '(rmail-digest-parse-mime | |
37 rmail-digest-parse-rfc1153strict | |
38 rmail-digest-parse-rfc1153sloppy | |
39 rmail-digest-parse-rfc934) | |
40 "List of digest parsing functions, in preference order. | |
41 | |
42 The functions operate on the current narrowing, and take no argument. A | |
43 function returns nil if it cannot parse the digest. If it can, it | |
44 returns a list of cons pairs containing the start and end positions of | |
45 each undigestified message as markers.") | |
46 | |
47 (defconst rmail-digest-mail-separator | |
48 "\^_\^L\n0, unseen,,\n*** EOOH ***\n" | |
49 "String substituted to the digest separator to create separate messages.") | |
50 | |
51 | |
52 | |
53 (defun rmail-digest-parse-mime () | |
54 (goto-char (point-min)) | |
55 (when (let ((head-end (progn (search-forward "\n\n" nil t) (point)))) | |
56 (goto-char (point-min)) | |
57 (and head-end | |
58 (re-search-forward | |
59 (concat | |
60 "^Content-type: multipart/digest;" | |
61 "\\s-* boundary=\"?\\([^\";\n]+\\)[\";\n]") head-end t) | |
62 (search-forward (match-string 1) nil t))) | |
63 ;; Ok, prolog separator found | |
64 (let ((start (make-marker)) | |
65 (end (make-marker)) | |
66 (separator (concat "\n--" (match-string 0) "\n\n")) | |
67 result) | |
68 (while (search-forward separator nil t) | |
69 (move-marker start (match-beginning 0)) | |
70 (move-marker end (match-end 0)) | |
71 (add-to-list 'result (cons (copy-marker start) (copy-marker end t)))) | |
72 ;; Return the list of marker pairs | |
73 (nreverse result)))) | |
74 | |
75 (defun rmail-digest-parse-rfc1153strict () | |
76 "Parse following strictly the method defined in RFC 1153. | |
77 See rmail-digest-methods." | |
78 (rmail-digest-rfc1153 | |
79 "^-\\{70\\}\n\n" | |
80 "^\n-\\{30\\}\n\n" | |
81 "^\n-\\{30\\}\n\nEnd of .* Digest.*\n\\*\\{15,\\}\n+\'")) | |
82 | |
83 (defun rmail-digest-parse-rfc1153sloppy () | |
84 "Parse using the method defined in RFC 1153, allowing for some sloppiness. | |
85 See rmail-digest-methods." | |
86 (rmail-digest-rfc1153 | |
87 "^-\\{55,\\}\n\n" | |
88 "^\n-\\{27,\\}\n\n" | |
89 "^\n-\\{27,\\}\n\nEnd of")) | |
90 | |
91 (defun rmail-digest-rfc1153 (prolog-sep message-sep trailer-sep) | |
92 (goto-char (point-min)) | |
93 (when (re-search-forward prolog-sep nil t) | |
94 ;; Ok, prolog separator found | |
95 (let ((start (make-marker)) | |
96 (end (make-marker)) | |
97 separator result) | |
98 (move-marker start (match-beginning 0)) | |
99 (move-marker end (match-end 0)) | |
100 (setq result (cons (copy-marker start) (copy-marker end t))) | |
101 (when (re-search-forward message-sep nil t) | |
102 ;; Ok, at least one message separator found | |
103 (setq separator (match-string 0)) | |
104 (when (re-search-forward trailer-sep nil t) | |
105 ;; Wonderful, we found a trailer, too. Now, go on splitting | |
106 ;; the digest into separate rmail messages | |
107 (goto-char (cdar result)) | |
108 (while (search-forward separator nil t) | |
109 (move-marker start (match-beginning 0)) | |
110 (move-marker end (match-end 0)) | |
111 (add-to-list 'result | |
112 (cons (copy-marker start) (copy-marker end t)))) | |
113 ;; Undo masking of separators inside digestified messages | |
114 (goto-char (point-min)) | |
115 (while (search-forward | |
116 (replace-regexp-in-string "\n-" "\n " separator) nil t) | |
117 (replace-match separator)) | |
118 ;; Return the list of marker pairs | |
119 (nreverse result)))))) | |
120 | |
121 (defun rmail-digest-parse-rfc934 () | |
122 (goto-char (point-min)) | |
123 (when (re-search-forward "^\n?-[^ ].*\n\n?" nil t) | |
124 ;; Message separator found | |
125 (let ((start (make-marker)) | |
126 (end (make-marker)) | |
127 (separator (match-string 0)) | |
128 result) | |
129 (goto-char (point-min)) | |
130 (while (search-forward separator nil t) | |
131 (move-marker start (match-beginning 0)) | |
132 (move-marker end (match-end 0)) | |
133 (add-to-list 'result (cons (copy-marker start) (copy-marker end t)))) | |
134 ;; Undo masking of separators inside digestified messages | |
135 (goto-char (point-min)) | |
136 (while (search-forward "\n- -" nil t) | |
137 (replace-match "\n-")) | |
138 ;; Return the list of marker pairs | |
139 (nreverse result)))) | |
140 | |
141 | |
27360
7d643cf235ad
(rmail-digest-end-regexp): New user option.
Gerd Moellmann <gerd@gnu.org>
parents:
20520
diff
changeset
|
142 |
16348
2cf33d3c5540
Add many autoload cookies.
Richard M. Stallman <rms@gnu.org>
parents:
15438
diff
changeset
|
143 ;;;###autoload |
35 | 144 (defun undigestify-rmail-message () |
145 "Break up a digest message into its constituent messages. | |
146 Leaves original message, deleted, before the undigestified messages." | |
147 (interactive) | |
20520
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
148 (with-current-buffer rmail-buffer |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
149 (widen) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
150 (let ((error t) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
151 (buffer-read-only nil)) |
48868 | 152 (goto-char (rmail-msgend rmail-current-message)) |
153 (let ((msg-copy (buffer-substring (rmail-msgbeg rmail-current-message) | |
154 (rmail-msgend rmail-current-message)))) | |
155 (narrow-to-region (point) (point)) | |
156 (insert msg-copy)) | |
157 (narrow-to-region (point-min) (1- (point-max))) | |
20520
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
158 (unwind-protect |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
159 (progn |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
160 (save-restriction |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
161 (goto-char (point-min)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
162 (delete-region (point-min) |
48868 | 163 (progn (search-forward "\n*** EOOH ***\n" nil t) |
20520
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
164 (point))) |
48868 | 165 (insert "\n" rmail-digest-mail-separator) |
20520
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
166 (narrow-to-region (point) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
167 (point-max)) |
48868 | 168 (let ((fill-prefix "") |
169 (case-fold-search t) | |
170 digest-name type start end separator fun-list sep-list) | |
171 (setq digest-name (mail-strip-quoted-names | |
172 (save-restriction | |
173 (search-forward "\n\n" nil 'move) | |
174 (setq start (point)) | |
175 (narrow-to-region (point-min) start) | |
176 (or (mail-fetch-field "Reply-To") | |
177 (mail-fetch-field "To") | |
178 (mail-fetch-field "Apparently-To") | |
179 (mail-fetch-field "From"))))) | |
180 (unless digest-name | |
181 (error "Message is not a digest--bad header")) | |
182 | |
183 (setq fun-list rmail-digest-methods) | |
184 (while (and fun-list | |
185 (null (setq sep-list (funcall (car fun-list))))) | |
186 (setq fun-list (cdr fun-list))) | |
187 (unless sep-list | |
188 (error "Message is not a digest--no messages found")) | |
189 | |
190 ;;; Split the digest into separate rmail messages | |
191 (while sep-list | |
192 (let ((start (caar sep-list)) | |
193 (end (cdar sep-list))) | |
194 (delete-region start end) | |
195 (goto-char start) | |
196 (insert rmail-digest-mail-separator) | |
197 (search-forward "\n\n" (caar (cdr sep-list)) 'move) | |
198 (save-restriction | |
199 (narrow-to-region end (point)) | |
200 (unless (mail-fetch-field "To") | |
201 (goto-char start) | |
202 (insert "To: " digest-name "\n"))) | |
203 (set-marker start nil) | |
204 (set-marker end nil)) | |
205 (setq sep-list (cdr sep-list))))) | |
206 | |
20520
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
207 (setq error nil) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
208 (message "Message successfully undigestified") |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
209 (let ((n rmail-current-message)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
210 (rmail-forget-messages) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
211 (rmail-show-message n) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
212 (rmail-delete-forward) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
213 (if (rmail-summary-exists) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
214 (rmail-select-summary |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
215 (rmail-update-summary))))) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
216 (cond (error |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
217 (narrow-to-region (point-min) (1+ (point-max))) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
218 (delete-region (point-min) (point-max)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
219 (rmail-show-message rmail-current-message))))))) |
35 | 220 |
16348
2cf33d3c5540
Add many autoload cookies.
Richard M. Stallman <rms@gnu.org>
parents:
15438
diff
changeset
|
221 ;;;###autoload |
14630
584eb99710a6
(unforward-rmail-message): New command.
Karl Heuer <kwzh@gnu.org>
parents:
14169
diff
changeset
|
222 (defun unforward-rmail-message () |
584eb99710a6
(unforward-rmail-message): New command.
Karl Heuer <kwzh@gnu.org>
parents:
14169
diff
changeset
|
223 "Extract a forwarded message from the containing message. |
584eb99710a6
(unforward-rmail-message): New command.
Karl Heuer <kwzh@gnu.org>
parents:
14169
diff
changeset
|
224 This puts the forwarded message into a separate rmail message |
584eb99710a6
(unforward-rmail-message): New command.
Karl Heuer <kwzh@gnu.org>
parents:
14169
diff
changeset
|
225 following the containing message." |
584eb99710a6
(unforward-rmail-message): New command.
Karl Heuer <kwzh@gnu.org>
parents:
14169
diff
changeset
|
226 (interactive) |
20520
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
227 ;; If we are in a summary buffer, switch to the Rmail buffer. |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
228 (with-current-buffer rmail-buffer |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
229 (narrow-to-region (rmail-msgbeg rmail-current-message) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
230 (rmail-msgend rmail-current-message)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
231 (goto-char (point-min)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
232 (let (beg end (buffer-read-only nil) msg-string who-forwarded-it) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
233 (setq who-forwarded-it (mail-fetch-field "From")) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
234 (if (re-search-forward "^----" nil t) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
235 nil |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
236 (error "No forwarded message")) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
237 (forward-line 1) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
238 (setq beg (point)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
239 (if (re-search-forward "^----" nil t) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
240 (setq end (match-beginning 0)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
241 (error "No terminator for forwarded message")) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
242 (widen) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
243 (setq msg-string (buffer-substring beg end)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
244 (goto-char (rmail-msgend rmail-current-message)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
245 (narrow-to-region (point) (point)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
246 (insert "\^_\^L\n0, unseen,,\n*** EOOH ***\n") |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
247 (narrow-to-region (point) (point)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
248 (insert "Forwarded-by: " who-forwarded-it "\n") |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
249 (insert msg-string) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
250 (goto-char (point-min)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
251 (while (not (eobp)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
252 (if (looking-at "- ") |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
253 (delete-region (point) (+ 2 (point)))) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
254 (forward-line 1)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
255 (let ((n rmail-current-message)) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
256 (rmail-forget-messages) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
257 (rmail-show-message n) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
258 (if (rmail-summary-exists) |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
259 (rmail-select-summary |
7be5edf3710f
(undigestify-rmail-message): If in summary, switch to the Rmail buffer.
Richard M. Stallman <rms@gnu.org>
parents:
18383
diff
changeset
|
260 (rmail-update-summary))))))) |
14630
584eb99710a6
(unforward-rmail-message): New command.
Karl Heuer <kwzh@gnu.org>
parents:
14169
diff
changeset
|
261 |
18383 | 262 (provide 'undigest) |
263 | |
657
fec3f9a1e3e5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
35
diff
changeset
|
264 ;;; undigest.el ends here |