auto-create folder for all users if not existing
Posted: 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
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