NewLine, I did never get fetcmail to work, do you mind sharing what you did ?
I used atyhis python script instead, I didn't need to install extra modules to get it working
It reads the last mail from the mailfolder Inbox
Most of the code I got here:
mail = imaplib.IMAP4_SSL('imap.xxx.com')
# Out: list of "folders" aka labels in gmail.
mail.select("inbox") # connect to inbox.
result, data = mail.search(None, "ALL")
ids = data # data is a list.
id_list = ids.split() # ids is a space separated string
latest_email_id = id_list[-1] # get the latest
result, data = mail.fetch(latest_email_id, "(RFC822)") # fetch the email body (RFC822) for the given ID
raw_email = data # here's the body, which is raw text of the whole email
# including headers and alternate payloads
email_message = email.message_from_string(raw_email)
#print the body
for part in email_message.get_payload():