From e63cc4cb4bf153fa40eeba07428957b0c0359e88 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Sat, 10 Apr 2004 03:02:08 +0000 Subject: [PATCH] Support old hand-set mailing list post addresses svn path=/trunk/kdepim/; revision=302545 --- kmfolder.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kmfolder.cpp b/kmfolder.cpp index 302510c64..dd8b7e4fe 100644 --- a/kmfolder.cpp +++ b/kmfolder.cpp @@ -508,7 +508,9 @@ QString KMFolder::mailingListPostAddress() const KURL::List::const_iterator it; KURL::List post = mMailingList.postURLS(); for( it = post.begin(); it != post.end(); ++it ) { - if ( (*it).protocol() == "mailto" ) + // We check for isEmpty because before 3.3 postAddress was just an + // email@kde.org and that leaves protocol() field in the kurl class + if ( (*it).protocol() == "mailto" || (*it).protocol().isEmpty() ) return (*it).path(); } }