On Wed, Jun 26, 2019 at 04:27:06PM -0400, Wietse Venema wrote:
> Viktor Dukhovni:
>
> > On Wed, Jun 26, 2019 at 12:39:02PM -0700, Ronald F. Guilmette wrote:
> >
> > > When Postfix hands a message to something... say a script invoked via
> > > some ~/.forward file... which one of these four formats will the message
> > > be in?
> >
> > See:
> > https://github.com/vdukhovni/postfix/blob/master/postfix/src/global/mail_copy.c#L235
> >
> > So the answer is mboxo.
>
> According to 'man 8 local', section 'EXTERNAL COMMAND DELIVERY':
> The local(8) daemon prepends a "From sender time_stamp" envelope header
> to each message, prepends an X-Original-To: header with the recipient
> address as given to Postfix, prepends an optional Delivered-To: header
> with the final recipient envelope address, prepends a Return-Path:
> header with the sender envelope address, and appends no empty line.
Oops, sorry, my answer was about delivery by local(8) directly to a mailbox,
not a command invoked via a pipe.
--
Viktor.