> I currently have a few adresses that are set up as follows (in a aliases 
> file):
> 
> someemail: "|/usr/bin/somecommand -opt someoption"
> 
> However, I would like the message to pass through another command
> first, much like normal shell pipeling:
> 
> u...@computer: echo "someemailcontents" | /usr/bin/somefilter -n 5 |
> /usr/bin/somecommand -opt someoption

someemail: |/bin/sh -c '/usr/bin/somefilter -n 5 | /usr/bin/somecommand -opt 
someoption'

or:

someemail: |/root/script

file /root/script (chmod 755):
#!/bin/sh
/usr/bin/somefilter -n 5 | /usr/bin/somecommand -opt someoption

Double quotes are necessary only if an alias contains a comma.

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to