summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregorio Guidi <greg_g@gentoo.org>2005-02-28 00:24:35 +0000
committerGregorio Guidi <greg_g@gentoo.org>2005-02-28 00:24:35 +0000
commitefe3fb435d9dde807c04f1a1bc249b2f94b15ad2 (patch)
tree81532897da812d5ba5a611f369932f716ea4bb7f /kde-base/kdepim-kioslaves
parentNew version, bug 83433. Mark previous version x86 stable (diff)
downloadgentoo-2-efe3fb435d9dde807c04f1a1bc249b2f94b15ad2.tar.gz
gentoo-2-efe3fb435d9dde807c04f1a1bc249b2f94b15ad2.tar.bz2
gentoo-2-efe3fb435d9dde807c04f1a1bc249b2f94b15ad2.zip
Add patch for serious bug.
(Portage version: 2.0.51-r15)
Diffstat (limited to 'kde-base/kdepim-kioslaves')
-rw-r--r--kde-base/kdepim-kioslaves/files/kdepim-3.4.0_rc1-dimap-cache-loss.patch89
-rw-r--r--kde-base/kdepim-kioslaves/kdepim-kioslaves-3.4.0_rc1.ebuild5
2 files changed, 93 insertions, 1 deletions
diff --git a/kde-base/kdepim-kioslaves/files/kdepim-3.4.0_rc1-dimap-cache-loss.patch b/kde-base/kdepim-kioslaves/files/kdepim-3.4.0_rc1-dimap-cache-loss.patch
new file mode 100644
index 000000000000..59ea61bb4337
--- /dev/null
+++ b/kde-base/kdepim-kioslaves/files/kdepim-3.4.0_rc1-dimap-cache-loss.patch
@@ -0,0 +1,89 @@
+--- kdepim-3.4.0/kioslaves/imap4/imap4.cc 2005-02-23 12:08:47.000000000 +0100
++++ kdepim-3.4.0/kioslaves/imap4/imap4.cc 2005-02-27 00:39:39.231224880 +0100
+@@ -1220,9 +1220,9 @@
+ void
+ IMAP4Protocol::special (const QByteArray & aData)
+ {
++ kdDebug(7116) << "IMAP4Protocol::special" << endl;
+ if (!makeLogin()) return;
+
+- kdDebug(7116) << "IMAP4Protocol::special" << endl;
+ QDataStream stream(aData, IO_ReadOnly);
+
+ int tmp;
+@@ -1249,6 +1249,12 @@
+ {
+ // NOOP
+ imapCommand *cmd = doCommand(imapCommand::clientNoop());
++ if (cmd->result () != "OK")
++ {
++ completeQueue.removeRef (cmd);
++ error (ERR_CONNECTION_BROKEN, myHost);
++ return;
++ }
+ completeQueue.removeRef (cmd);
+ finished();
+ break;
+@@ -1271,6 +1277,7 @@
+ imapCommand *cmd = doCommand(imapCommand::clientUnsubscribe(aBox));
+ if (cmd->result () != "OK")
+ {
++ completeQueue.removeRef (cmd);
+ error(ERR_SLAVE_DEFINED, i18n("Unsubscribe of folder %1 "
+ "failed. The server returned: %2")
+ .arg(_url.prettyURL())
+@@ -1291,6 +1298,7 @@
+ imapCommand *cmd = doCommand(imapCommand::clientSubscribe(aBox));
+ if (cmd->result () != "OK")
+ {
++ completeQueue.removeRef (cmd);
+ error(ERR_SLAVE_DEFINED, i18n("Subscribe of folder %1 "
+ "failed. The server returned: %2")
+ .arg(_url.prettyURL())
+@@ -1340,6 +1348,7 @@
+ "\\SEEN \\ANSWERED \\FLAGGED \\DRAFT"));
+ if (cmd->result () != "OK")
+ {
++ completeQueue.removeRef (cmd);
+ error(ERR_COULD_NOT_WRITE, i18n("Changing the flags of message %1 "
+ "failed.").arg(_url.prettyURL()));
+ return;
+@@ -1351,6 +1360,7 @@
+ clientStore (aSequence, "+FLAGS.SILENT", newFlags));
+ if (cmd->result () != "OK")
+ {
++ completeQueue.removeRef (cmd);
+ error(ERR_COULD_NOT_WRITE, i18n("Changing the flags of message %1 "
+ "failed.").arg(_url.prettyURL()));
+ return;
+@@ -1632,10 +1642,9 @@
+ void
+ IMAP4Protocol::slave_status ()
+ {
+- kdDebug(7116) << "IMAP4::slave_status" << endl;
+-// KIO::TCPSlaveBase::slave_status();
+- slaveStatus (myHost, !(getState () == ISTATE_NO));
+-// slaveStatus(QString::null,false);
++ bool connected = (getState() != ISTATE_NO) && isConnectionValid();
++ kdDebug(7116) << "IMAP4::slave_status " << connected << endl;
++ slaveStatus ( connected ? myHost : QString::null, connected );
+ }
+
+ void
+@@ -1838,6 +1847,7 @@
+
+ kdDebug(7116) << "IMAP4::makeLogin - checking login" << endl;
+ bool alreadyConnected = getState() == ISTATE_CONNECT;
++ kdDebug(7116) << "IMAP4::makeLogin - alreadyConnected " << alreadyConnected << endl;
+ if (alreadyConnected || connectToHost (myHost.latin1(), myPort))
+ {
+ // fcntl (m_iSock, F_SETFL, (fcntl (m_iSock, F_GETFL) | O_NDELAY));
+@@ -1982,6 +1992,8 @@
+ }
+ }
+ completeQueue.removeRef (cmd);
++ } else {
++ kdDebug(7116) << "makeLogin - NO login" << endl;
+ }
+
+ return getState() == ISTATE_LOGIN;
diff --git a/kde-base/kdepim-kioslaves/kdepim-kioslaves-3.4.0_rc1.ebuild b/kde-base/kdepim-kioslaves/kdepim-kioslaves-3.4.0_rc1.ebuild
index 9e76738e2df4..1a7b56c8f11b 100644
--- a/kde-base/kdepim-kioslaves/kdepim-kioslaves-3.4.0_rc1.ebuild
+++ b/kde-base/kdepim-kioslaves/kdepim-kioslaves-3.4.0_rc1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim-kioslaves/kdepim-kioslaves-3.4.0_rc1.ebuild,v 1.1 2005/02/27 20:21:34 danarmak Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim-kioslaves/kdepim-kioslaves-3.4.0_rc1.ebuild,v 1.2 2005/02/28 00:24:35 greg_g Exp $
KMNAME=kdepim
KMMODULE=kioslaves
@@ -18,3 +18,6 @@ DEPEND=">=dev-libs/cyrus-sasl-2
KMCOPYLIB="libkmime libkmime/"
KMEXTRACTONLY="libkmime/"
+
+# fix grave kmail bug. Probably will be fixed in 3.4 final.
+PATCHES1="${FILESDIR}/kdepim-3.4.0_rc1-dimap-cache-loss.patch"