annotate lisp/tm/tm-ftp.el @ 10:49a24b4fd526 r19-15b6

Import from CVS: tag r19-15b6
author cvs
date Mon, 13 Aug 2007 08:47:52 +0200
parents 4b173ad71786
children d95e72db5c07
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
1 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
2 ;;; tm-ftp: anonymous ftp processor for tm-view
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
3 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
4 ;;; by MASUTANI Yasuhiro <masutani@me.es.osaka-u.ac.jp> (1994/11/ 5)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
5 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
6 ;;; modified by MORIOKA Tomohiko <morioka@jaist.ac.jp> (1994/11/ 8)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
7 ;;; and OKABE Yasuo <okabe@kudpc.kyoto-u.ac.jp> (1994/11/11)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
8 ;;;
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
9 ;;; $Id: tm-ftp.el,v 1.3 1996/12/29 00:15:13 steve Exp $
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
10 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
11
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
12 (require 'tm-view)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
13 (require 'ange-ftp)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
14
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
15 (defvar mime/dired-function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
16 (if mime/use-multi-frame
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
17 (function dired-other-frame)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
18 (function dired)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
19 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
20
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
21 (defun mime/decode-message/external-ftp (beg end cal)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
22 (let ((access-type (cdr (assoc "access-type" cal)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
23 (site (cdr (assoc "site" cal)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
24 (directory (cdr (assoc "directory" cal)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
25 (name (cdr (assoc "name" cal)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
26 (mode (cdr (assoc "mode" cal)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
27 (pathname))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
28 (setq pathname
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
29 (concat "/anonymous@" site ":" directory))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
30 (message (concat "Accessing " pathname "/" name "..."))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
31 (switch-to-buffer mime::article/preview-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
32 (funcall mime/dired-function pathname)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
33 (goto-char (point-min))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
34 (search-forward name)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
35 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
36
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
37 (set-atype 'mime/content-decoding-condition
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
38 '((type . "message/external-body")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
39 ("access-type" . "anon-ftp")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
40 (method . mime/decode-message/external-ftp)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
41 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
42
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
43 (provide 'tm-ftp)