summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Lohrke <carlo@gentoo.org>2006-04-22 10:55:50 +0000
committerCarsten Lohrke <carlo@gentoo.org>2006-04-22 10:55:50 +0000
commit0b09a8371c404835ae9d3a0de16c562efbb1fb13 (patch)
tree2eeadcd19d07d6f5e93e79de1d107a2ce95fb627 /kde-base/kdepim-kioslaves/files
parentStable on ppc64 (diff)
downloadgentoo-2-0b09a8371c404835ae9d3a0de16c562efbb1fb13.tar.gz
gentoo-2-0b09a8371c404835ae9d3a0de16c562efbb1fb13.tar.bz2
gentoo-2-0b09a8371c404835ae9d3a0de16c562efbb1fb13.zip
Mbox and imap fixes.
(Portage version: 2.0.54)
Diffstat (limited to 'kde-base/kdepim-kioslaves/files')
-rw-r--r--kde-base/kdepim-kioslaves/files/digest-kdepim-kioslaves-3.5.2-r11
-rw-r--r--kde-base/kdepim-kioslaves/files/kdepim-kioslaves-3.5.2-fixes.diff57
2 files changed, 58 insertions, 0 deletions
diff --git a/kde-base/kdepim-kioslaves/files/digest-kdepim-kioslaves-3.5.2-r1 b/kde-base/kdepim-kioslaves/files/digest-kdepim-kioslaves-3.5.2-r1
new file mode 100644
index 000000000000..9ee81dd048d6
--- /dev/null
+++ b/kde-base/kdepim-kioslaves/files/digest-kdepim-kioslaves-3.5.2-r1
@@ -0,0 +1 @@
+MD5 ac6b3b503e27a65a7b883c1e0a57262e kdepim-3.5.2.tar.bz2 12887336
diff --git a/kde-base/kdepim-kioslaves/files/kdepim-kioslaves-3.5.2-fixes.diff b/kde-base/kdepim-kioslaves/files/kdepim-kioslaves-3.5.2-fixes.diff
new file mode 100644
index 000000000000..4f755073ba20
--- /dev/null
+++ b/kde-base/kdepim-kioslaves/files/kdepim-kioslaves-3.5.2-fixes.diff
@@ -0,0 +1,57 @@
+--- kdepim/kioslaves/imap4/imap4.cc 2005/09/14 19:43:34 460690
++++ kdepim/kioslaves/imap4/imap4.cc 2006/04/05 20:34:16 526879
+@@ -2232,6 +2232,10 @@
+ path += item.hierarchyDelimiter();
+ }
+ path += mailboxName;
++ if (path.upper() == "/INBOX/") {
++ // make sure the client can rely on INBOX
++ path = path.upper();
++ }
+ }
+ aURL.setPath(path);
+ atom.m_str = aURL.url(0, 106); // utf-8
+--- kdepim/kioslaves/imap4/imapparser.cc 2006/03/14 18:28:14 518628
++++ kdepim/kioslaves/imap4/imapparser.cc 2006/04/05 20:32:16 526877
+@@ -1745,10 +1745,15 @@
+ {
+ QString temp = (*it);
+
+- // if we have a '/' separator we'll just nuke it
+ int pt = temp.find ('/');
+- if (pt > 0)
+- temp.truncate(pt);
++ if (pt > 0)
++ {
++ if (temp.findRev ('"', pt) == -1 || temp.find('"', pt) == -1)
++ {
++ // if we have non-quoted '/' separator we'll just nuke it
++ temp.truncate(pt);
++ }
++ }
+ if (temp.find ("section=", 0, false) == 0)
+ _section = temp.right (temp.length () - 8);
+ else if (temp.find ("type=", 0, false) == 0)
+--- kdepim/kioslaves/mbox/readmbox.cc 2005/12/27 12:43:58 491743
++++ kdepim/kioslaves/mbox/readmbox.cc 2006/04/14 17:45:24 529892
+@@ -142,8 +142,10 @@
+
+ void ReadMBox::rewind()
+ {
+- if( m_stream )
+- m_stream->device()->reset();
++ if( !m_stream )
++ return; //Rewinding not possible
++
++ m_stream->device()->reset();
+ m_atend = m_stream->atEnd();
+ }
+
+@@ -178,6 +180,7 @@
+ if( !m_file->open( IO_ReadOnly ) )
+ {
+ delete m_file;
++ m_file = 0;
+ return false;
+ }
+ m_stream = new QTextStream( m_file );