Thank you DeAnna and Prakash:
The problem with your solution is that I am programming using PocketC,
directly from the device and the coding has certain limitations as for ex.
that the sysAppLaunchCmdAddRecord is not available. That's the reason why I
am asking about the MailDB database structure, so I am able to write
straightforwart to it.
Now I am browsing the SDK examples to see if I can get the field types and
the meaning of codes of each record of the MailDB.
To be more clear the answer I would like to have is:
You have to add to the base 14 null-terminated strings, the first is the
"To:" field, the second is "From:"... and the ...has to be set up to 0 for
inbox, 1 for outbox, 2 for deleted...etc.
Any idea where to get the info?
Thank you very much.
Alejandro
----- Original Message -----
From: "DeAnna Davidson" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, June 28, 2001 10:14 AM
Subject: RE: MailDB
> Alejandro,
>
> I would encourage you not to create the record and set it's attributes
> directly at all. Palm provides a sysAppLaunchCmdAddRecord launch code
> that would allow you to add a mail record to the outbox of the mail
> applicaiton without having to specifically create a mail record. You
> fill a MailAddRecordParamsType structure and do a sysAppLaunch of the
> mail application with the sysAppLaunchCmdAddRecord launch code, and
> voila, you've added a record to the outbox.
>
> I hope this helps,
>
> DeAnna
>
> -----Original Message-----
> From: Prakash [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 28, 2001 4:22 AM
> To: Palm Developer Forum
> Subject: Re: MailDB
>
>
> Hi there,
>
> Set the record attribute to Outbox category by something like:
>
> DmRecordInfo (refDB, idx, &attr, NULL, NULL);
> attr &= ~dmRecAttrCategoryMask;
> attr |= outboxCategory | dmRecAttrDirty;
> DmSetRecordInfo (refDB, idx, &attr, NULL);
>
> And the outbox category should be 1.
> Hope this helps..
>
> Best Regards,
> Prakash
>
> --- "A. Santillan Iturres" <[EMAIL PROTECTED]> wrote:
> > I would like to know if anybody knows the structure of the database
> MailDB.
> > I know it has 14 fields on each register and that the DB name is
> MailDB, the
> > creator id is madk.
> > What I want to do is to add a record to the database, and I succeed in
> doing
> > it but just to the inbox. I do not know how to set the record so it
> belongs
> > to the outbox.
> >
> > Any idea?
> >
> > Alejandro Santillan Iturres
> > Buenos Aires
> > Argentina
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please
> > see http://www.palmos.com/dev/tech/support/forums/
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/