Yahoo’s spoof of the “From” header is an annoyance:
clutters the message list displayed by KMail
clicking on “From” in the message window does no longer open an editor window with “To” header set to the original sender, but the new mail goes to the spoofed address.
In mail sent from Yahoo servers the original “From” is now moved to “X-Original-From" x-header. So I want to replace the spoofed “From” by the value of “X-Original-From". How can I do this using KMail? Any other suggestion how handle this problem?
> the value of “X-Original-From". How can I do this using KMail? Any
> other suggestion how handle this problem?
Other. With formail.
formail works fine for me as my inbox is mbox. I defined the following filter in KMail:
From contains yahoogroups.de
Action pipe through program: formail -i From # rename From to Old-From
Action pipe through program: formail -R X-Original-From From # rename X-Original-From to From
This restores original From and saves Yahoo’s spoof to Old-From
That seems to be Yahoo-Groups mail rather than Yahoo mail.
Mailing lists have been doing something similar to this since mailing lists were invented. The standards say that they should add a “Reply-To:” header, instead of munging the “From:” header. But a variety of mailing list management software has been munging “From:” headers from before Yahoo existed.
Somewhat along the lines of nrickert’s post and based only on what is in your original post,
Your problem is the manner in which your mail is being routed through Yahoo mail.
If mail is simply routed through an SMTP Smarthost, the original headers are preserved and nothing is altered.
But, if the mail is forwarded through a User’s mail account (I’m guessing you’re authenticating to Yahoo for permission to forward), then the mail is not simply routed but “re-sent.” In this case the new sender is the Yahoo mail account which is why your mail header has changed.
Yahoo’s SMTP Smarthost mail not send mail any other way, but if it supports what I described (simple re-routing mail instead of resending) I hope with this information you can find the relevant documentation to do it that way.
Actually I don`t use Yahoo mail, but I subscribed to a Yahoo Group. I send mail from my account at “M-net”, a service provider completely different from Yahoo to “Group-Name <group-name@yahoogroups.de>” and receive mail from the same address. I only undo the changes Yahoo makes to the “From” header of mail received from them. I am not interested in the reasons why they are doing this. They are pretending, that they need to make this. I am not convinced and will refrain from using my mail account at Yahoo.