Talk:Learn
Jump to navigation
Jump to search
Automatic creation of folders (before version 1.0)
A script posted in the forum by Cactus [1] and sent to me by Amir Inbar can be used to create all folders (in skel for futures users and in the existings users too :
# create skellaton for new users : mkdir -p /etc/e-smith/skel/user/Maildir/{.LearnAsHam/{cur,new,tmp},.LearnAsSpam/{cur,new,tmp},.LearnInWL/{cur,new,tmp}} # create folders for existing users : pushd /home/e-smith/files/users/; \ for u in `ls | grep -v admin`; \ do \ mkdir -p $u/Maildir/.LearnAsHam/{cur,new,tmp}; \ chown -R $u:$u $u/Maildir/.LearnAsHam/; \ mkdir -p $u/Maildir/.LearnAsSpam/{cur,new,tmp}; \ chown -R $u:$u $u/Maildir/.LearnAsSpam/; \ mkdir -p $u/Maildir/.LearnInWL/{cur,new,tmp}; \ chown -R $u:$u $u/Maildir/.LearnInWL/; \ done; \ popd
Thanks to them.