Re: [O] org and microsoft exchange

2011-07-08 Thread Eric S Fraga
Matthieu Lemerre ra...@free.fr writes:

 
 I have no idea what I will need to do!  I really am truly ignorant of
 the whole MS world other than I know, if push comes to shove, I can
 install cygwin and then Emacs when I have to... ;-)

 Actually, there are emacs binaries for win32 that work without needing
 cygwin.

thanks; but cygwin seems natural to install in conjunction with emacs as
I want bash et al. if I ever have to use Windows.  having said this,
it's been years since I have had to do this luckily (for me).

  For the record, here are some other things that I tried/maybe worth
  trying:
 
  - Davmail + thunderbird: allows accessing exchange mail and calendar and
syncinc with it, but did not manage to import org ics into that.
 
  - Evolution and the openexchange client may be other things to try.
 
 These two seem to imply using something other than Emacs for my email?
 Or have I misunderstood?

 Openexchange is a command line tool to synchronize with an exchange
 server. But it is still incomplete, and I found it a nightmare to
 configure and use.

 Evolution is indeed another mail client, but my intent was to use it
 solely as a mean to synchronize the org mode ics file with the exchange
 calendar. Instead of using outlook for this...

Thanks for the explanation.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.6 (release_7.6.4.gf305a)



Re: [O] org and microsoft exchange

2011-07-08 Thread Bastien
Hi Matthieu,

Matthieu Lemerre ra...@free.fr writes:

 Compared to what org-mode currently exports, only three fields are missing:

  - Organizer. This should not be too hard to do (using
user-mail-adress).

Okay.

  - Method:request (should also be easy...)

Should this field be present in every entry?  

What does it mean?

  - The sequence number is more difficult. I think it could be stored as
a property of an org-mode node, but when should it be updated? Maybe
it can be just be updated everytime the file is exported, just as ids
are created when the file is exported.

What means the SEQUENCE field?  

Thanks for further information!

-- 
 Bastien



Re: [O] org and microsoft exchange

2011-07-07 Thread Matthieu Lemerre
 
 I have no idea what I will need to do!  I really am truly ignorant of
 the whole MS world other than I know, if push comes to shove, I can
 install cygwin and then Emacs when I have to... ;-)

Actually, there are emacs binaries for win32 that work without needing
cygwin.

  For the record, here are some other things that I tried/maybe worth
  trying:
 
  - Davmail + thunderbird: allows accessing exchange mail and calendar and
syncinc with it, but did not manage to import org ics into that.
 
  - Evolution and the openexchange client may be other things to try.
 
 These two seem to imply using something other than Emacs for my email?
 Or have I misunderstood?

Openexchange is a command line tool to synchronize with an exchange
server. But it is still incomplete, and I found it a nightmare to
configure and use.

Evolution is indeed another mail client, but my intent was to use it
solely as a mean to synchronize the org mode ics file with the exchange
calendar. Instead of using outlook for this...

Matthieu




Re: [O] org and microsoft exchange

2011-07-07 Thread Matthieu Lemerre

Hi Bastien,

On Wed, 29 Jun 2011 01:16:17 +0200, Bastien b...@altern.org wrote:
 Can you give an example of a RFC-2446 compliant entry (with the new
 field you mentioned in the previous email)?

If I take the example given here:
http://stackoverflow.com/questions/45453/icalendar-and-event-updates-not-working-in-outlook

Here is the original ics 

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//WA//FRWEB//EN
METHOD:REQUEST
BEGIN:VEVENT
UID:FRICAL201
SEQUENCE:0
DTSTAMP:20081108T151809Z
ORGANIZER:donotre...@test.com
DTSTART:20081109T121200
SUMMARY:11/9/2008 12:12:00 PM TRIP FROM JFK AIRPORT (JFK)
LOCATION:JFK AIRPORT (JFK)
END:VEVENT
END:VCALENDAR

and here is the update

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//WA//FRWEB//EN
METHOD:REQUEST
BEGIN:VEVENT
UID:FRICAL201
SEQUENCE:1
DTSTAMP:20081108T161809Z
ORGANIZER:donotre...@test.com
DTSTART:20081109T121300
SUMMARY:11/9/2008 12:13:00 PM TRIP FROM JFK AIRPORT (JFK)
LOCATION:JFK AIRPORT (JFK)
END:VEVENT
END:VCALENDAR


 I guess adding this files to org-icalendar.el is not a big fuss.

Compared to what org-mode currently exports, only three fields are missing:

 - Organizer. This should not be too hard to do (using
   user-mail-adress).
 - Method:request (should also be easy...)
 - The sequence number is more difficult. I think it could be stored as
   a property of an org-mode node, but when should it be updated? Maybe
   it can be just be updated everytime the file is exported, just as ids
   are created when the file is exported.
  
Matthieu



Re: [O] org and microsoft exchange

2011-06-29 Thread Eric S Fraga
Matthieu Lemerre ra...@free.fr writes:

 On Mon, 27 Jun 2011 18:14:19 +0100, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 Matthieu Lemerre ra...@free.fr writes:
 

  Hi,
 
  After some digging I found the following setup to share my calendar with
  people using outlook.
 
 [...]
 
 Matthieu,
 
 thanks for this.  I am unable to test it but will likely have to do so
 at the end of the summer (northern hemisphere) when we are supposedly
 going to be expected to start using various MS tools for collaboration
 (yech).  I'll come back to you then! ;-)

 Eric,

 No problem. But note that currently I am able to synchronize with people
 using Outlook, but not really with Exchange, if that's what you would
 like to do...

I have no idea what I will need to do!  I really am truly ignorant of
the whole MS world other than I know, if push comes to shove, I can
install cygwin and then Emacs when I have to... ;-)

 For the record, here are some other things that I tried/maybe worth
 trying:

 - Davmail + thunderbird: allows accessing exchange mail and calendar and
   syncinc with it, but did not manage to import org ics into that.

 - Evolution and the openexchange client may be other things to try.

These two seem to imply using something other than Emacs for my email?
Or have I misunderstood?

 - With a bit of elisp (to implement RFC-2446 compliant export), I think
   full outlook/exchange compliance could be really doable.

Okay.  I'll keep this in mind although I notice that Bastien has already
asked for a link so maybe this will be done by the time I need it :-)

Thanks again,
eric
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.510.g56080)



Re: [O] org and microsoft exchange

2011-06-28 Thread Bastien
Hi Matthieu,

Matthieu Lemerre ra...@free.fr writes:

 - With a bit of elisp (to implement RFC-2446 compliant export), I think
   full outlook/exchange compliance could be really doable.

Can you give an example of a RFC-2446 compliant entry (with the new
field you mentioned in the previous email)?

I guess adding this files to org-icalendar.el is not a big fuss.

Thanks,

-- 
 Bastien



Re: [O] org and microsoft exchange

2011-06-27 Thread Eric S Fraga
Matthieu Lemerre ra...@free.fr writes:

 Hi,

 After some digging I found the following setup to share my calendar with
 people using outlook.

[...]

Matthieu,

thanks for this.  I am unable to test it but will likely have to do so
at the end of the summer (northern hemisphere) when we are supposedly
going to be expected to start using various MS tools for collaboration
(yech).  I'll come back to you then! ;-)

Thanks again,
eric
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.461.g6d18)



Re: [O] org and microsoft exchange

2011-06-27 Thread Matthieu Lemerre
On Mon, 27 Jun 2011 18:14:19 +0100, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 Matthieu Lemerre ra...@free.fr writes:
 
  Hi,
 
  After some digging I found the following setup to share my calendar with
  people using outlook.
 
 [...]
 
 Matthieu,
 
 thanks for this.  I am unable to test it but will likely have to do so
 at the end of the summer (northern hemisphere) when we are supposedly
 going to be expected to start using various MS tools for collaboration
 (yech).  I'll come back to you then! ;-)

Eric,

No problem. But note that currently I am able to synchronize with people
using Outlook, but not really with Exchange, if that's what you would
like to do...
For the record, here are some other things that I tried/maybe worth
trying:

- Davmail + thunderbird: allows accessing exchange mail and calendar and
  syncinc with it, but did not manage to import org ics into that.

- Evolution and the openexchange client may be other things to try.

- With a bit of elisp (to implement RFC-2446 compliant export), I think
  full outlook/exchange compliance could be really doable.

Matthieu






Re: [O] org and microsoft exchange

2011-06-26 Thread Matthieu Lemerre

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



Re: [O] org and microsoft exchange

2011-06-20 Thread Eric S Fraga
Skip Collins skip.coll...@gmail.com writes:

 I was thinking of trying to get org and microsoft exchange talking to
 each other via soap-client.el and exchange web services (ews).
 Ultimately it would be nice to have a route into the corporate world
 of exchange, outlook, entourage, and blackberry where so many of us
 are forced to live.

 My first goal is to link org TODOs to exchange tasks in some
 simplistic way that allows two-way syncing.

 If that proves feasible, perhaps calendar items could be next.

 Does this sound useful? If anyone with elisp or web services
 programming experience is interested in lending a hand, I am sure to
 need some help.

+1.

My institution is moving to MS Live, whatever that means (I really am
completely ignorant of the MS world, for better or for worse).  I think
this is somehow related to Exchange etc. so any type of integration with
org would be greatly helpful for me!  At first, all I care about is one
way transfer, from the MS world to org but obviously two way syncing
would be good.

In my case, it's more about calendar events than tasks.  My tasks are
typically for my information only but meetings etc involve multiple
people.

I can try to help in due course.  We haven't moved to the MS system yet
so I cannot yet say how much I will be able to contribute.  Keep me in
the loop!
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.409.g4f3a3)



Re: [O] org and microsoft exchange

2011-06-20 Thread Holger Wenzel
Hi,

 I was thinking of trying to get org and microsoft exchange talking to
 each other via soap-client.el and exchange web services (ews).
 Ultimately it would be nice to have a route into the corporate world
 of exchange, outlook, entourage, and blackberry where so many of us
 are forced to live.

 My first goal is to link org TODOs to exchange tasks in some
 simplistic way that allows two-way syncing.

 If that proves feasible, perhaps calendar items could be next.

 Does this sound useful? If anyone with elisp or web services
 programming experience is interested in lending a hand, I am sure to
 need some help.

 +1.

 My institution is moving to MS Live, whatever that means (I really am
 completely ignorant of the MS world, for better or for worse).  I think
 this is somehow related to Exchange etc. so any type of integration with
 org would be greatly helpful for me!  At first, all I care about is one
 way transfer, from the MS world to org but obviously two way syncing
 would be good.

 In my case, it's more about calendar events than tasks.  My tasks are
 typically for my information only but meetings etc involve multiple
 people.

 I can try to help in due course.  We haven't moved to the MS system yet
 so I cannot yet say how much I will be able to contribute.  Keep me in
 the loop!


One open source project that implements a pretty impressive interface to
exchange is http://davmail.sourceforge.net 

Maybe you can get hints on how to deal with the ideosycrasies of MS
coding from there.

Unfortunately I cannot use this, and your proposed solution, since my
Exchange server is behind an RSA-Token-secured gateway.

I'm planning to use the org-outlook protocol 

http://www.emacswiki.org/emacs/org-outlook.el

even if this means that I need to have an Outlook-instance running. 

Good luck!

Holger






Re: [O] org and microsoft exchange

2011-06-20 Thread Skip Collins
On Mon, Jun 20, 2011 at 7:53 AM, Holger Wenzel
drholgerwen...@googlemail.com wrote:
 Unfortunately I cannot use this, and your proposed solution, since my
 Exchange server is behind an RSA-Token-secured gateway.

 I'm planning to use the org-outlook protocol

Both outlook and org will require dealing with secured gateways.



Re: [O] org and microsoft exchange

2011-06-20 Thread Jonathan Arkell


On 20/06/11 5:53 AM, Holger Wenzel drholgerwen...@googlemail.com wrote:


I'm planning to use the org-outlook protocol

http://www.emacswiki.org/emacs/org-outlook.el

even if this means that I need to have an Outlook-instance running.

When I was still on a windows box, I built a little Windows Scripting Host
REPL, for the express purpose of communicating with outlook.  I've since
moved to Mac, so I have not worked on it since, however, the code is
available here:

https://github.com/jonnay/wsh-repl


You could load up an instance of the wsh-repl, and send it commands
directly (it's a standard comint buffer).

Hopefully it provides some help for you guys.


The information contained in this message is confidential. It is intended to be 
read only by the individual or entity named above or their designee. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any distribution of this message, in any form, is strictly prohibited. If 
you have received this message in error, please immediately notify the sender 
and delete or destroy any copy of this message.



Re: [O] org and microsoft exchange

2011-06-20 Thread Philipp Haselwarter
On 2011-06-20 07:52 UT, Eric S Fraga e.fr...@ucl.ac.uk wrote:

ESF Skip Collins skip.coll...@gmail.com writes:

 I was thinking of trying to get org and microsoft exchange talking to
 each other via soap-client.el and exchange web services
 (ews).Ultimately it would be nice to have a route into the corporate
 world of exchange, outlook, entourage, and blackberry where so many
 of us are forced to live.
 
 My first goal is to link org TODOs to exchange tasks in some
 simplistic way that allows two-way syncing.
 
 If that proves feasible, perhaps calendar items could be next.
 
 Does this sound useful?If anyone with elisp or web services
 programming experience is interested in lending a hand, I am sure to
 need some help.

ESF +1.

ESF My institution is moving to MS Live, whatever that means (I really
ESF am completely ignorant of the MS world, for better or for worse).I
ESF think this is somehow related to Exchange etc.so any type of
ESF integration with org would be greatly helpful for me!At first, all
ESF I care about is one way transfer, from the MS world to org but
ESF obviously two way syncing would be good.

ESF In my case, it's more about calendar events than tasks.My tasks are
ESF typically for my information only but meetings etc involve multiple
ESF people.

ESF I can try to help in due course.We haven't moved to the MS system
ESF yet so I cannot yet say how much I will be able to contribute.Keep
ESF me in the loop!

How much of this problem is really MS-specific? I think it would be a
huge door-opener for providing better general interoperability to have a
clear idea of what types of events and tasks have to be dealt with. Then
we can abstract from the org-representation of data and write plugins
for different export formats.
Ie have a general representation of a recurring event, have one
representation for a task (with all the properties it can have) etc.
Building from there, we can look at the different features supported by
other formats and just dump the supported properties into the
corresponding format or use other libraries as interface with, for
example, an exchange server.

Maybe we should start implementing iCalendar as described in
http://tools.ietf.org/html/rfc5545 and export our various org tags to
well-defined lisp objects.

This would also benefit all the projects trying to bring org to other
platforms, which are now all rolling their own exporters.


-- 
Philipp Haselwarter




Re: [O] org and microsoft exchange

2011-06-20 Thread Nick Dokos
Philipp Haselwarter philipp.haselwar...@gmx.de wrote:

 On 2011-06-20 07:52 UT, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 
 ESF Skip Collins skip.coll...@gmail.com writes:
 
  I was thinking of trying to get org and microsoft exchange talking to
  each other via soap-client.el and exchange web services
  (ews).Ultimately it would be nice to have a route into the corporate
  world of exchange, outlook, entourage, and blackberry where so many
  of us are forced to live.
  
  My first goal is to link org TODOs to exchange tasks in some
  simplistic way that allows two-way syncing.
  
  If that proves feasible, perhaps calendar items could be next.
  
  Does this sound useful?If anyone with elisp or web services
  programming experience is interested in lending a hand, I am sure to
  need some help.
 
 ESF +1.
 
 ESF My institution is moving to MS Live, whatever that means (I really
 ESF am completely ignorant of the MS world, for better or for worse).I
 ESF think this is somehow related to Exchange etc.so any type of
 ESF integration with org would be greatly helpful for me!At first, all
 ESF I care about is one way transfer, from the MS world to org but
 ESF obviously two way syncing would be good.
 
 ESF In my case, it's more about calendar events than tasks.My tasks are
 ESF typically for my information only but meetings etc involve multiple
 ESF people.
 
 ESF I can try to help in due course.We haven't moved to the MS system
 ESF yet so I cannot yet say how much I will be able to contribute.Keep
 ESF me in the loop!
 
 How much of this problem is really MS-specific? I think it would be a
 huge door-opener for providing better general interoperability to have a
 clear idea of what types of events and tasks have to be dealt with. Then
 we can abstract from the org-representation of data and write plugins
 for different export formats.
 Ie have a general representation of a recurring event, have one
 representation for a task (with all the properties it can have) etc.
 Building from there, we can look at the different features supported by
 other formats and just dump the supported properties into the
 corresponding format or use other libraries as interface with, for
 example, an exchange server.
 
 Maybe we should start implementing iCalendar as described in
 http://tools.ietf.org/html/rfc5545 and export our various org tags to
 well-defined lisp objects.
 
 This would also benefit all the projects trying to bring org to other
 platforms, which are now all rolling their own exporters.
 

We've discussed iCalendar before on the list - see e.g. the extensive
thread at

   http://thread.gmane.org/gmane.emacs.orgmode/36517

My own thoughts on the above are at 

   http://thread.gmane.org/gmane.emacs.orgmode/36517/focus=42752

and I have made a little progress along the lines described, but
it's nowhere near ready for prime time.

Nick



[O] org and microsoft exchange

2011-06-17 Thread Skip Collins
I was thinking of trying to get org and microsoft exchange talking to
each other via soap-client.el and exchange web services (ews).
Ultimately it would be nice to have a route into the corporate world
of exchange, outlook, entourage, and blackberry where so many of us
are forced to live.

My first goal is to link org TODOs to exchange tasks in some
simplistic way that allows two-way syncing.

If that proves feasible, perhaps calendar items could be next.

Does this sound useful? If anyone with elisp or web services
programming experience is interested in lending a hand, I am sure to
need some help.