Re: How do you get the body of a message (in a simple non-UI console app) ?



El mié, 19-05-2010 a las 10:04 +0200, Sergio Villar Senin escribió:
> En 19/05/10 04:09, Steve Rosen escribiu:
> > Hi All,
> >
> > Okay - another newbie question for the group - I've made great progress in
> > creating a very simple application that tries to do the following (it is
> > mostly based on the "folder-lister" sample program in the "tests"
> > directory):
> >
> > 1. Hook up to an account store that maps to one of my Gmail accounts -
> > DONE!
> > 2. Recurse my way through all the folders of that Gmail account - DONE!
> > 3. When finding a folder called "Inbox", do an async folder refresh -
> > DONE!
> > 4. After the refresh of the Inbox folder, do an async get headers - DONE!
> > 5. For each header in the header callback function, do an async get
> > msg - DONE!
> > 6. For each msg in the msg callback function, dump out its main text
> > body - NOT DONE...  :(
> >
> > This is meant to be a very simple console app that does NOT use any of the
> > TinyMail UI framework!!!!!
> >
> > All I want to do is grab the main "text/plain" mime parts of the
> > messages in
> > the Inbox of a Gmail account - and I'm oh-so-close... !
> 
> As I already told you in another email, you most likely are retrieving
> single part messages and thus the TnyMsg you are handling is the
> TnyMimePart you are looking for.

	We have in the modest wiki some notes about the structure of messages:

	* Examples of the structure of the messages, depending on its mime
parts, attachments, etc. As Sergio told, be careful that the "top" part
is the TnyMsg itself.
https://garage.maemo.org/plugins/wiki/index.php?ModestMimeHandling&id=9&type=g

	* More about how to detect where the attachments are:
https://garage.maemo.org/plugins/wiki/index.php?AttachmentDetection&id=9&type=g


-- 
José Dapena Paz <jdapena igalia com>
Igalia



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]