[fso] PIM.Messages

Sebastian Krzyszkowiak seba.dos1 at gmail.com
Mon Jul 27 12:01:10 CEST 2009

On Mon, Jul 27, 2009 at 11:58, Michal Brzozowski<rusolis at poczta.fm> wrote:
> 2009/7/27 Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
>> I didn't work at folders yet. To differ between incoming and sent,
>> just query for {'Direction':'in'} or {'Direction':'out'}
>> NewMessage notifies about every message added to database. It's
>> emitted at boot when reading messages from db, and it's emmited after
>> adding message by Add method. It's also emitted on incoming message.
>> IncomingMessage notifiers only about new incoming message.
>> Add just adds message to default backend. opimd can't send messages
>> (and I don't know if it should, but that's topic to discuss by FSO
>> guys). So use Add to store sent messages or drafts.
>  If I send a message using the GSM.SMS service, will it automatically be
> inserted to the database (with 'Direction' = 'out') and will I be notified
> with the NewMessage signal?

No, now you have to add it using PIM.Messages.Add method. Then it'll
be notified with NewMessage signal.

Sebastian Krzyszkowiak

More information about the devel mailing list