Bug 104071 - Use receiving email address on reply (identity-based)
Summary: Use receiving email address on reply (identity-based)
Alias: None
Product: kmail
Classification: Applications
Component: composer (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
Depends on:
Reported: 2005-04-17 17:59 UTC by Robert
Modified: 2009-02-20 17:18 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description Robert 2005-04-17 17:59:46 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Gentoo Packages
OS:                Linux

When replying to an email sent to me, kmail should use the email address that I received the email with as the "from" address for the reply email.

E.g. I have 2 identities: niceguy@my-business.test and dad@last-name.test Now, when someone sends me an email to "niceguy@my-business.test", and I reply to that email, kmail should automatically select the "niceguy@my-business.net" identity as the "from" address for the reply email. When someone sends me an email to "dad@last-name.test" and I reply to it, "dad@last-name.test" should be the default "from" address now.

This is pretty important if you keep for example business and private email in one account, on one imap server. And it's most likely *not* funny to accidently answer an email from your boss with a weird "from" address like "leather-fetish@strong-boys.test" :)

Right now kmail seems to pick the last identity that was used, which is least intuitive to me... at least I would expect it to use the "default" identity now, but the above would be much nicer.
Comment 1 Thiago Macieira 2005-04-17 18:06:41 UTC
Works for me exactly as you describe, KMail 1.8 branch 20050313.
Comment 2 Robert 2005-04-17 18:25:40 UTC
I'm using kmail 1.8 (sorry - forgot the version) as well, I guess this was added after 3.4 was released then.
Comment 3 Andreas Gungl 2005-06-13 15:18:47 UTC
Closing. Please reopen if you can reproduce the critizised behavior.
Comment 4 Dotan Cohen 2006-11-03 14:33:56 UTC
I'm on KDE 1.9.5 on Ubuntu, and I see that the From address is always the Default address, never the address to which email was sent. This has bitten me more than once.

For instance, my default email address is me@my-home.com but I recieve email to business@job.com. When I reply, the From address is me@my-home.com.

Comment 5 Dotan Cohen 2007-01-22 12:36:35 UTC
I just installed Fedora Core 6 and I can confirm that Kmail1.9.5 on KDE on KDE 3.5.5 still uses the default address on replied to emails. The expected behaviour would be for it to use the original email's TO addressa as the FROM address in replies.
Comment 6 Dotan Cohen 2007-05-09 20:25:56 UTC
Is there any progress being made on this front? I hate Thunderbird and I really want to go back to Kmail.
Comment 7 mjh-kde-bugs 2007-05-10 01:02:29 UTC
This works for me, but the address has to be an exact match. Ie. if your identity is set to "someone@example.com" but the mail arrives to "someone@mail.example.com" it doesn't detect it as the same account.

It would be nice to have wildcard ability (so that "someone@mail1.example.com" and "someone@mail2.example.com" or address extensions such as "someone-foo@..." or "someone+foo@..." could be made to match). That's a separate wish though.
Comment 8 Dotan Cohen 2007-06-23 13:59:47 UTC
In response to comment #7:
I don't want Kmail to use an address only if it's an account. As I use a catch-all email address at my domain, I cannot make an account for each address- there are thousands of them. Each of my contacts has a different address for me. Tbird can be configured to use the To: address of the original email as the From: address of the reply, no matter what the To: address was.
Comment 9 mjh-kde-bugs 2007-07-03 00:46:42 UTC
In response to comment #8:

That's the same idea I'm looking for. Catch-all addresses would just be a special case of wildcard matching (ie. * at example.com).

You'd need to match to an account at some level though, so kmail could pick the smtp settings, etc. 

I don't know how difficult that would be to implement though, it's been a couple of years since I looked at the kmail code.
Comment 10 Thomas McGuire 2007-12-21 18:10:05 UTC
*** Bug 154429 has been marked as a duplicate of this bug. ***
Comment 11 Dotan Cohen 2009-01-30 01:52:38 UTC
> You'd need to match to an account at some level though, so kmail
> could pick the smtp settings, etc.

Kmail could use the Default SMTP settings, etc, in the cases where the From address does not match any account. This is how Thunderbird does it, and it is intuitive and logical behaviour.
Comment 12 Dotan Cohen 2009-02-17 12:23:53 UTC
*** Bug 72926 has been marked as a duplicate of this bug. ***
Comment 13 Dotan Cohen 2009-02-19 00:20:36 UTC
As explained in bug #72926, users who use this system don't keep record of their valid addresses. Creating an identity for each address is impractical as there would literally be a different identity for each contact that the user communicates with.
Comment 14 mjh-kde-bugs 2009-02-20 01:34:48 UTC
This was marked as "fixed", but there's no comments explaining what was done to fix it. As far as I know this still doesn't work. Should this be reopened? 

Bug 72926 was marked as a duplicate of this (the newer bug) but has since been disconnected from it (according to that bug ticket).
Comment 15 Dotan Cohen 2009-02-20 17:18:10 UTC
This bug was closed because it is asking for identity-based reply matching, which works. Bug 72926 asks for reply matching addresses that are not configured as identities. I am making that clear in the titles now. I had a mismatch previously.