How can I use fetchmail with GMail/Google Mail?
Google’s IMAP servers, as of April 2008, are broken and re-encode MIME-encoded headers improperly and are not feature-complete yet. The model how their servers organize mail also deviates in significant ways from what the POP3 or IMAP protocol ‘fathers’ conceived. This means all sorts of strange effects, for instance, your sent mail may show up in the mail that fetchmail fetches. It’s best to avoid fetching mail from Google until they are using standards-compliant software.