Bug 81416 - Wrong identity used when replying messages that are moved.
Summary: Wrong identity used when replying messages that are moved.
Status: RESOLVED INTENTIONAL
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.6.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
: 71707 140719 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-12 12:08 UTC by Tom Albers
Modified: 2010-05-18 18:58 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Albers 2004-05-12 12:08:12 UTC
Version:           1.6.1 (using KDE 3.2.1, Gentoo)
Compiler:          gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
OS:                Linux (i686) release 2.6.3-gentoo-r1

When I receive mail on my private e-mailaddress that should be for a shared e-mailadress, I move the e-mail to the shared e-mailbox. That e-mailbox has a seperate identity set up in the preferences. 

But when I want to reply to this message, my private identity is used instead of the defined shared identity. Which is a documented feature (if the to-address is found in one of the identities, that identity will be used for the reply). 

Since the private identity is used, the reply on my messages ends up in my private box and so I should move it again to the shared box, etc. All the folders are IMAP, so I can't create a filter for this. 

Possible solution: a checkbox in the folder properties called 'force', so you can tell kmail to force replies to use the specified identity, regardless of the original to:-address
Comment 1 Till Adam 2004-06-30 23:33:48 UTC
Hm, guys, should we consider this a bug? It's two features overlaying each other and/or a feature/config option request, I guess.
Comment 2 Don Sanders 2004-07-01 10:05:23 UTC
On Thursday 01 July 2004 07:33, Till Adam wrote:
> Hm, guys, should we consider this a bug? It's two features
> overlaying each other and/or a feature/config option request, I
> guess.

I'd consider it a feature/config option request rather than a bug.

I wonder if an ad-hoc filter and the "set identity to", "set reply-to 
to" or "rewrite header" actions could be used to force the desired 
behavior.

Of course maybe the precedence of the two conflicting features should 
be swapped but that could have subtle undesirable effects.

Don.

Comment 3 Tom Albers 2004-07-01 11:22:53 UTC
I'm not a kmail developer but I just want to add that the setting 'keep reply in folder' in the properties of the folder overrides the general settings of the profile. 
It would be rather consistent that the assigned profile in the same properties of the map overrides the general settings. You can always override that profile for each message if you want to.
Comment 4 Tom Albers 2004-07-31 18:53:54 UTC
*** Bug 71707 has been marked as a duplicate of this bug. ***
Comment 5 Andrew Kohlsmith 2005-01-17 18:26:47 UTC
I was going to add a new bug but this one seems to be close to what I was going to report.

when I have an identity for a folder set, this is being ignored (KDE 3.4beta1) and the last identity I used is being used instead.  Ideally I'd like to have the "rewrite header" filter work (it only is activated after the message is sent, not before... my "sent mail" folder has the email with the rewritten header, but the message recipient does not see the altered From: header, see bug 97243)
Comment 6 Jens 2005-07-28 14:43:43 UTC
Hello,

I think I have a similar bug (KDE 3.4.1, SuSE 9.3). I have all my folders set up with a specific identity - I have three, one work, and two business identities. I also have all folders setup to save replies to mails in the same folder.

This does not always work. As soon as I once *manually* select an identity in a mail compose window, it stays. I would like this to be investigated closer, if possible. I can provide test cases if needed.

Thanks!

Jens
Comment 7 Peter Eisentraut 2005-11-03 10:34:42 UTC
I have several identities with the same email address.  The identities are assigned to a variety of folders, but this basically doesn't work at all because when replying, always the first one is used.  (Reordering won't help either, that just makes it go wrong elsewhere.)  At least KMail should recognize that there are multiple identities with the same email address and behave a little more considerate.  Nevertheless, I agree that folder settings should override the global behavior.
Comment 8 Jens 2005-11-09 10:01:55 UTC
Suggestion (might be rather simple to implement, perhaps tag as "JJ"): When replying, *always* use the identity that matches the email address used by the sender of the mail you want to reply to.

If none of the identities match any of them, fall back to the old way. Or try matching e.g. the domains of identity addresses and the recipient address, or something, to get a partial match. ;)
Comment 9 Jens 2005-11-18 17:33:26 UTC
Reply to my comment #6: This was probably due to the checkbox "Keep" ("Beibehalten") right of the identity dropdown field. I never noticed this checkbox but since I unchecked it, the identity selection seems to work.

I'll keep you updated.

Jens
Comment 10 Salvatore Brigaglia 2008-11-09 13:27:20 UTC
still here r881888 (bugday 09 november 2008).
Kmail sets the profile's email adress in "From:" if the messages you are replying to is:
sent to the same adress (to: in the received message is equal to the profile's email)
sent to a different adress witch does not match any of your email adress (like you are subscribed to a mailing list)

If you reply to a message received by one of your adress kmail sets thath email in the "From:" recipient regardless of the identity assigned to that folder.

opensourcecat.
Comment 11 Björn Ruberg 2010-01-03 00:52:59 UTC
*** Bug 140719 has been marked as a duplicate of this bug. ***
Comment 12 Tom Albers 2010-05-18 18:58:27 UTC
Did not happen after 6 years, it will never happen. Close.