comparison lisp/gnus/gnus-vm.el @ 108:360340f9fd5f r20-1b6

Import from CVS: tag r20-1b6
author cvs
date Mon, 13 Aug 2007 09:18:39 +0200
parents 0d2f883870bc
children 9f59509498e1
comparison
equal deleted inserted replaced
107:523141596bda 108:360340f9fd5f
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, 21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 ;; Boston, MA 02111-1307, USA. 22 ;; Boston, MA 02111-1307, USA.
23 23
24 ;;; Commentary: 24 ;;; Commentary:
25 25
26 ;; Major contributors: 26 ;; Major contributors:
27 ;; Christian Limpach <Christian.Limpach@nice.ch> 27 ;; Christian Limpach <Christian.Limpach@nice.ch>
28 ;; Some code stolen from: 28 ;; Some code stolen from:
29 ;; Rick Sladkey <jrs@world.std.com> 29 ;; Rick Sladkey <jrs@world.std.com>
30 30
31 ;;; Code: 31 ;;; Code:
32 32
33 (require 'sendmail) 33 (require 'sendmail)
72 ;; insert a newline, otherwise the last line gets lost 72 ;; insert a newline, otherwise the last line gets lost
73 (goto-char (point-max)) 73 (goto-char (point-max))
74 (insert "\n") 74 (insert "\n")
75 (vm-mode) 75 (vm-mode)
76 tmp-folder)) 76 tmp-folder))
77 77
78 (defun gnus-summary-save-article-vm (&optional arg) 78 (defun gnus-summary-save-article-vm (&optional arg)
79 "Append the current article to a vm folder. 79 "Append the current article to a vm folder.
80 If N is a positive number, save the N next articles. 80 If N is a positive number, save the N next articles.
81 If N is a negative number, save the N previous articles. 81 If N is a negative number, save the N previous articles.
82 If N is nil and any articles have been marked with the process mark, 82 If N is nil and any articles have been marked with the process mark,
91 (funcall gnus-mail-save-name gnus-newsgroup-name 91 (funcall gnus-mail-save-name gnus-newsgroup-name
92 gnus-current-headers gnus-newsgroup-last-mail))) 92 gnus-current-headers gnus-newsgroup-last-mail)))
93 (setq folder 93 (setq folder
94 (cond ((eq folder 'default) default-name) 94 (cond ((eq folder 'default) default-name)
95 (folder folder) 95 (folder folder)
96 (t (gnus-read-save-file-name 96 (t (gnus-read-save-file-name
97 "Save %s in VM folder:" default-name)))) 97 "Save %s in VM folder:" default-name))))
98 (gnus-make-directory (file-name-directory folder)) 98 (gnus-make-directory (file-name-directory folder))
99 (set-buffer gnus-original-article-buffer) 99 (set-buffer gnus-original-article-buffer)
100 (save-excursion 100 (save-excursion
101 (save-restriction 101 (save-restriction