diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-01-20 10:42:11 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-01-20 10:42:11 +0000 |
commit | e39bf89834f3dcdc73414d683c1bcbbdf1cf8350 (patch) | |
tree | 0651b764366589b203c60ccd1586fb1e5a1539aa /imap.c | |
parent | 00c418250df72707c9d9e7ad194393bc2552d4f0 (diff) | |
download | fetchmail-e39bf89834f3dcdc73414d683c1bcbbdf1cf8350.tar.gz fetchmail-e39bf89834f3dcdc73414d683c1bcbbdf1cf8350.tar.bz2 fetchmail-e39bf89834f3dcdc73414d683c1bcbbdf1cf8350.zip |
don't complain about READ-ONLY IMAP folders in --fetchall --keep mode.
Reported Alexander Zangerl, Debian Bug#348964.
svn path=/branches/BRANCH_6-3/; revision=4665
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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")); |