Re: [otlkcon-devel] ICalStreamToMessage()

2007-06-27 Thread Michael Sheldon
On Tue, 26 Jun 2007 09:41:56 -0700 (PDT)
"Kervin L. Pierre" <[EMAIL PROTECTED]> wrote:

> >  Any ideas what I might be doing wrong? Are there
> > some iCal properties
> > that MIMEDIR requires which I'm missing?
> > 
> 
> It's been a while, but I have seen the
> MIMEDIR stuff choke on a lot of valid
> iCalendar.  I'm working on getting my
> testing environment back up, so I'll
> take a look at it then.

 I've found what I was doing wrong now, for anyone interested the
ICalStreamToMessage() function won't process raw VEVENTs, they have to
be encapsulated inside a VCALENDAR.

 Cheers,
  Michael.

-- 
Michael Sheldon

Tel.: +49 (0)21 61 / 46 43 197

credativ GmbH, HRB Mönchengladbach 12080
Hohenzollernstr. 133, 41061 Mönchengladbach
Geschäftsführung: Dr. Michael Meskes, Jörg Folz 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
otlkcon-devel mailing list
otlkcon-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/otlkcon-devel


Re: [otlkcon-devel] ICalStreamToMessage()

2007-06-26 Thread Kervin L. Pierre
Hello Michael,

--- Michael Sheldon <[EMAIL PROTECTED]>
wrote:
>  I took a little look at this but wasn't able to
> make much progress.

I've added the #OLKCON_USE_MIMEDIR macro
to otlkcon_config.h .  If set to 1 the
MIMEDIR methods should be used otherwise
the ICalExport() and ICalImport() methods
are used.  The default is 0, so this
should break things for now.

The task is really to complete ICalImport()
and ICalExport() methods in O_IMessage
class.  ICalExport() walks through the
IMessage object's properties and converts
the ones it can to iCalendar formatted
strings.  ICalImport() converts the
iCalendar formatted strings to MAPI
properties.

For your testing, I guess you can set the
macro to 1 to continue with MIMEDIR.


>  Any ideas what I might be doing wrong? Are there
> some iCal properties
> that MIMEDIR requires which I'm missing?
> 

It's been a while, but I have seen the
MIMEDIR stuff choke on a lot of valid
iCalendar.  I'm working on getting my
testing environment back up, so I'll
take a look at it then.

Best regards,
Kervin



> > 
> > Best regards,
> > Kervin
> > 
> > 
> > --- Michael Sheldon <[EMAIL PROTECTED]>
> > wrote:
> > 
> > > Hi Kervin,
> > > 
> > > > In the near future though, I'm actually
> > > > looking into moving all iCal operations
> > > > to libical.
> > > > 
> > > > Do you have anytime you can put towards
> > > > this?
> > > 
> > >  I'm happy to help where I can, however I'm not
> very
> > > familiar with
> > > development under Windows (I primarily work with
> > > GNU/Linux), this is the
> > > first time I've used Visual Studio to any great
> > > degree and my knowledge
> > > of MAPI is only what I've picked up from playing
> > > with otlkcon, so I
> > > don't know how much use I'll be.
> > > 
> > > > What 'wire' protocol would Kolab speak?
> > > > is it documented?
> > > 
> > >  Kolab works by storing simple XML documents on
> an
> > > IMAP server.
> > > Unfortunately it does depend on a draft IMAP
> > > extension (ANNOTATEMORE),
> > > which is only provided by a small number of IMAP
> > > libraries and servers.
> > > The specification for the Kolab file format is
> > > available from
> > > http://www.kolab.org and of course the IMAP
> protocol
> > > is widely
> > > documented.
> > > 
> > >  I'm using the open source IMAP c-client library
> > > with otlkcon to
> > > provide IMAP support (with ANNOTATEMORE), I have
> > > things working to the
> > > extent where otlkcon will happily retrieve Kolab
> > > calendar messages from
> > > the IMAP server and parse a few of their details
> in
> > > to iCal strings for
> > > otlkcon to then convert in to Mapi objects.
> > > Unfortunately this
> > > incompatibility with Outlook 2007 prevents me
> from
> > > going much further,
> > > but once this is solved it should be fairly
> trivial
> > > to finish up the
> > > parsing for all elements and implement message
> > > writing.
> > > 
> > >  Once this is completed there are some further
> > > changes I'd like to try
> > > making it possible to have multiple calendars
> > > created from a single
> > > account (if this isn't already possible),
> because
> > > with a Kolab system
> > > it's normal for users to share quite a few
> calendars
> > > with one another
> > > or to have globally shared calendars (simply a
> > > matter of setting IMAP
> > > ACLs on the respective mailboxes). Any input on
> this
> > > is of course
> > > welcome.
> > > 
> > >  Thanks,
> > >   Michael.
> > > 
> > > > 
> > > > Best regards,
> > > > Kervin
> > > > 
> > > > 
> > > > --- Michael Sheldon
> <[EMAIL PROTECTED]>
> > > > wrote:
> > > > 
> > > > >  Hi,
> > > > > 
> > > > >   I'm attempting to hack together a Kolab
> driver
> > > for
> > > > > the open
> > > > > connector and I'm testing with Outlook 2007.
> > > > > Uunfortunately when otlkcon
> > > > > attempts to turn my iCal strings in to Mapi
> > > objects
> > > > > I get a runtime
> > > > > error. This is caused by otlkcon attempting
> to
> > > use
> > > > > MapiCvt from
> > > > > MIMEDIR.DLL, which as far as I can tell this
> is
> > > an
> > > > > undocumented
> > > > > function that has had it's usage changed
> between
> > > > > Outlook 2003 and
> > > > > Outlook 2007.
> > > > > 
> > > > >  How might I go about making otlkcon
> compatible
> > > with
> > > > > Outlook 2007? 
> > > > > 
> > > > >  Thanks,
> > > > >   Michael Sheldon.
> > > > > 
> > > > > -- 
> > > > > Michael Sheldon
> > > > > 
> > > > > Tel.: +49 (0)21 61 / 46 43 197
> > > > > 
> > > > > credativ GmbH, HRB Mönchengladbach 12080
> > > > > Hohenzollernstr. 133, 41061 Mönchengladbach
> > > > > Geschäftsführung: Dr. Michael Meskes, Jörg
> Folz 
> > > > > 
> > > > >
> > > >
> > >
> >
>
-
> > > > > This SF.net email is sponsored by DB2
> Express
> > > > > Download DB2 Express C - the FREE version of
> DB2
> > > > > express and take
> > > > > control of your XML. No limits. Just data.
> Click
> > > to
> > > > > get it now.
>