Re: mixed up from field
* On Sat, Jan 28, 2006 Derek Martin (invalid@xxxxxxxxxxxxxx) muttered:
> On Sat, Jan 28, 2006 at 04:57:00PM +0100, Jonas Geiregat wrote:
> > On Sat, Jan 28, 2006 at 04:05:03PM +0100, Michael Tatge wrote:
> > > Do *NOT* use myhrd From: in folder-hooks. Just set $from.
> >
> > My I also ask why ?
>
> Yeah, I'd like to know why also... I've been doing that for years,
> and I've never had any problems with it. It has always worked as
> expected.
It works, sure. But using my_hdr is more invasive then setting $from.
my_hdr will insert the header no matter what thus braking reverse_name
and a few other things.
Now you may argue that this is exactly what you want and i rest my
case. ;)
"In the old days" there was no other way to change the From: header
then to use my_hdr. This has changed for good.
There are lots of outdated hints and configs on the net that still use
my_hdr From: when changing $from would suffice though. Which are
extremly misleading for newbies.
You still even see something like (word order?)
my_hdr From: Joe Foo <foo@bar>
Without any hooks used.
My remark was meant to say:
There is only one application for my_hdr From: today - send-hooks.
Because they match when the message is already in creation and it's too
late for $from.
In this particular case the use of my_hdr presumably doesn't do any harm
though, if you know of the implications. It's just unnecessary.
HTH,
Michael
--
Because I don't need to worry about finances I can ignore Microsoft
and take over the (computing) world from the grassroots.
-- Linus Torvalds
PGP-Key-ID: 0xDC1A44DD
Jabber: init[0]@amessage.de