On Tue, Dec 12, 2000 at 11:55:17AM +0100, Thibaut Cousin wrote: > Has anyone tried to use korn to fetch mail from an IMAP server ? I haven't > been able to use it. It just... never probe the server. It only works with > local mail.
To be a bit more specific, and as a service I've put up a patched i386 potato binary at: http://eis.bris.ac.uk/~enbeo/korn_2.0.1-1_i386.deb You might want to remove it to get apt-get upgrade to install the newest version from Ivan again. Easiest to get with wget and then install with dpkg -i. The patches are below. Bart --- kdenetwork-2.0.1/korn/imap.cpp.orig Tue Nov 21 10:31:47 2000 +++ kdenetwork-2.0.1/korn/imap.cpp Tue Dec 12 20:41:16 2000 @@ -58,7 +58,7 @@ _user = _imap->mungeUser( _user ); // if user is null, assume PREAUTH - if ( _user.isEmpty() ) + if ( ! _user.isEmpty() ) { command = QString::number(seq) + fu(" LOGIN ") + _user + fu(" ") + _password + fu("\r\n"); if ( _imap->command( command, seq ) == false ) { @@ -69,7 +69,7 @@ seq++; } - command = QString::number(seq) + fu(" STATUS ") + _mailbox + fu(" (recent)\r\n"); + command = QString::number(seq) + fu(" STATUS ") + _mailbox + fu(" (unseen)\r\n"); if ( _imap->command( command, seq ) == false ) return; --- kdenetwork-2.0.1/korn/kbiffimap.cpp.orig Tue Nov 21 10:31:48 2000 +++ kdenetwork-2.0.1/korn/kbiffimap.cpp Tue Dec 12 20:40:40 2000 @@ -121,7 +121,7 @@ return false; // check for new mail - QRegExp recent_re(fu("RECENT [0-9]*")); + QRegExp recent_re(fu("UNSEEN [0-9]*")); if( ( match = recent_re.match( response, 0, &len ) ) > -1 ) _messages = response.mid( match + 7, len - 7 ).toInt();

