On Mon, Mar 10, 2014 at 10:45:36PM +0200, Andrei POPESCU wrote:
> > Thus when delivering via a mailbox_command, the "From " line is
> > always prepended.
>
> Thanks, that confirms my understanding. Wouldn't it however make sense
> to have this configurable? How many delivery agents actually need that
> in 2014?
In addition to serving as the mbox delimiter, the "From " line also
records the envelope sender and message arrival time. It has been
part of the local delivery interface for a long time. So in 2014
I would expect things that have worked for 30+ years to continue
to work.
If you have an LDA that needs to run as the user (most don't these
days) and does not support "From ", you'll need to strip it out
for now.
The local delivery agent does not currently have a configuration
option to not prepend "From " when piping mail to commands.
There are multiple command contexts:
- mailbox_command
- mailbox_command_maps
- "|cmd" in a .forward file
- "|cmd" on the right side of an alias
If there were a parameter to suppress "From ", which of these would
you expect it to apply to? Recall that not prepending "From " is
likely to cause problems with commands that are not prepared for
this.
On the whole, the feature is, I think, dubious. It is better for
all commands to receive the message in a standard form, and act
accordingly. Therefore, the problem is I think in the LDA that
no longer supports "From ", it needs to be configurable to allow
"From ".
--
Viktor.