Page 1 of 1

auto-create folder for all users if not existing

Posted: Tue Jun 13, 2006 11:25 am
by les
Hi,

I was looking for a scripted way to automatically login to each users account, check for the existance of a fodler, and if it is not found then create it.

i am looking at trying to auto-create a "Junk E-mail" folder for all users automatically.

i think the Scalix Program authnc can do it, but i'm not sure of the imap commands necessary. Below is a sample from another post.

authnc --mechanism gssapi \
--authzid "mboxadmin:Mr Minion" \
scalix-server.example.com imap <<@@@@
1 select "Junk"
2 fetch 1:* rfc822.peek
3 logout
@@@@

Does anyone know how to use IMAP commands to check for a folder, and if missing create it?
I could easily then run a "for each in..." using that script.

TIA

Posted: Tue Jun 13, 2006 12:50 pm
by btisdall
Easy - just put the rule in place using sxaa (or whatever) - when scalix tries to deliver to that folder it'll create it if it didn't already exist.

Posted: Tue Jun 13, 2006 6:12 pm
by les
btisdall wrote:Easy - just put the rule in place using sxaa (or whatever) - when scalix tries to deliver to that folder it'll create it if it didn't already exist.


but...
If i use outlook to add the rule, and the user mistakenly deletes the "Junk E-mail" folder, from what i've seen the rule gets disabled because the folder doesn't exist.

So i'm not sure if that will work, i'll test to be sure.

Thanks for the tip.