Version: (using KDE Devel) Installed from: Compiled sources If I reply to a message that only contains an email address in the From: field I would like kmail to search for addressbook items matching the address and add the full name to the address.
Created attachment 16449 [details] patch for recipientseditor.cpp With this patch (against version 1.9.3 in kde 3.5.3) kmail tries to replace every email address in a reply/forward with its correspondent addressbook entry. If someone could comment on the approach itself, coding style, ... I'd be more than happy :-)
Good idea. Comments about the patch: - Don't try to parse the message yourself. It will fail for the correct email address "I>K" <ik@whatever> and for Outlook-style email addresses like ik@whatever (bla) Use KPIM::splitAddress(...) instead. - Put the '{' after the "else" - Use // for comments in code. - IMO you should only add the full name if the From: field contained only the raw email address. Otherwise, you should use the full email address as it was received.
Created attachment 16467 [details] updated patch for recipientseditor.cpp Thanks for your comments on the code! I tried to take care of the issues. I didn't know about the functions for email handling, but they surely make life easier. I now use 'getEmailAddress' to extract the address. The patch still tries to replace addresses including the full name because of two reasons: First, I wanted to get rid of unnecessary "s. Next, some companies include information for example about the department, which I also do not like to include in the reply address. IMO the addressbook entry (if it exists) is the best choice in most situations. But of course the patch in this form may only suit my personal needs so I can change this.
*** Bug 127072 has been marked as a duplicate of this bug. ***
*** Bug 186529 has been marked as a duplicate of this bug. ***
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented. Thank you for your understanding.
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.