Make-forwards.pl

From Organic Design wiki
Revision as of 01:04, 13 May 2009 by Nad (talk | contribs) (moved Make-forwards.sh to Make-forwards.pl: oops perl now not shell)

Use this script to create .forward files for all users who don't already have them. The files created automatically route emails marked as spam into the users Trash IMAP folder. See Configure mail server for more details.

{{{1}}}

" is "def"

then save $home/Maildir/.Trash/ finish endif';

for ( glob "/home/*" ) { $file = "$_/.forward"; if ( ! -e $file ) { s|^.+/||; qx( echo '$filter' > $file ); qx( chown $_:$_ $file ); } } </perl>}}