> Magnus Bäck <mag...@dsek.lth.se> : > The full message, including the headers, is provided to pipe(8)-based > programs via stdin.
Reading pipe(8) and http://www.postfix.org/FILTER_README.html, I see: [...] I suggest that you first run this script by hand until you are satisfied with the results. Run it with a real message (headers+body) as input: % /path/to/script -f sender -- recipient... < message-file [...] Configure Postfix to deliver mail to the content filter with the pipe(8) delivery agent (see the pipe(8) manpage for a description of the command syntax below). /etc/postfix/master.cf: # ============================================================= # service type private unpriv chroot wakeup maxproc command # (yes) (yes) (yes) (never) (100) # ============================================================= filter unix - n n - 10 pipe flags=Rq user=filter null_sender= argv=/path/to/script -f ${sender} -- ${recipient} [...] I can safely conclude that the whole message is the 3rd argument passed by "pipe". Am I wrong? -- Architecte Informatique chez Blueline/Gulfsat: Administration Systeme, Recherche & Developpement +261 34 29 155 34 / +261 33 11 207 36