aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--imap.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 7529c693..57f5bff2 100644
--- a/NEWS
+++ b/NEWS
@@ -69,6 +69,8 @@ Unless otherwise noted, changes to this release were made by Matthias Andree.
* Add missing --help text for "--sslcertck" option.
* fetchmailconf.py: Accept --help and --version.
* fetchmail --version now prints the copyright notice.
+* don't complain about READ-ONLY IMAP folders in --fetchall --keep mode.
+ Reported Alexander Zangerl, Debian Bug#348964.
fetchmail 6.3.1 (released 2005-12-19):
diff --git a/imap.c b/imap.c
index b78abb30..68e87eb8 100644
--- a/imap.c
+++ b/imap.c
@@ -697,6 +697,11 @@ static int imap_getrange(int sock,
ok = gen_transact(sock,
check_only ? "EXAMINE \"%s\"" : "SELECT \"%s\"",
folder ? folder : "INBOX");
+ /* imap_ok returns PS_LOCKBUSY for READ-ONLY folders,
+ * which we can safely use in fetchall keep only */
+ if (ok == PS_LOCKBUSY && ctl->fetchall && ctl-> keep)
+ ok = 0;
+
if (ok != 0)
{
report(stderr, GT_("mailbox selection failed\n"));