auto-create folder for all users if not existing

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

auto-create folder for all users if not existing

Postby les » Tue Jun 13, 2006 11:25 am

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
Regards,

Les Stott

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Tue Jun 13, 2006 12:50 pm

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.
Ben Tisdall
www.redcircleit.com
London

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Tue Jun 13, 2006 6:12 pm

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.
Regards,

Les Stott


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 3 guests

cron