-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 08/15/2013 11:14 PM, Steffen Kaiser wrote:
On Thu, 15 Aug 2013, LuKreme wrote:
Since I am using dovecot I do not have courier installed, but Courier had a very handy tool for making maildir folders called
maildirmake
which I used in some automated backup scripts. How do I duplicate maildirmake in dovecot?To replace the inner find, you could look at doveadm move -u <user> savedbefore ...
To replace maildirmake -f, look at doveadm mailbox create -u <user>
But you seem to create a new Maildir with each invokation of $MDM (no -f option). IMHO it seems to be easier to make a small script, that creates new/cur/tmp and, if not INBOX, touches maildirfolder.
Kind regards,
-- Steffen Kaiser
The generic formula for creating Maildirs is:
mkdir ${path}/${name}/tmp mkdir ${path}/${name}/cur mkdir ${path}/${name}/new
Where ${path} is the path to the parent folder and ${name} is the name of the Maildir.
That's really all there is to it.
David Benfell / benfell@parts-unknown.org Please see https://parts-unknown.org/node/2 for GnuPG information (or the attachment you don't understand) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJSDrlHAAoJEKrN0Ha7pkCOthMP/1PyGW9Kidyzoc7bTbLunF19 ZRQeRcGj42w1BXP1NI3+yx52hlhC6OxOuhZiBa3OfzK67I1Ww4lLa2Q4MMbC7M+O 8xS2VKgRTzAD61IY0hlnInPV/+gn6AYWnRIPiH87Q7ru6r9+XudS/6cKpnybqK2i rDAr2v/crFEz772QIJ0WVycNMABOfDi+9QyHQDii6Rnhvwq1rR21A3ZkJFdN5hK+ ZOVgin8UK0Zx3y9nLE8tmdChp3NU6v1IcX2XdqnaQKvGIKoTP34dsKd2c5Cjt0fI npKncTdkwmZFSbovHssn9LGfsEiDBbES5gXMxfpYTtDmCoGhQtT62rll8nBH+l8f H2G6MFZzyRxVALO9TksKztyCOMBDohABK8+nXrJQuqV+W8+MgBN77wB56NsQQRoo ajH9OKJfbHGmCXyMinKHFMD0VMOICHYummWO5mPQIeE/YMk/+3GyjQ9iblnGu7Ma mU1k5hvh79vYB0eUEiGx4fcHB8BsC38H+DCI9eN8oLMz9W6cds3hgxiTNiIyXuFF 7WmSMrZjO2ozlXr581uQVIp7YEGBf9kJglzil9lIRlyYKEAthlQ8JH8BBUmICvz7 XB3Za+Cmaby9/binwqIdBget8MMu/wsFBtSTA6JuB2a/kYCn7P3S+jVj+xzbbh4f gpDhHczhIWFA0OS8AkLP =jIft -----END PGP SIGNATURE-----