[PATCH] encode mail address when passing via KApplication::invokeMailer
Ingo Klöcker
kloecker at kde.org
Sun Jan 9 10:44:13 GMT 2005
On Sunday 09 January 2005 09:41, Oswald Buddenhagen wrote:
> On Sat, Jan 08, 2005 at 11:15:18PM +0100, Ingo Klöcker wrote:
> > There's no such thing as a "core address".
>
> so you say, that mailto:?to=ossi%40kde.org&to=ingo%40kde.org is a
> valid address? or maybe mailto:ossi%40kde.org,%20ingo%40kde.org ?
> and how many mailers will read this correctly, do you think?
Well, KMail supports the latter, but not the former (grmbl, I'll fix
it). What about Mutt? And FWIW, I think that all mailers will read the
latter correctly.
I don't really have a problem with invokeMailer creating
mailto:ossi%40kde.org?to=ingo%40kde.org (1)
but since applications like KAddressBook do pass
"Kloecker, Ingo" <kloecker at kde.org>
to invokeMailer(), the simple QStringList::split( ',', ... ) approach
doesn't work. I have a method in kdepim which can split a list of email
addresses into a QStringList. It only handles a subset of RFC 2822
addresses, but it's far better than using QStringList::split(). If you
really think it's necessary to create (1) then I can copy it to
kapplication (as helper function).
Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050109/d5e6360b/attachment.sig>
More information about the kde-core-devel
mailing list