Did OpenPOP.net with GMail attachments break recently?
Posted
by Ashley Simpson
on Stack Overflow
See other posts from Stack Overflow
or by Ashley Simpson
Published on 2010-01-20T02:19:43Z
Indexed on
2010/06/10
1:02 UTC
Read the original article
Hit count: 549
I could swear this code was working few days ago. I'm using the SSL binaries from http://trixy.justinkbeck.com/2009/07/c-pop3-library-with-ssl-for-gmail.html
POPClient client = new POPClient("pop.gmail.com", 995, "[email protected]", "qwerty", AuthenticationMethod.USERPASS, true);
int unread = client.GetMessageCount();
for (int i = 0; i < unread; i++)
{
Message m = client.GetMessage(i + 1, true);
Console.WriteLine(m.Subject);
if (m.HasAttachment)
{
Attachment a = m.GetAttachment(1);
// Problem! HasAttachment flag is set, but there's no attachments in the collection!
m.SaveAttachment(a, a.ContentFileName);
}
}
client.QUIT();
But today, I can read the mail ok but the attachments are empty. I'm thinking the China fiasco caused them to change something. Ideas?
© Stack Overflow or respective owner