imaplib fetch message flags

R

Rich Healey

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi List,

I'm using an example of an imap client I found with google as a
framework for a more fullfeatured imap client.

They use the line:

f = self.M.fetch(num, '(BODY[HEADER.FIELDS (SUBJECT FROM)])')

To retrieve the Subject: and From: fields from the message. I'm curious
about how to get the imap flags attached to the message, I can't find
this anywhere. The documentation suggests that it's merely some flag as
part of the `message_parts' argument to IMAP4{,_SSL}.fetch() method, but
what I cannot find. I've tried
(BODY[HEADER.FIELDS (SUBJECT FROM FLAGS)])
but it doesn't have the desired result.

I'm sure I'm missing something obvious.

Thanks in advance

Richo
- --
Rich Healey - iTReign \ .''`. / (e-mail address removed)
Developer / Systems Admin \ : :' : / (e-mail address removed)
AIM: richohealey33 \ `. `' / (e-mail address removed)
MSN: (e-mail address removed) \ `- / (e-mail address removed)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmrWBwACgkQLeTfO4yBSAepWACdHufITez2lL78KgRY9D/WUN9y
V3UAn12rdLxG6nKv1mfIxUeSywpEQk94
=RLfw
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top