From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67043 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Exchange server Calendar folder analysis (Was: Synching diary with an exchange server?) Date: Wed, 11 Jun 2008 21:51:37 +0200 Organization: Probably a good idea Message-ID: <87ej73agxi.fsf@dod.no> References: <878wxgna1u.fsf@dod.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1213213955 23059 80.91.229.12 (11 Jun 2008 19:52:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2008 19:52:35 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15510@lists.math.uh.edu Wed Jun 11 21:53:18 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1K6WNS-0007Ws-Te for ding-account@gmane.org; Wed, 11 Jun 2008 21:53:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1K6WMb-0001ca-Qf; Wed, 11 Jun 2008 14:52:09 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1K6WMa-0001cB-5C for ding@lists.math.uh.edu; Wed, 11 Jun 2008 14:52:08 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1K6WMP-0000OS-Kb for ding@lists.math.uh.edu; Wed, 11 Jun 2008 14:52:08 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1K6WMh-0001Bj-00 for ; Wed, 11 Jun 2008 21:52:15 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K6WMM-0005UR-Or for ding@gnus.org; Wed, 11 Jun 2008 19:51:56 +0000 Original-Received: from cm-84.208.251.241.getinternet.no ([84.208.251.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Jun 2008 19:51:54 +0000 Original-Received: from sb by cm-84.208.251.241.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Jun 2008 19:51:54 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 70 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.208.251.241.getinternet.no Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:VfG+G2h8WlWhY7JHd9lh+z8VduA= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67043 Archived-At: >>>>> Steinar Bang : > Is there eg. something that can take an iCalendar export from the emacs > diary, and can use it to update my Exchange calendar? That I still don't know the answer to, but I've been told that the Calendar is just a folder on the server. So I browsed the Exchange nnimap server today, from the server buffer, and found a folder at the top, named Calendar. I subscribed to this folder, and visited it, and in it where messages with the following headers: Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C8CAD5.5F6B4710" Content-class: urn:content-classes:appointment The Content-class is something Microsoft'ish, not MIME, but I'm guessing it has to be there for the messages to work. Then there is either just a text part or a multipart/alternative with a text/plan and an HTML part. Then there is a part (at the top level) with headers like this. Content-class: urn:content-classes:appointment Content-Type: text/calendar; charset="UTF-8"; method=REQUEST Content-Transfer-Encoding: 8bit The content in there looks to be in the vCalendar format. What's in there, are all invites, whether I've responded to them, or not. So I guess to mark a meeting as accepted, the contents of the calendar part has to be modified...? Only it's not possible to modify messages with IMAP. The only way would be to download the message, modify it, delete the original message, and upload the modified message. This will result in the modified calendar entry having a different server message id than the original calendar entry. I don't know if that would break some magic, or not...? But if this is all that needs doing to get a working calendar synchronization, it's strange that no work has been done to accomplish it. At least none that a quick google and gmane search can find. I found this thread on gmane, but it's pretty old: http://thread.gmane.org/gmane.emacs.gnus.general/33977 Appearently then, the vCalendar payload wasn't accessable from the message. It seems to be now. It did mention some iCalendar or vCalendar stuff that was introduced into Gnus at about that time (2001), but not what it was about. Grepping for iCalendar or vCalendar in the .el files in the current CVS Gnus, gives no matches. Does anyone know if there are any obvious showstoppers with accessing the Calendar folder using IMAP? To maybe create something like nndiary that would create articles in the required form, and store them in that particular nnimap folder? Thanx! - Steinar