You are not logged in.

#1 2006-02-05 02:44:58

pilgrim
Member
Registered: 2005-11-30
Posts: 9

Getmail broke

This morning i did my daily "pacman -Syu", one of the upgrades was getmail. Since then getmail will not work. I normally run getmail from a cron job, but I noticed that I didn't receive any mail all day. So, I tried to run getmail manually like so:

getmail --rcfile <filename>

It wouldn't download new mail. I know there is new mail on the server because I can see it from my webmail account. Anybody else have this problem?

Cheers

Offline

#2 2006-02-05 20:00:11

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: Getmail broke

No, getmail works fine after the upgrade here... I think you can pass the -v option (also repeated) to getmail, and also define message_log in the configuration file, so to have a clearer insight on what's happening there.


Mortuus in anima, curam gero cutis

Offline

#3 2006-02-05 22:27:01

fonzi
Member
From: Wangen-Brüttisellen
Registered: 2006-01-01
Posts: 7

Re: Getmail broke

i got the same problem with my imap server.

here my getmail settings:

[default]
verbose = 1
readall = true
set delete = true

[retriever]
type = SimpleIMAPRetriever
server = imap.hsr.ch
username = !!!username!!!
timeout = 30
port = 143
password = !!!password!!!
mailboxes = ("inbox")
timeout = 30

[destination]
type = MDA_external
path = /usr/bin/procmail

Offline

#4 2006-02-06 00:02:21

scottro
Member
From: NYC
Registered: 2002-10-11
Posts: 466
Website

Re: Getmail broke

Apparently there's trouble with IMAP.  I have one account that can use either.  If I choose IMAPRetriever, it gets no mail.  Running it with the -v flag simply indicates there are no messages.  Running it as POP3Retriever, I get the messages. 

So the problem seems related to IMAP accounts.

I just tested on FreeBSD as well, and the problem seems Arch specific.

Edited a few minutes later--I take back the last line.  It seems the problem is with getmail 4.5. 

Time to view the changelog.

Offline

#5 2006-02-06 00:35:03

scottro
Member
From: NYC
Registered: 2002-10-11
Posts: 466
Website

Re: Getmail broke

Looking at the changelog, I don't know what might have caused this problem. 


Taking a quick look at the searchable archives of the getmail lists,
I don't see any mention of this.   However, it's only been out a few days.

The only workaround I can think of is if your server also handles pop--using POP3 instead instead of IMAP does work.

Offline

#6 2006-02-06 02:06:02

scottro
Member
From: NYC
Registered: 2002-10-11
Posts: 466
Website

Re: Getmail broke

Another followup.  I have the same problem, as I said, on FreeBSD. 
So, on the Arch box, I removed the Arch package and installed from source.  (In the README on bug reporting, he says to be sure that the problem isn't with the packaging.)

I had the same problem.

So, I've joined their mailing list and posted a report--I'll keep you updated.  Again, it does seem to work as always with pop3.

Offline

#7 2006-02-06 05:40:52

pilgrim
Member
Registered: 2005-11-30
Posts: 9

Re: Getmail broke

scottro wrote:

So the problem seems related to IMAP accounts.

That's true. I should have mentioned that I'm retrieving my mail from an IMAP account. I didn't try POP3.

By the way, I downgraded getmail to the 4.4.4(?) package and now it works fine again.

Offline

#8 2006-02-06 23:40:04

scottro
Member
From: NYC
Registered: 2002-10-11
Posts: 466
Website

Re: Getmail broke

As I said, I posted to the getmail mailing list and Mr. Cazabon (the author of getmail) tested and confirmed that it is an issue.
He said that for the moment, the workaround is to either downgrade, as you did, or use POP.

I'll drop a note to the maintainer--I'm not going to file a bug report  as it isn't an Arch-specific issue.

POP3 is working, but I imagine there will be a fixed version of getmail very shortly.

Offline

#9 2006-02-07 05:04:14

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: Getmail broke

*tada!* and indeed he did drop me a note smile

As of a few minutes ago (plus mirror propogation time blah blah blah..), a pacman -Syu will force a downgrade to 4.4.4, we'll stick with that until a fixed version is released.


The suggestion box only accepts patches.

Offline

#10 2006-02-07 16:24:52

loserMcloser
Member
From: Canada
Registered: 2004-12-15
Posts: 130

Re: Getmail broke

From the Getmail Changelog:

Version 4.5.2
7 February 2006

  -fix IMAP bug where no mail was retrieved introduced in 4.5.0.  Thanks:
  Scott Robbins.

Offline

#11 2006-02-07 20:56:29

scottro
Member
From: NYC
Registered: 2002-10-11
Posts: 466
Website

Re: Getmail broke

Yup and it works--I tested it both from source and then just modifying the PKGBUILD so that it would install 4.5.2

Works like a charm. 

And, in addition to his thanks to me, thanks for the two original posters who first discovered the problem.

Offline

#12 2006-02-18 14:44:46

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: Getmail broke

After the upgrade to 4.5.4, getmail seems to be broken again here, but in a different (and more radical) way:

getmail

Exception: please read docs/BUGS and include the following information in any bug report:

  getmail version 4.5.4
  Python version 2.4.2 (#1, Nov 12 2005, 10:57:47)
[GCC 4.0.3 20051006 (prerelease)]

Unhandled exception follows:
    File "/usr/bin/getmail", line 558, in main
    go(configs)
    File "/usr/bin/getmail", line 89, in go
    retriever.initialize()
    File "/usr/lib/python2.4/site-packages/getmailcore/_retrieverbases.py", line 486, in initialize
    RetrieverSkeleton.initialize(self)
    File "/usr/lib/python2.4/site-packages/getmailcore/_retrieverbases.py", line 365, in initialize
    self._read_oldmailfile()
    File "/usr/lib/python2.4/site-packages/getmailcore/_retrieverbases.py", line 312, in _read_oldmailfile
    self.oldmail[msgid] = int(timestamp)
  ValueError: invalid literal for int():

Please also include configuration information from running getmail
with your normal options plus "--dump".

If i run "getmail -v --dump", then:

getmail version 4.5.4
Copyright (C) 1998-2006 Charles Cazabon.  Licensed under the GNU GPL version 2.
getmail configuration:
  getmail version 4.5.4
  Python version 2.4.2 (#1, Nov 12 2005, 10:57:47)
[GCC 4.0.3 20051006 (prerelease)]
  retriever:  SimplePOP3SSLRetriever(certfile="None", delete_dup_msgids="False", getmaildir="~/.getmail/", keyfile="None", password="*", port="995", server="pop.gmail.com", timeout="180", use_apop="False", username="patroclo7")
  destination:  MDA_external(allow_root_commands="False", arguments="()", command="procmail", group="None", path="/usr/bin/procmail", unixfrom="True", user="None")
  options:
    delete : False
    delete_after : 0
    delivered_to : True
    logfile : logfile(filename="~/.getmail/getmail.log")
    max_message_size : 0
    max_messages_per_session : 0
    message_log : ~/.getmail/getmail.log
    message_log_syslog : False
    read_all : False
    received : True
    verbose : 1

I am going to downgrade--
Any tip?


Mortuus in anima, curam gero cutis

Offline

#13 2006-02-18 20:59:58

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: Getmail broke

complain to the developer of getmail, all I do is package it up for arch.

If it means anything, I haven't had any issues, and I also pull from a gmail account.


The suggestion box only accepts patches.

Offline

Board footer

Powered by FluxBB