Mercurial > hg > xemacs-beta
view lisp/tm/tm-ftp.el @ 70:131b0175ea99 r20-0b30
Import from CVS: tag r20-0b30
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:02:59 +0200 |
parents | 8fc7fe29b841 |
children | c0c698873ce1 |
line wrap: on
line source
;;; ;;; tm-ftp: anonymous ftp processor for tm-view ;;; ;;; by MASUTANI Yasuhiro <masutani@me.es.osaka-u.ac.jp> (1994/11/ 5) ;;; ;;; modified by MORIOKA Tomohiko <morioka@jaist.ac.jp> (1994/11/ 8) ;;; and OKABE Yasuo <okabe@kudpc.kyoto-u.ac.jp> (1994/11/11) ;;; ;;; $Id: tm-ftp.el,v 1.1.1.1 1996/12/18 22:43:38 steve Exp $ ;;; (require 'tm-view) (require 'ange-ftp) (defvar mime/dired-function (if mime/use-multi-frame (function dired-other-frame) (function dired) )) (defun mime/decode-message/external-ftp (beg end cal) (let ((access-type (cdr (assoc "access-type" cal))) (site (cdr (assoc "site" cal))) (directory (cdr (assoc "directory" cal))) (name (cdr (assoc "name" cal))) (mode (cdr (assoc "mode" cal))) (pathname)) (setq pathname (concat "/anonymous@" site ":" directory)) (message (concat "Accessing " pathname "/" name "...")) (switch-to-buffer mime::article/preview-buffer) (funcall mime/dired-function pathname) (goto-char (point-min)) (search-forward name) )) (set-atype 'mime/content-decoding-condition '((type . "message/external-body") ("access-type" . "anon-ftp") (method . mime/decode-message/external-ftp) )) (provide 'tm-ftp)