aboutsummaryrefslogtreecommitdiff
path: root/deskutils/kdepim3/files/patch-kmail_kresolver.cpp
blob: 643803eeda02a4cbc98012482b08f3dd2d37b759 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- kmail/keyresolver.cpp.orig	Thu Nov 10 05:39:42 2005
+++ kmail/keyresolver.cpp	Thu Nov 10 05:48:08 2005
@@ -1023,8 +1023,10 @@
   CryptoMessageFormat commonFormat = AutoFormat;
 
   for ( unsigned int i = 0 ; i < numConcreteCryptoMessageFormats ; ++i ) {
+    if ( !(mCryptoMessageFormats & concreteCryptoMessageFormats[i]) ) 
+      continue; // skip 
     if ( signingKeysFor( concreteCryptoMessageFormats[i] ).empty() )
-      continue; // skip;
+      continue; // skip
     if ( count.numOf( concreteCryptoMessageFormats[i] ) == count.numTotal() ) {
       commonFormat = concreteCryptoMessageFormats[i];
       break;