From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthieu Lemerre Subject: Re: org and microsoft exchange Date: Sun, 26 Jun 2011 15:35:51 +0200 Message-ID: <871uygg1fs.fsf@free.fr> References: <874o3kpvm0.fsf@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QapVI-0000Yt-Js for emacs-orgmode@gnu.org; Sun, 26 Jun 2011 09:36:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QapVH-0005Wv-3Q for emacs-orgmode@gnu.org; Sun, 26 Jun 2011 09:36:00 -0400 Received: from smtp3-g21.free.fr ([212.27.42.3]:54817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QapVG-0005Wq-EO for emacs-orgmode@gnu.org; Sun, 26 Jun 2011 09:35:59 -0400 Received: from matthieu-netbook (unknown [82.239.207.166]) by smtp3-g21.free.fr (Postfix) with ESMTP id 8F290A618D for ; Sun, 26 Jun 2011 15:35:52 +0200 (CEST) In-Reply-To: <874o3kpvm0.fsf@googlemail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, After some digging I found the following setup to share my calendar with people using outlook. One problem is that org-mode produces ics files, but they are "calendar snapshots", and outlook does import them well (if you import them twice, your calendar items will appear twice) This problem is described here: http://stackoverflow.com/questions/45453/icalendar-and-event-updates-not-working-in-outlook Basically, Outlook requires RFC2446 calendars for this, which requires some additional fields (organizer, method, and sequence). It should be possible to convert org-mode calendar import to produce this kind of calendars, the only difficult track being to track the sequence numbers. As a workaround, the best solution I found wast to generate a .ics file and put it on a private http server (webfsd is appropriate for this). If the URL to this file is http://nommachine.domain:3000/dir/file.ics, just change it to webcal://nommachine.domain:3000/dir/file.ics and enter this URL to Internet explorer. Then outlook can automatically subscribe to this calendar. The following lisp code launches the webfsd server and regularly updates the ics file. This isn't really "sync", but at least allows yourself and others to see your calendar in outlook! Hope that can be useful Matthieu #+begin_src emacs-lisp (defun export-icalendar-at-the-right-place () (interactive) (let ((org-agenda-files '("~/org/org.org")) (org-combined-agenda-icalendar-file "~/webfsd_public/org.ics")) (org-export-icalendar-combine-agenda-files))) ;; Automacally exports my calendar every 1800s (30 minutes) (run-at-time "10 min" 1800 #'export-icalendar-at-the-right-place) ;; Launch webfsd to serve the .ics file (start-process "webfsd" "webfsd" "webfsd" "-r" "/home/me/webfsd_public" "-p" "3001") ;; To access it from outook: ;; webcal://myhost.mydomain.fr:3001/org.ics #+end_src