On Tue, 2008-04-01 at 16:17 +0100, Mark Ridley wrote: > Hi, > How do I use ocpf-dump to dump out a message? > It keeps seg faulting on the ocpf-dump? > Thx > > [EMAIL PROTECTED] openchangeclient -F > MAILBOX (1 messages) > +-------------------------------------+ > message id: <[EMAIL PROTECTED]> > subject: Test > From: mark > To: mark > Cc: > Bcc: > Attachment: False > Codepage: CP_USASCII > Body: > test > > > fetchmail : MAPI_E_SUCCESS (0x0) > [EMAIL PROTECTED] openchangeclient --ocpf-dump=<[EMAIL PROTECTED]> > bash: syntax error near unexpected token `newline' > [EMAIL PROTECTED] openchangeclient [EMAIL PROTECTED] > Segmentation fault > [EMAIL PROTECTED]
Thanks for pointing the segfault, will fix this too. Regarding the way to use it for emails, you first have to run fetch-items=mail instead of fetchmail to fetch the FID/MID couple required: $ openchangeclient --fetch-items=mail message id: <[EMAIL PROTECTED]> : 9514000000000001/A294000000000001 Next use ocpf-dump with 9514000000000001/A294000000000001 $ openchangeclient --ocpf-dump=9514000000000001/A294000000000001 If everything worked fine, openchangeclient will tell you it has created a file named a294000000000001.ocpf (for the given example). You next inspect the file, test with ocpf-syntax if the file was properly generated and if ocpf-syntax dump is correct, use ocpf-sender to send the message back to the server. Cheers, Julien. > > On 1/4/08 15:36, "Julien Kerihuel" <[EMAIL PROTECTED]> wrote: > > > On Tue, 2008-04-01 at 19:19 +1100, Brad Hards wrote: > >> On Tuesday 01 April 2008 03:14:35 am Julien Kerihuel wrote: > >> <snip> > >>>> Brad, can you let me know if the given patch fixes ocpf file generation > >>>> for you? (ocpf-dump, ocpf-syntax and ocpf-send) > >> No error for any of the operations, and the subject works, but no "To:" > >> addressee (for either of two examples I tried). You can get the .ocpf here: > >> http://www.frogmouth.net/8bcf000000000001.ocpf > >> > >> The dump looks OK: > >> PR_DISPLAY_TO = "Test User6" > >> So I'm not sure where the error is > > > > Recipients (to, cc, bcc) can only be set using ModifyRecipients, not > > SetProps. > > > > I had referred the bug in OCPF documentation and planned to fix this in > > libmapi-0.8, but I just can't wait. I'm currently working on adding > > recipients support to the library (api/dump/write) and should be able to > > commit the feature tonight. > > > > Cheers, > > Julien. -- Julien Kerihuel [EMAIL PROTECTED] OpenChange Project Manager GPG Fingerprint: 0B55 783D A781 6329 108A B609 7EF6 FE11 A35F 1F79
signature.asc
Description: This is a digitally signed message part
_______________________________________________ devel mailing list [email protected] http://mailman.openchange.org/listinfo/devel
