[PATCH] Smart pasting in address line edit.

Thiago Macieira thiago.macieira at kdemail.net
Wed Dec 10 13:50:19 GMT 2003


Waldo Bastian wrote:
>The following patch makes it possible to easily paste a list of e-mail
>addresses in a address line edit.
>
>While doing so I noticed that kabc uses:
>     if ( newText.startsWith( "mailto:" ) )
>         newText.remove( 0, 7 );
>
>while kmail used to use
>
>    if ( newText.startsWith( "mailto:" ) )
>    {
>        KURL u(newText);
>        newText = u.path();
>    }
>
>Was there a reason for that change?

While using KURL has extra processing charge, I believe that is the correct 
solution. Reasons:

1) Remove query items and references from the URI, as in
	mailto:thiago at nowhere.net?subject=Hullo

2) Process URI-encoded %HH

3) Process ACE-encoded domains
	mailto:thiago at xn--jos-dma.macieira.nowhere.net
would show up in the field:
	thiago at josé.macieira.nowhere.net

(that's my middle name, by the way)

#3 is dependent on Bug #62425

-- 
  Thiago Macieira  -  Registered Linux user #65028
   thiagom at mail.com           
    ICQ UIN: 1967141   PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031210/f840e4b0/attachment.sig>


More information about the kde-core-devel mailing list