[pkg-fetchmail-maint] Bug#348964: fetchmail is incapable of reading read-only folders even with -k

Alexander Zangerl az at debian.org
Fri Jan 20 04:46:02 UTC 2006


Package: fetchmail
Version: 6.2.5-12sarge4
Severity: normal

if you have public imap folders which the server marks
READ-ONLY, then fetchmail will always abort after the SELECT
stage with the message "mailbox selection failed".

the code in question is in imap.c, line 134++, and the reason 
for its existence is to avoid looping permanently if the server 
does not allow us to delete an email.

this behaviour is broken, as not being able to delete emails from the
server is fine if the user tells fetchmail to keep messages.
there is no technical reason for fetchmail to assume server failure 
on a read-only select result if -k is given. 

an example conversation:
fetchmail: IMAP> A0003 SELECT "Public Folders/NoticeBoard/All_Staff_Announcements"
fetchmail: IMAP< * 38 EXISTS
fetchmail: IMAP< * 38 RECENT
fetchmail: IMAP< * FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
fetchmail: IMAP< * OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Draft $MDNSent)] Permanent flags
fetchmail: IMAP< * OK [UNSEEN 1] Is the first unseen message
fetchmail: IMAP< * OK [UIDVALIDITY 1051] UIDVALIDITY value
fetchmail: IMAP< A0003 OK [READ-ONLY] SELECT completed.
fetchmail: mailbox selection failed
fetchmail: IMAP> A0004 LOGOUT

az

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (980, 'testing'), (970, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.14
Locale: LANG=C, LC_CTYPE=de_AT (charmap=ISO-8859-1)

Versions of packages fetchmail depends on:
ii  adduser                   3.63           Add and remove users and groups
ii  base-files                3.1.2          Debian base system miscellaneous f
ii  debconf                   1.4.30.13      Debian configuration management sy
ii  debianutils               2.8.4          Miscellaneous utilities specific t
ii  libc6                     2.3.2.ds1-22   GNU C Library: Shared libraries an
ii  libssl0.9.7               0.9.7e-3sarge1 SSL shared libraries

-- no debconf information




More information about the pkg-fetchmail-maint mailing list