Changes

From SME Server
Jump to navigationJump to search
693 bytes removed ,  14:58, 7 March 2016
Line 129: Line 129:     
=== Automatic creation of folders ===
 
=== Automatic creation of folders ===
A script posted in the forum by Cactus [http://forums.contribs.org/index.php/topic,38891.msg198432.html#msg198432] 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 :
+
this is not necessary anymore, if you keep the Uniq property enabled. For reference, the script previously here is kept in discussion.
# 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.
      
=== Uninstall ===
 
=== Uninstall ===
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu