Eldav: Yet another WebDAV interface for Emacsen
Add the following line to your .emacs.
If you want to use proxy server, following setting is also needed.
(setq eldav-proxy "http://your.proxy.server:8080")
Then you can access WebDAV files by specifying magic file name like:
(Add preceding ‘:’ to the WebDAV URL.)
jemarch offered the following on #emacs:
<source lisp> ;; openxchange interaction routines (require ‘eldav)
(defvar openxchange-diary-file “~/emacs/diarylala” “Diary file to syncronize with the openxchange server”)
(defun openxchange-sync (url-base) “Synchronize with the openxchange server present at URL-BASE”
(interactive "sopenxchange server url: ") (save-excursion
(let ((webdav-ical-file (concat url-base "/servlet/webdav.ical"))) ;; Putting events (with-temp-buffer (insert (icalendar-export-string openxchange-diary-file)) (eldav-put-buffer webdav-ical-file)) ;; Delete the diary file (with-temp-file openxchange-diary-file (erase-buffer)) ;; Getting events (with-temp-buffer (insert (eldav-get webdav-ical-file)) (icalendar-import-buffer openxchange-diary-file t)))))</source>
Since eldav.el treats all existing files as read-only, you have to override the defun
(load-file "~/elisp/eldav-0.8.1/eldav.el") (defun eldav-file-writable-p (file) t)
‘C-x C-f’ and edit
:http://www.emacswiki.org/cgi-bin/wiki/dav/ElDav. (Note the colon before the URL!)
At the moment there seems to be no way to transmit username and password.