<font size="2"><font face="arial,helvetica,sans-serif"><div>I have a few emails I am trying to download from my google account. I seem to be getting the message but each of these messages have an attachment. I don't understand what I ned to do to get and save the attachment to a local file.</div>
<div>Here is what I have so far. </div><div>M = imaplib.IMAP4_SSL(IMAP_SERVER, IMAP_PORT)</div><div>rc, resp = M.login('xxxxx@xxxx', 'XXXXX')</div><div>print rc, resp</div><div>M.select('[Gmail]/All Mail')</div>
<div>M.search(None, 'FROM', '<a href="mailto:someone@logitech.com">someone@logitech.com</a>')</div><div>#M.fetch(121, '(body[header.fields (subject)])')</div><div>M.fetch(121, '(RFC822)')</div>
</font></font><br>-- <br>Thanks<div>Vincent Davis</div><div>720-301-3003<span></span><span></span></div><br>