[Kde-pim] Korn patches for RFC2047 in headers and KMail support

Alexis Papadopoulos iacp at free.fr
Fri Jun 29 19:48:42 BST 2007


Hello,

I'm sending attached a set of patches for K0rn (kdepim 3.5.7) which fix the 
following issues:

_ Subject and From headers are now parsed in order to fix encoding issues (see 
RFC2047). The code is taken and adapted from KMail. I will be trying to see 
if the whole thing can be arranged to use libkmime (unless you consider it 
unwise, in that case please say so :) ), because this only solves part of the 
problem. 
Indeed, by clicking VIEW EMAIL in the popup window, the whole message is 
displayed unparsed. But this at least solves the most annoying part. If 
accepted, it should close http://bugs.kde.org/show_bug.cgi?id=118625

_ While testing the above modifications, I realized that using my KMail 
settings didn't work for my cachedimap account. Therefore, I did a quick fix 
for that. Quick note here too. Modifications in imap_proto.h (new 
CachedImap_Protocol derived from Imap_Protocol) can be replaced by the 
following modification in kmail_proto.cpp:
instead of:
        if( type == "cachedimap" )
                return Protocols::getProto( "cachedimap" );
insert:
        if( type == "cachedimap" )
                return Protocols::getProto( "imap" );

The differences between cachedimap and imap are (I think) irrelevant for K0rn, 
therefore the above works just fine.

_ KMail passwords are "encrypted" (if not in KWallet) by a simple function, 
which is in K0rn but not used. Added the necessary calls. I thought that 
could break compatibility with older KMail versions, but this encryption 
method was added into KMail before 2005 (that's as far as I could go with 
websvn.kde.org). Using the version info in kmailrc could help, but I 
sincerely don't know how to do it. And if someone upgrades korn today, while 
using his kmail config file, he most certainly upgrades kmail to a version 
post august 2005 imho.

Please keep in inform if something is wrong/bad, I've just started getting 
into the kmail/korn code and I'm still learning,
Alexis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_korn.diff
Type: text/x-diff
Size: 19494 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20070629/6d39b3e1/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20070629/6d39b3e1/attachment.sig>
-------------- next part --------------
_______________________________________________
kde-pim mailing list
kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/


More information about the kde-pim mailing list