[Kde-pim] mailto: url dragging
Thomas McGuire
mcguire at kde.org
Tue Aug 4 21:36:21 BST 2009
Hi,
On Tuesday 04 August 2009 22:31:04 you wrote:
> On Tuesday 04 August 2009 18:02:44 you wrote:
> > I'm about to look into https://bugs.kde.org/show_bug.cgi?id=138725
> > which shows the RFC2047 encoded mail address when one drops an address
> > from one mailreader windows header to a composer window.
> >
> > My idea to fix this is the following:
> >
> > Index: kmlineeditspell.cpp
> > ===================================================================
> > --- kmlineeditspell.cpp (Revision 1005628)
> > +++ kmlineeditspell.cpp (Arbeitskopie)
> > @@ -130,7 +130,12 @@
> > // email-address.
> > if ( url.protocol() == "mailto" ) {
> > KABC::Addressee addressee;
> > - addressee.insertEmail( url.path(), true /* preferred */ );
> > + QString address = url.path();
> > + if ( address.startsWith( "=?" ) ) {
> > + // RFC2047 encoded string, decode it
> > + address = KMMsgBase::decodeRFC2047String( address.toLatin1()
> > ); + }
> > + addressee.insertEmail( address, true /* preferred */ );
> > list += addressee;
> > }
Just found that there is decodeMailtoUrl() in stringutils.h, which can be
used.
Regards,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20090804/4a91bfd1/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