]> Pileus Git - ~andy/fetchmail/commitdiff
Ignore UIDL failures if fetchall is on.
authorMatthias Andree <matthias.andree@gmx.de>
Tue, 14 Dec 2010 19:58:54 +0000 (20:58 +0100)
committerMatthias Andree <matthias.andree@gmx.de>
Tue, 14 Dec 2010 19:58:54 +0000 (20:58 +0100)
We still try UIDL so that users don't need to re-fetch
mail already seen if they do something like this:

fetchmail --all --keep
fetchmail --keep

pop3.c

diff --git a/pop3.c b/pop3.c
index fc3029a1d659ef83a74702d02e928b1f8a196aa8..bec8ab099a20f758cce66d2d0a309f9ea87fd2c6 100644 (file)
--- a/pop3.c
+++ b/pop3.c
@@ -863,8 +863,10 @@ static int pop3_getrange(int sock,
            /* grab the mailbox's UID list */
            if (gen_transact(sock, "UIDL") != 0)
            {
+               if (!ctl->fetchall) {
                    report(stderr, GT_("protocol error while fetching UIDLs\n"));
                    return(PS_ERROR);
+               }
            }
            else
            {