aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2009-10-26 09:05:09 +0000
committerMichael Albinus2009-10-26 09:05:09 +0000
commit36f1267e808dcc3ff406da564a29c0b7180315d9 (patch)
tree6015baf0d7f459ae9e27f2a2c7583f3fb3cbd798
parenta7610c523cdd0f381e05d10dd2e5abdaf60f8bbf (diff)
downloademacs-36f1267e808dcc3ff406da564a29c0b7180315d9.tar.gz
emacs-36f1267e808dcc3ff406da564a29c0b7180315d9.zip
* net/tramp-imap.el (tramp-imap-file-name-handler-alist): Ignore
`dired-call-process'. (tramp-imap-make-iht): Use `user' and `ssl' with `imap-hash-make'.
-rw-r--r--lisp/net/tramp-imap.el36
1 files changed, 25 insertions, 11 deletions
diff --git a/lisp/net/tramp-imap.el b/lisp/net/tramp-imap.el
index 5365a5a6054..65024b8b396 100644
--- a/lisp/net/tramp-imap.el
+++ b/lisp/net/tramp-imap.el
@@ -92,6 +92,7 @@
92 ;; `access-file' performed by default handler 92 ;; `access-file' performed by default handler
93 (add-name-to-file . ignore) 93 (add-name-to-file . ignore)
94 ;; `byte-compiler-base-file-name' performed by default handler 94 ;; `byte-compiler-base-file-name' performed by default handler
95 ;; `copy-directory' performed by default handler
95 (copy-file . tramp-imap-handle-copy-file) 96 (copy-file . tramp-imap-handle-copy-file)
96 (delete-directory . ignore) ;; tramp-imap-handle-delete-directory) 97 (delete-directory . ignore) ;; tramp-imap-handle-delete-directory)
97 (delete-file . tramp-imap-handle-delete-file) 98 (delete-file . tramp-imap-handle-delete-file)
@@ -100,7 +101,7 @@
100 (directory-files . tramp-handle-directory-files) 101 (directory-files . tramp-handle-directory-files)
101 (directory-files-and-attributes 102 (directory-files-and-attributes
102 . tramp-imap-handle-directory-files-and-attributes) 103 . tramp-imap-handle-directory-files-and-attributes)
103 ;; `dired-call-process' performed by default handler 104 (dired-call-process . ignore)
104 ;; `dired-compress-file' performed by default handler 105 ;; `dired-compress-file' performed by default handler
105 ;; `dired-uncache' performed by default handler 106 ;; `dired-uncache' performed by default handler
106 (expand-file-name . tramp-imap-handle-expand-file-name) 107 (expand-file-name . tramp-imap-handle-expand-file-name)
@@ -718,16 +719,14 @@ With NEEDED-SUBJECT, alters the imap-hash test accordingly."
718 (ssl (string-equal method tramp-imaps-method)) 719 (ssl (string-equal method tramp-imaps-method))
719 (port (or (tramp-file-name-port vec) 720 (port (or (tramp-file-name-port vec)
720 (tramp-get-method-parameter method 'tramp-default-port))) 721 (tramp-get-method-parameter method 'tramp-default-port)))
721 (result (imap-hash-make server port mbox))) 722 (result (imap-hash-make server port mbox user nil ssl)))
722 ;; Return the IHT with a test override to look for the subject 723 ;; Return the IHT with a test override to look for the subject
723 ;; marker. Set also user and ssl tags. 724 ;; marker.
724 (setq result (plist-put result :user user) 725 (plist-put
725 result (plist-put result :ssl ssl) 726 result
726 result (plist-put 727 :test (format "^%s%s"
727 result 728 tramp-imap-subject-marker
728 :test (format "^%s%s" 729 (if needed-subject needed-subject "")))))
729 tramp-imap-subject-marker
730 (if needed-subject needed-subject ""))))))
731 730
732;;; TODO: 731;;; TODO:
733 732
@@ -747,7 +746,22 @@ With NEEDED-SUBJECT, alters the imap-hash test accordingly."
747 746
748;; * imaps works for local IMAP servers. Accessing 747;; * imaps works for local IMAP servers. Accessing
749;; "/imaps:imap.gmail.com:/INBOX.test/" results in error 748;; "/imaps:imap.gmail.com:/INBOX.test/" results in error
750;; "error in process filter: Internal error, tag 5 status BAD code nil text UNSELECT not allowed now. 749;; "error in process filter: Internal error, tag 5 status BAD code nil text UNSELECT not allowed now."
750
751;; * Improve `tramp-imap-handle-file-attributes'
752;; - size
753;; - modification time
754;; - user
755;; - Return info for directories.
756
757;; * Saving a file creates a second one, instead of overwriting.
758
759;; * Backup files: just *one* is kept.
760
761;; * Password requests shall have a descriptive prompt.
762
763;; * Exiting Emacs, there are running IMAP processes. Make them quiet
764;; by `set-process-query-on-exit-flag'.
751 765
752(provide 'tramp-imap) 766(provide 'tramp-imap)
753;;; tramp-imap.el ends here 767;;; tramp-imap.el ends here