Bonjour Julien, > > I need some directions here. For starters I'm wondering whether the > > implementation of exchange2mbox is actually a good starting pint or > > not. It seems to be a bit old > > Does old code necessarily means bad code? ;-)
Not at all, old code can be very good if it's running fine and no one sees any reason to change it. What I wanted to know was whether newer versions of libmapi made this code outdated and whether things should be done differently now. > It was originally a tool I wrote during an afternoon at SambaXP 2006, so > no it was not meant to be used in production system - as it is. Fair enough. I'm now working on something called exchange2maildir and it will have to be 'production' so I can keep using my Linux box for work. Once I have a little confidence in my code, I will share it on this list. > For the TNEF problem you mention in further mail, Brad should normally > be working on this issue at some point. That's one of the last mapitest > unit test still failing. Currently more than 60% of my emails have content type TNEF. I just replace the content type with multipart/mixed and it seems ok. Let's see when this will break. In your response to my TNEF email, you said: >> As far as I know Exchange automatically generate/translate message body >> - if possible - so it can be either retrieved either by fetching >> PR_RTF_COMPRESSED, PR_HTML or PR_BODY. Was that meant as a reply to the TNEF question or to the GetBestBody/RTF question I had in another email? I did some tests by setting the 'format' variable to a fixed value. If it's set to Text and the email is HTML, it is converted properly. Same thing other way round. However, when I set 'format' to RTF, then I get MAPI_E_CORRUPT_DATA after WrapCompressedRTFStream returns. If I replace the call to WrapCompressedRTFStream with a call to octool_get_stream, then I get some garbled stuff, so the message body seems to be compressed. Could there be something wrong in the decompression routine? > What kind of pointer/code sample are you looking for? I think I'm ok now. Jelmer also pointed out the fetchmail project, and in the torture test files I also found some ideas. One more thing: do you have a tool to list all, delete all, delete selected message IDs that have been added to a profile? dirk -- Be Yourself @ mail.com! Choose From 200+ Email Addresses Get a Free Account at www.mail.com _______________________________________________ devel mailing list [email protected] http://mailman.openchange.org/listinfo/devel
