Mercurial > emacs
comparison lisp/gnus/nndraft.el @ 85712:a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-911
author | Miles Bader <miles@gnu.org> |
---|---|
date | Sun, 28 Oct 2007 09:18:39 +0000 |
parents | 24202b793a08 |
children | 107ccd98fa12 880960b70474 |
comparison
equal
deleted
inserted
replaced
85711:b6f5dc84b2e1 | 85712:a3c27999decb |
---|---|
39 nnmh) | 39 nnmh) |
40 | 40 |
41 (defvoo nndraft-directory (nnheader-concat gnus-directory "drafts/") | 41 (defvoo nndraft-directory (nnheader-concat gnus-directory "drafts/") |
42 "Where nndraft will store its files." | 42 "Where nndraft will store its files." |
43 nnmh-directory) | 43 nnmh-directory) |
44 | |
45 (defvar nndraft-required-headers '(Date) | |
46 "*Headers to be generated when saving a draft message. | |
47 The headers in this variable and the ones in `message-required-headers' | |
48 are generated if and only if they are also in `message-draft-headers'.") | |
44 | 49 |
45 | 50 |
46 | 51 |
47 (defvoo nndraft-current-group "" nil nnmh-current-group) | 52 (defvoo nndraft-current-group "" nil nnmh-current-group) |
48 (defvoo nndraft-get-new-mail nil nil nnmh-get-new-mail) | 53 (defvoo nndraft-get-new-mail nil nil nnmh-get-new-mail) |
154 | 159 |
155 (defun nndraft-generate-headers () | 160 (defun nndraft-generate-headers () |
156 (save-excursion | 161 (save-excursion |
157 (message-generate-headers | 162 (message-generate-headers |
158 (message-headers-to-generate | 163 (message-headers-to-generate |
159 message-required-headers message-draft-headers nil)))) | 164 nndraft-required-headers message-draft-headers nil)))) |
160 | 165 |
161 (deffoo nndraft-request-associate-buffer (group) | 166 (deffoo nndraft-request-associate-buffer (group) |
162 "Associate the current buffer with some article in the draft group." | 167 "Associate the current buffer with some article in the draft group." |
163 (nndraft-open-server "") | 168 (nndraft-open-server "") |
164 (nndraft-request-group group) | 169 (nndraft-request-group group) |
197 (rename-file (nndraft-auto-save-file-name file) file))))) | 202 (rename-file (nndraft-auto-save-file-name file) file))))) |
198 (nnoo-parent-function 'nndraft | 203 (nnoo-parent-function 'nndraft |
199 'nnmh-request-group | 204 'nnmh-request-group |
200 (list group server dont-check))) | 205 (list group server dont-check))) |
201 | 206 |
202 (deffoo nndraft-request-move-article (article group server | 207 (deffoo nndraft-request-move-article (article group server accept-form |
203 accept-form &optional last) | 208 &optional last move-is-internal) |
204 (nndraft-possibly-change-group group) | 209 (nndraft-possibly-change-group group) |
205 (let ((buf (get-buffer-create " *nndraft move*")) | 210 (let ((buf (get-buffer-create " *nndraft move*")) |
206 result) | 211 result) |
207 (and | 212 (and |
208 (nndraft-request-article article group server) | 213 (nndraft-request-article article group server) |