fetchmail exis status 1 - Only few emails are getting retrieved.

Dilip M dilip.mahadevappa at gmail.com
Mon Sep 17 10:27:48 UTC 2007


I installed ubutu  over internet using net image
fetchmail version: 6.3.8. A default that comes with ubuntu.

Thank you for Andrew to make this setup easy for beginners :)

** I'm getting a EXIT STATUS 1, using fetchmail to POP gmails! **

1. First logged into gmail webmail and activated "Enable POP for all
mail (even mail that's already been downloaded)". + "Keep a copy..."

There are ~ 3000 emails in my gmail inbox!

2. My "~/.fetcmailrc", is

poll pop.gmail.com                   # Tell fetchmail about server
with proto POP3                      # Use the POP-protocol
user 'username at gmail.com '               # Your Gmail Username
there with password '****' # Your Gmail Password
is 'dilipm' here                   # Local Username
mda "/usr/bin/procmail -d %T"        # Tell fetchmail which MDA to use
options                              # Options duh
keep                                 # Keep the mail on server = safe
sslcertpath /etc/ssl/certs

3. Did 'fetchmail -vv' for the first time, and emails are getting
fetched. Since gmail makes them available in batches. I executed
fetchmail -vv, several times..


4. What I noticed, is the logfile says...


712 messages (712 seen) for ........at gmail.com at pop.gmail.com


fetchmail: POP3> QUIT
fetchmail: POP3< +OK Farewell.
fetchmail: 6.3.8 querying pop.gmail.com (protocol POP3) at Sun Sep 16
16:22:45 2007: poll completed
fetchmail: Query status=1 (NOMAIL)
fetchmail: normal termination, status 1

Exit code 1 means, There was no mail awaiting retrieval. (There may
have been old mail still on the server but not selected for

But there are still many emails!  Don't know, why they are not selected for

I also did, rm ~/fetchids and moved the mailbox + again set the "Enable
POP for all mail (even mail that's already been downloaded)"..and
repeated the 4 steps again...I get the *same* emails...but not

Has anyone faced a same problem?


More information about the ubuntu-users mailing list