~/.forward for procmail

Any other programming language that is not covered in the Web Scripting category.

~/.forward for procmail

Postby hafner on Thu Jun 08, 2006 1:05 pm

Often procmail users are recommended to add a line like that to their
~/.forward file:
Code: Select all
"| IFS=' ' && exec /usr/bin/procmail || exit 75 #myusername"
(replace myusername).

Unfortunately this does not work on infinity like expected. Exim
doesn't seems to dislike that procmail writes to STDERR.

One can either move to Exim's filter language (I don't want to do so)
or replace the line above by that one:
Code: Select all
| /bin/sh -c "IFS=' ' && exec /usr/bin/procmail 2>/dev/null || exit 75 #myusername"

It's more complicated because I've found no way to get rid of STDERR
output without using an additional shell instance. If somebody can
simplify, please let me know.

Regards
Thomas
hafner
Contributer
Contributer
 
Posts: 73
Joined: Tue Mar 07, 2006 2:18 pm
Location: München (Germany)

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron