mvmvm
Programmer
- Mar 22, 2008
- 1
Is anyone familiar with how ${recipient} gets expanded when passed by postfix master.cf file to a external mail filter, e.g:
filter unix - n n - - pipe
flags=Rq user=filter argv=/usr/bin/procmail -Y -m /org/procmail/mainfilter.rc ${sender} ${recipient}
The man page for "pipe" says:
"A command-line argument that contains ${recipient} expands to as many command-line arguments as there are recipients.",
so I'd expect multiple recipients in the command line if there are multiple addresses in, say, the "To:" field.
Though I appear to actually get multiple invocations of the filter, with one recipient each time...any ideas on whether this is the expected behavior?
Cheers
mvmvm
filter unix - n n - - pipe
flags=Rq user=filter argv=/usr/bin/procmail -Y -m /org/procmail/mainfilter.rc ${sender} ${recipient}
The man page for "pipe" says:
"A command-line argument that contains ${recipient} expands to as many command-line arguments as there are recipients.",
so I'd expect multiple recipients in the command line if there are multiple addresses in, say, the "To:" field.
Though I appear to actually get multiple invocations of the filter, with one recipient each time...any ideas on whether this is the expected behavior?
Cheers
mvmvm